Nytimes Top Stories
The New York Times Top Stories API is a data API for retrieving current top stories from New York Times sections.
- Base URL:
http://api.nytimes.com/svc/topstories/v2 - Auth:
query:api-key(pass your key via theapiKeyinput)
Operations
get_section_format— GET /{section}.{format} — Top Stories
Inputs
apiKey— your nytimes-top-stories API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: get_section_format
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: get_section_format |
format |
string | no | — | Path parameter format (required by some operations). |
section |
string | no | — | Path parameter section (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |