disease.sh COVID-19: JHUCSSE API

(COVID-19 data sourced from Johns Hopkins University, updated every 10 minutes)

GitHub OpenAPI

Operations 11

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/jhucsse Get global COVID-19 totals by country and province · Get COVID-19 totals for all countries and their provinces #
Ask an LLM
“What are the world's total confirmed and death cases by country and province?”
“Can I get cumulative global COVID-19 numbers for every country?”
Tell an agent
Get global COVID-19 totals for all countries and provinces.
Show worldwide confirmed and death totals by country and province.
GET /v3/covid-19/jhucsse/counties Get COVID-19 totals for all US counties · Get COVID-19 totals for all US counties #
Ask an LLM
“What are the latest confirmed and death cases for every US county?”
“Can I see county-level US COVID-19 totals?”
Tell an agent
Get COVID-19 totals for all US counties.
Show confirmed and death counts for every US county.
GET /v3/covid-19/jhucsse/counties/{county} Get COVID-19 totals for one US county · Get COVID-19 totals for a specific county #
Ask an LLM
“What are the confirmed and death cases for a specific US county?”
“Can I look up one county's COVID-19 totals by name?”
Tell an agent
Get COVID-19 totals for county {county}.
Show confirmed and death cases for {county}.
GET /v3/covid-19/historical Get global COVID-19 time series data · Get COVID-19 time series data for all countries and their provinces #
Ask an LLM
“Can I get daily global COVID-19 case counts over time?”
“How do I get a time series of worldwide confirmed cases?”
Tell an agent
Get global COVID-19 time series data for all countries and provinces.
Show daily worldwide case counts for the last {lastdays} days.
GET /v3/covid-19/historical/all Get global accumulated COVID-19 time series · Get global accumulated COVID-19 time series data #
Ask an LLM
“What is the full global accumulated time series of COVID-19 cases?”
“Can I get the complete worldwide case history?”
Tell an agent
Get the global accumulated COVID-19 time series.
Show the full worldwide case history.
GET /v3/covid-19/historical/{country} Get a country's COVID-19 time series · Get COVID-19 time series data for a specific country #
Ask an LLM
“Can I get daily case counts for one country over time?”
“How do I see a single country's case history?”
Tell an agent
Get the COVID-19 time series for {country}.
Show daily case counts for {country} over the last {lastdays} days.
GET /v3/covid-19/historical/{countries} Get country-by-country COVID-19 time series · Get COVID-19 time series data for a specific set of countries #
Ask an LLM
“How are confirmed cases and deaths trending over time in several countries?”
“Can I get at most the last 30 days of worldwide COVID-19 case history?”
Tell an agent
Get the historical COVID-19 times series for {countries}.
Show daily case trends for {countries} over the last {lastdays} days.
GET /v3/covid-19/historical/{country}/{province} Get COVID-19 history for one province · Get COVID-19 time series data for a specific province in a country #
Ask an LLM
“What is the daily case and death history for a single province within a country?”
“Can I limit one province's COVID-19 history to the most recent days?”
Tell an agent
Get the COVID-19 history for the province {province} in {country}.
Show the daily trend for the single province {province} of {country} over the last {lastdays} days.
GET /v3/covid-19/historical/{country}/{provinces} Get COVID-19 history for several provinces at once · Get COVID-19 time series data for a set of provinces in a country #
Ask an LLM
“Can I compare COVID-19 trends across several provinces of one country in a single request?”
“Is it possible to request multiple provinces' histories at once using a comma or pipe list?”
Tell an agent
Get the COVID-19 history for these provinces: {provinces}, all in {country}.
Compare the provinces {provinces} of {country} over the last {lastdays} days.
GET /v3/covid-19/historical/usacounties List US states for county time series · Get all possible US States to query the /historical/usacounties/{state}… #
Ask an LLM
“Which US states can I query for county-level COVID-19 time series?”
“What states are available for the /historical/usacounties endpoint?”
Tell an agent
List the US states available for county-level time series.
Show the states I can query for county data.
GET /v3/covid-19/historical/usacounties/{state} Get county time series for one US state · Get COVID-19 time series data for all counties in a specified US state #
Ask an LLM
“Can I get daily case counts for every county in one US state?”
“How do I see a single state's county-level case history?”
Tell an agent
Get the COVID-19 time series for all counties in {state}.
Show daily case counts for {state}'s counties over the last {lastdays} days.

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-jhucsse-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-jhucsse-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: JHUCSSE'
  description: (COVID-19 data sourced from Johns Hopkins University, updated every 10 minutes)
