Nytimes Most Popular
The New York Times Most Popular API is a data API for retrieving the most viewed, emailed, or shared New York Times articles.
- Base URL:
http://api.nytimes.com/svc/mostpopular/v2 - Auth:
query:api-key(pass your key via theapiKeyinput)
Operations
get_mostemailed_section_time_period_json— GET /mostemailed/{section}/{time-period}.json — Most Emailed by Section & Time Periodget_mostshared_section_time_period_json— GET /mostshared/{section}/{time-period}.json — Most Shared by Section & Time Periodget_mostviewed_section_time_period_json— GET /mostviewed/{section}/{time-period}.json — Most Viewed by Section & Time Period
Inputs
apiKey— your nytimes-most-popular 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_mostemailed_section_time_period_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_mostemailed_section_time_period_json, get_mostshared_section_time_period_json, get_mostviewed_section_time_period_json |
section |
string | no | — | Path parameter section (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. |
time-period |
string | no | — | Path parameter for the operations whose URL contains {time-period}. |