The New York Times Company Search API

The Search API from The New York Times Company — 1 operation(s) for search.

Operations 1

GET /articlesearch.json Returns an array of articles #

Documentation

Specifications

Schemas & Data

Other Resources

🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/article-search-example.json
🔗
Signup
https://developer.nytimes.com/accounts/create
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/top-stories-home-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/most-popular-emailed-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/timeswire-content-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/archive-month-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/books-best-sellers-list-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/movie-reviews-search-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/times-tags-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/semantic-concept-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/geo-query-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/new-york-times-company/refs/heads/main/examples/community-comments-example.json
🔗
Status
https://developer.nytimes.com/docs/community-api-product/1/overview

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/new-york-times-company-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

new-york-times-company-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.0.0
  title: Article Search API
  description: Use the Article Search API to look up articles by keyword.
servers:
- url: https://api.nytimes.com/svc/search/v2
security:
- apikey: []
tags:
- name: Search
paths:
  /articlesearch.json:
    get:
      summary: Returns an array of articles
      description: Search for NYT articles by keywords, filters and facets.
      parameters:
      - name: begin_date
        in: query
        description: Begin date (e.g. 20120101)
        required: false
        schema:
          type: string
          pattern: ^\d{8}$
      - name: end_date
        in: query
        description: End date (e.g. 20121231)
        required: false
        schema:
          type: string
          pattern: ^\d{8}$
      - name: facet
        in: query
        description: Whether to show facet counts
        required: false
        schema:
          type: string
          enum:
          - false
          - true
      - name: facet_fields
        in: query
        description: Facets
        required: false
        schema:
          type: string
          enum:
          - day_of_week
          - document_type
          - ingredients
          - news_desk
          - pub_month
          - pub_year
          - section_name
          - source
          - subsection_name
          - type_of_material
      - name: facet_filter
        in: query
        description: Have facet counts use filters
        required: false
        schema:
          type: string
          enum:
          - false
          - true
      - name: fl
        in: query
        description: Field list
        required: false
        schema:
          type: string
      - name: fq
        in: query
        description: Filter query
        required: false
        schema:
          type: string
      - name: page
        in: query
        description: Page number (0, 1, ...)
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 0
      - name: q
        in: query
        description: Query
        required: false
        schema:
          type: string
      - name: sort
        in: query
        description: Sort order
        required: false
        schema:
          type: string
          enum:
          - newest
          - oldest
          - relevance
      tags:
      - Search
      responses:
        '200':
          description: An array of articles.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  copyright:
                    type: string
                  response:
                    type: object
                    properties:
                      docs:
                        type: array
                        items:
                          $ref: '#/components/schemas/Article'
                      meta:
                        type: object
                        properties:
                          hits:
                            type: integer
                          offset:
                            type: integer
                          time:
                            type: integer
        '401':
          description: Unauthorized request.  Make sure api-key is set.
        '429':
          description: Too many requests.  You reached your per minute or per day rate limit.
      operationId: getArticlesearchJson
      x-operation-id-source: derived
components:
  schemas:
    Article:
      type: object
      properties:
        web_url:
          type: string
        snippet:
          type: string
        print_page:
          type: integer
        source:
          type: string
        multimedia:
          type: array
          items:
            $ref: '#/components/schemas/Multimedia'
        headline:
          $ref: '#/components/schemas/Headline'
        keywords:
          type: array
          items:
            $ref: '#/components/schemas/Keyword'
        pub_date:
          type: string
        document_type:
          type: string
        news_desk:
          type: string
        byline:
          $ref: '#/components/schemas/Byline'
        type_of_material:
          type: string
        _id:
          type: string
        word_count:
          type: integer
        score:
          type: integer
        uri:
          type: string
    Keyword:
      type: object
      properties:
        name:
          type: string
        value:
          type: string
        rank:
          type: integer
        major:
          type: string
    Byline:
      type: object
      properties:
        original:
          type: string
        person:
          type: array
          items:
            $ref: '#/components/schemas/Person'
        organization:
          type: string
    Person:
      type: object
      properties:
        firstname:
          type: string
        middlename:
          type: string
        lastname:
          type: string
        qualifier:
          type: string
        title:
          type: string
        role:
          type: string
        organization:
          type: string
        rank:
          type: integer
    Multimedia:
      type: object
      properties:
        rank:
          type: integer
        subtype:
          type: string
        caption:
          type: string
        credit:
          type: string
        type:
          type: string
        url:
          type: string
        height:
          type: integer
        width:
          type: integer
        legacy:
          type: object
          properties:
            xlarge:
              type: string
            xlargewidth:
              type: integer
            xlargeheight:
              type: integer
        crop_name:
          type: string
    Headline:
      type: object
      properties:
        main:
          type: string
        kicker:
          type: string
        content_kicker:
          type: string
        print_headline:
          type: string
        name:
          type: string
        seo:
          type: string
        sub:
          type: string
  securitySchemes:
    apikey:
      type: apiKey
      name: api-key
      in: query