paths:
  /v3/covid-19/jhucsse:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      summary: Get COVID-19 totals for all countries and their provinces
      responses:
        '200':
          description: Status OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidJHUCountries'
      operationId: getV3Covid19Jhucsse
      x-operation-id-source: derived
  /v3/covid-19/jhucsse/counties:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      summary: Get COVID-19 totals for all US counties
      responses:
        '200':
          description: Status OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidJHUCounties'
      operationId: getV3Covid19JhucsseCounties
      x-operation-id-source: derived
  /v3/covid-19/jhucsse/counties/{county}:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      parameters:
      - name: county
        in: path
        required: true
        description: Name of any county in the USA. All counties are listed in the /v3/covid-19/jhucsse/counties/ endpoint
        type: string
      summary: Get COVID-19 totals for a specific county
      responses:
        '200':
          description: Status OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidJHUCounties'
      operationId: getV3Covid19JhucsseCountiesByCounty
      x-operation-id-source: derived
  /v3/covid-19/historical:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      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 countries and their provinces
      responses:
        '200':
          description: Status OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistorical'
      operationId: getV3Covid19Historical
      x-operation-id-source: derived
  /v3/covid-19/historical/all:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      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 global accumulated COVID-19 time series data
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistoricalAll'
      operationId: getV3Covid19HistoricalAll
      x-operation-id-source: derived
  /v3/covid-19/historical/{country}:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      parameters:
      - name: country
        in: path
        required: true
        description: A country name, iso2, iso3, or country ID code
        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 specific country
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistoricalCountry'
      operationId: getV3Covid19HistoricalByCountry
      x-operation-id-source: derived
  /v3/covid-19/historical/{countries}:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      parameters:
      - name: countries
        in: path
        required: true
        description: Multiple country names, iso2, iso3, or country IDs separated by commas
        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 specific set of countries
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistoricalCountries'
      operationId: getV3Covid19HistoricalByCountries
      x-operation-id-source: derived
  /v3/covid-19/historical/{country}/{province}:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      parameters:
      - name: country
        in: path
        required: true
        description: A country name, iso2, iso3, or country ID code
        type: string
      - name: province
        in: path
        required: true
        description: Province name. All available names can be found in the /v3/covid-19/historical/{query} endpoint
        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 specific province in a country
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistoricalProvince'
      operationId: getV3Covid19HistoricalByCountryByProvince
      x-operation-id-source: derived
  /v3/covid-19/historical/{country}/{provinces}:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      parameters:
      - name: country
        in: path
        required: true
        description: A country name, iso2, iso3, or country ID code
        type: string
      - name: provinces
        in: path
        required: true
        description: Provinces spelled correctly separated by ',' or '|' delimiters, never both in the same query
        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 set of provinces in a country
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistoricalProvinces'
      operationId: getV3Covid19HistoricalByCountryByProvinces
      x-operation-id-source: derived
  /v3/covid-19/historical/usacounties:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      summary: Get all possible US States to query the /historical/usacounties/{state}…
      description: Returns a list of US States and provinces
      responses:
        '200':
          description: Status OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistoricalUSCounties'
      operationId: getV3Covid19HistoricalUsacounties
      x-operation-id-source: derived
  /v3/covid-19/historical/usacounties/{state}:
    get:
      tags:
      - 'COVID-19: JHUCSSE'
      parameters:
      - name: state
        in: path
        required: true
        description: US state name, validated in the array returned from the /v3/covid-19/historical/usacounties endpoint
        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 all counties in a specified US state
      responses:
        '200':
          description: Status Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/covidHistoricalUSCounty'
      operationId: getV3Covid19HistoricalUsacountiesByState
      x-operation-id-source: derived
