Nytimes Archive
NYTimes Archive is an API for retrieving New York Times article metadata and content from historical monthly archives.
- Base URL:
http://api.nytimes.com/svc/archive/v1 - Auth:
query:api-key(pass your key via theapiKeyinput)
Operations
get_year_month_json— GET /{year}/{month}.json — Archive API
Inputs
apiKey— your nytimes-archive 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_year_month_json
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_year_month_json |
month |
string | no | — | Path parameter month (required by some operations). |
year |
string | no | — | Path parameter year (required by some operations). |
query |
string | no | — | Query-string parameters as a JSON object string, e.g. {"limit": 50}. Parsed and url-encoded onto the request. |