disease.sh COVID-19: NYT API

(COVID-19 data sourced from the New York Times, updated every 24 hours)

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v3/covid-19/nyt/states Get state-level US COVID-19 time series data · Get COVID-19 time series data for all states, with an entry for each day since… #
Ask an LLM
“How has the US pandemic trended state by state?”
“Can I get daily state case counts for the last 30 days?”
Tell an agent
Get the full state-by-state time series for the US.
Show {lastdays} days of state-level COVID-19 data.
GET /v3/covid-19/nyt/states/{state} Get COVID-19 time series for specific states · Get COVID-19 time series data for a state or set of states, with an entry for… #
Ask an LLM
“How do I pull daily case counts for Illinois and California?”
“Can I limit state time series data to a number of days?”
Tell an agent
Get time series data for {state}.
Show {state} data for the last {lastdays} days.
GET /v3/covid-19/nyt/counties Get county-level US COVID-19 time series data · Get COVID-19 time series data for all available US counties, with an entry for… #
Ask an LLM
“Which US counties have the most cases?”
“Can I get daily county-level case counts for the last 60 days?”
Tell an agent
Get the full county-by-county time series for the US.
Show {lastdays} days of county-level COVID-19 data.
GET /v3/covid-19/nyt/counties/{county} Get county COVID-19 time series data · Get COVID-19 time series data for a county or set of counties, with an entry… #
Ask an LLM
“How many total cases did Alameda and Humboldt counties report over the last week?”
“Can I get a state's COVID-19 time series data for a specific number of days?”
Tell an agent
Get COVID-19 time series data for {county}.
Show {county} cases for the last {lastdays} days.
GET /v3/covid-19/nyt/usa Get USA-wide COVID-19 time series data · Get COVID-19 time series data for the entire USA, with an entry for each day… #
Ask an LLM
“What's the daily USA-wide case and death total from the New York Times data?”
“Can I pull a full historical time series for the USA?”
Tell an agent
Get the USA COVID-19 time series.
Show daily case totals for the whole country.

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/disease-sh:disease-sh-covid-19-nyt-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

disease-sh-covid-19-nyt-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 3.0.0
  title: disease.sh Docs - An open API for disease-related…
  description: Third Party API for reliable global disease information
  license:
    name: GNU V3
    url: https://github.com/disease-sh/API/blob/master/LICENSE
host: disease.sh
basePath: /
schemes:
- https
- http
consumes:
- application/json
produces:
- application/json
tags:
- name: 'COVID-19: NYT'
  description: (COVID-19 data sourced from the New York Times, updated every 24 hours)
paths:
  /v3/covid-19/nyt/states:
    get:
      tags:
      - 'COVID-19: NYT'
      parameters:
      - name: lastdays
        in: query
        default: 30
        description: Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
        type: string
      summary: Get COVID-19 time series data for all states, with an entry for each day since…
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidNYTState'
      operationId: getV3Covid19NytStates
      x-operation-id-source: derived
  /v3/covid-19/nyt/states/{state}:
    get:
      tags:
      - 'COVID-19: NYT'
      parameters:
      - name: state
        in: path
        required: true
        description: State name(s), separated by commas (e.g. 'Illinois, California')
        type: string
      - name: lastdays
        in: query
        default: 30
        description: Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
        type: string
      summary: Get COVID-19 time series data for a state or set of states, with an entry for…
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidNYTState'
      operationId: getV3Covid19NytStatesByState
      x-operation-id-source: derived
  /v3/covid-19/nyt/counties:
    get:
      tags:
      - 'COVID-19: NYT'
      parameters:
      - name: lastdays
        in: query
        default: 30
        description: Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
        type: string
      summary: Get COVID-19 time series data for all available US counties, with an entry for…
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidNYTCounty'
      operationId: getV3Covid19NytCounties
      x-operation-id-source: derived
  /v3/covid-19/nyt/counties/{county}:
    get:
      tags:
      - 'COVID-19: NYT'
      parameters:
      - name: county
        in: path
        required: true
        description: County name(s), separated by commas (e.g. 'Alameda, Humboldt')
        type: string
      - name: lastdays
        in: query
        default: 30
        description: Number of days to return. Use 'all' for the full data set (e.g. 15, all, 24)
        type: string
      summary: Get COVID-19 time series data for a county or set of counties, with an entry…
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidNYTCounty'
      operationId: getV3Covid19NytCountiesByCounty
      x-operation-id-source: derived
  /v3/covid-19/nyt/usa:
    get:
      tags:
      - 'COVID-19: NYT'
      summary: Get COVID-19 time series data for the entire USA, with an entry for each day…
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidNYTUSA'
      operationId: getV3Covid19NytUsa
      x-operation-id-source: derived
components:
  schemas:
    covidNYTState:
      type: array
      items:
        type: object
        properties:
          date:
            type: string
            format: date
          state:
            type: string
          fips:
            type: string
          cases:
            type: number
          deaths:
            type: number
    covidNYTUSA:
      type: array
      items:
        properties:
          date:
            type: string
            format: date
          cases:
            type: number
          deaths:
            type: number
    covidNYTCounty:
      type: array
      items:
        type: object
        properties:
          date:
            type: string
            format: date
          county:
            type: string
          state:
            type: string
          fips:
            type: string
          cases:
            type: number
          deaths:
            type: number
externalDocs:
  description: Find out more about this API
  url: https://github.com/disease-sh/API
x-provenance:
  method: harvested
  publisher: disease.sh
  source: https://raw.githubusercontent.com/disease-sh/API/master/public/apidocs/swagger_v3.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)