GET /content/{source}/{section}.json
Changed onRequest
- Base URLhttp://api.nytimes.com/svc/news/v3
- AuthAPI key in query parameter api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
source'all' | 'nyt' | 'iht' required
Limits the set of items by originating source
all = items from both The New York Times and The International New York Times nyt = New York Times items only iht = International New York Times items only
sectionstring required
Limits the set of items by one or more sections all | One or more section names, separated by semicolons
To get all sections, specify all. To get a particular section or sections, use the section names returned by this request: http://api.nytimes.com/svc/news/v3/content/section-list.json
Query parameters
limitinteger
Limits the number of results, between 1 and 20
offsetinteger
Sets the starting point of the result set
Response
An array of Articles
Changes
- info
endpoint added
- info