Article Search API
With the Article Search API, you can search New York Times articles from Sept. 18, 1851 to today, retrieving headlines, abstracts, lead paragraphs, links to…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
With the Article Search API, you can search New York Times articles from Sept. 18, 1851 to today, retrieving headlines, abstracts, lead paragraphs, links to associated multimedia and other article metadata.
Note: In URI examples and field names, italics indicate placeholders for variables or values. Brackets [ ] indicate optional items. Parentheses ( ) are not a convention — when URIs include parentheses, interpret them literally.
Endpoints 1
Stories
- GETArticle Search
/articlesearch.json?q=string&fq=string&begin_date=string&end_date=string&sort=newest&fl=string&hl=false&page=0&facet_field=string&facet_filter=falseArticle Search requests use the following URI structure:
API details
- Base URL
https://api.nytimes.com/svc/search/v2- Authentication
- An API key in the api-key query parameter
- Operations
- 1 operation on 1 pathGET 1
- Main resources
- Stories 1
- Response formats
application/json- Description format
- Swagger 2.0, API version
1.0.0 - Links
- OpenAPI document
- Listed from
- New York Times's published OpenAPI description (NYTimes/public_api_specs) (Apache-2.0)
How to test the Article Search API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Article Search API collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the api-key query parameter. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Article Search” (GET /articlesearch.json?q=string&fq=string&begin_date=string&end_date=string&sort=newest&fl=string&hl=false&page=0&facet_field=string&facet_filter=false), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Article Search API?
With the Article Search API, you can search New York Times articles from Sept. 18, 1851 to today, retrieving headlines, abstracts, lead paragraphs, links to… It is listed under Media & content and has 1 endpoint.
Who publishes the Article Search API?
It is listed from The New York Times's public API description (an OpenAPI document), not published by The New York Times on Swastik Codes. Anyone who controls nytimes.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Article Search API?
Requests go to https://api.nytimes.com/svc/search/v2. Endpoint paths are added to this base URL.
How do I authenticate with the Article Search API?
With an API key in the api-key query parameter.
How many endpoints does the Article Search API have?
1 operation on 1 path (1 GET). The largest groups are Stories.
Is forking the Article Search API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.