components:
  schemas:
    covidJHUCounty:
      properties:
        country:
          type: string
        province:
          type: string
        county:
          type: string
        updatedAt:
          type: string
        stats:
          type: object
          properties:
            confirmed:
              type: number
            deaths:
              type: number
            recovered:
              type: number
        coordinates:
          type: object
          properties:
            latitude:
              type: string
            longitude:
              type: string
    covidJHUCounties:
      type: array
      items:
        $ref: '#/components/schemas/covidJHUCounty'
    covidHistorical:
      type: array
      items:
        type: object
        properties:
          country:
            type: string
          province:
            type: string
          timeline:
            type: object
            description: The amount of key-value pairs in 'cases', 'deaths' and 'recovered' is dependent on the 'lastdays' query
            properties:
              cases:
                type: object
                properties:
                  date:
                    type: number
              deaths:
                type: object
                properties:
                  date:
                    type: number
              recovered:
                type: object
                properties:
                  date:
                    type: number
    covidHistoricalCountry:
      properties:
        country:
          type: string
        province:
          type: array
          items:
            type: string
        timeline:
          type: object
          description: The amount of key-value pairs in 'cases', 'deaths' and 'recovered' is dependent on the 'lastdays' query
          properties:
            cases:
              type: object
              properties:
                date:
                  type: number
            deaths:
              type: object
              properties:
                date:
                  type: number
            recovered:
              type: object
              properties:
                date:
                  type: number
    covidHistoricalAll:
      description: The amount of key-value pairs in 'cases', 'deaths' and 'recovered' is dependent on the 'lastdays' query
      properties:
        cases:
          type: object
          properties:
            date:
              type: number
        deaths:
          type: object
          properties:
            date:
              type: number
        recovered:
          type: object
          properties:
            date:
              type: number
    covidHistoricalUSCounties:
      type: array
      items:
        type: string
    covidHistoricalUSCounty:
      type: array
      items:
        type: object
        properties:
          province:
            type: string
          county:
            type: string
          timeline:
            type: object
            description: The amount of key-value pairs in 'cases', 'deaths' and 'recovered' is dependent on the 'lastdays' query
            properties:
              cases:
                type: object
                properties:
                  date:
                    type: number
              deaths:
                type: object
                properties:
                  date:
                    type: number
              recovered:
                type: object
                properties:
                  date:
                    type: number
    covidJHUCountries:
      properties:
        country:
          type: string
        county:
          type: string
        updatedAt:
          type: string
        stats:
          type: object
          properties:
            confirmed:
              type: number
            deaths:
              type: number
            recovered:
              type: number
        coordinates:
          type: object
          properties:
            latitude:
              type: string
            longitude:
              type: string
        province:
          type: string
    covidHistoricalProvinces:
      type: array
      items:
        $ref: '#/components/schemas/covidHistoricalProvince'
    covidHistoricalProvince:
      properties:
        country:
          type: string
        province:
          type: string
        timeline:
          type: object
          description: The amount of key-value pairs in 'cases', 'deaths' and 'recovered' is dependent on the 'lastdays' query
          properties:
            cases:
              type: object
              properties:
                date:
                  type: number
            deaths:
              type: object
              properties:
                date:
                  type: number
            recovered:
              type: object
              properties:
                date:
                  type: number
    covidHistoricalCountries:
      type: array
      items:
        $ref: '#/components/schemas/covidHistoricalCountry'
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)