CDC Open Data
Open data portalsUSdata.cdc.gov
Socrata open data portal at data.cdc.gov, publishing 1478 public datasets from the publishing organisation, led by the National Center for Health Statistics category.
Capabilities (5)
GET /v1/data/data-cdc-gov/catalog-search1 creditKeyword search over the datasets published on data.cdc.gov: each hit carries the dataset id, name, description, attribution, category, tags, column names and last update time, plus the total match count.
GET /v1/data/data-cdc-gov/dataset1 creditThe complete metadata document for one dataset: name, description, attribution, licence, category, tags, all column definitions with data types, and the table id used for queries.
GET /v1/data/data-cdc-gov/datasets1 creditA page of the portal's own dataset records (id, name, description, category, attribution, creation and update timestamps, view count) without the full column metadata.
GET /v1/data/data-cdc-gov/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/data-cdc-gov/rows1 creditThe first 100 rows of a dataset as JSON objects keyed by field name. Column names are the API field names, so they can be used directly in a later SoQL query.
Response example
The shape of data from data-cdc-gov/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"results": [
{
"resource": {
"name": "Provisional COVID-19 Deaths by Sex and Age",
"id": "9bhg-hcku",
"resource_name": null,
"parent_fxf": [],
"description": "Effective September 27, 2023, this dataset will no longer be updated. Similar data are accessible from wonder.cdc.gov.\n\nDeaths involving COVID-19, pneumonia, and influenza reported to NCHS by sex, age group, and jurisdiction of occurrence.",
"attribution": "NCHS/DVS",
"attribution_link": "https://www.cdc.gov/nchs/nvss/vsrr/covid_weekly/index.htm",
"contact_email": "cdcinfo@cdc.gov",
"type": "dataset",
"updatedAt": "2026-09-23T00:11:29.000Z",
"createdAt": "2020-05-01T16:01:23.000Z",
"metadata_updated_at": "2026-09-23T00:11:29.000Z",
"data_updated_at": "2023-09-27T14:43:31.000Z",
"page_views": {
"page_views_last_week": 2453,
"page_views_last_month": 8278,
"page_views_total": 4352805,
"page_views_last_week_log": 11.260919533662905,
"page_views_last_month_log": 13.015240803332683,
"page_views_total_log": 22.053514291477352
},
"columns_name": [
"Group",
"Pneumonia and COVID-19 Deaths",
"Sex",
"Month",
"End Date",
"… 11 more items"
],
"columns_field_name": [
"group",
"pneumonia_and_covid_19_deaths",
"sex",
"month",
"end_date",
"… 11 more items"
],
"columns_datatype": [
"Text",
"Number",
"Text",
"Number",
"Calendar date",
"… 11 more items"
],
"columns_description": [
"Indicator of whether data measured by Month, by Year, or Total",
"Deaths with Pneumonia and COVID-19 (ICD-10 codes J12.0-J18.9 and U07.1)",
"Sex",
"Month in which death occurred",
"Last date of data period",
"… 11 more items"
],
"columns_format": [
{},
{
"align": "right"
},
{},
{},
{
"view": "date"
},
"… 11 more items"
],
"download_count": 625715,
"provenance": "official",
"lens_view_type": "tabular",
"lens_display_type": "table",
"locked": false,
"backend": "nbe",
"blob_mime_type": null,
"hide_from_data_json": false,
"publication_date": "2021-02-24T20:02:36.000Z"
},
"classification": {
"categories": [],
"tags": [],
"domain_category": "National Center for Health Statistics",
"domain_tags": [
"deaths",
"covid-19",
"coronavirus",
"monthly",
"mortality",
"… 12 more items"
],
"domain_metadata": [
{
"key": "Common-Core_Contact-Email",
"value": "cdcinfo@cdc.gov"
},
{
"key": "Common-Core_Program-Code",
"value": "009:020"
},
{
"key": "Common-Core_Public-Access-Level",
"value": "public"
},
{
"key": "Common-Core_Temporal-Applicability",
"value": "2020-01-01/2023-07-29"
},
{
"key": "Common-Core_Geographic-Coverage",
"value": "United States, Puerto Rico"
},
"… 18 more items"
]
},
"metadata": {
"domain": "data.cdc.gov",
"license": "Public Domain U.S. Government"
},
"permalink": "https://data.cdc.gov/d/9bhg-hcku",
"link": "https://data.cdc.gov/National-Center-for-Health-Statistics/Provisional-COVID-19-Deaths-by-Sex-and-Age/9bhg-hcku",
"owner": {
"id": "xfvr-ns68",
"user_type": "interactive",
"display_name": "NCHS"
},
Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Catalogue search
Use CDC Open Data (data-cdc-gov) from fastCRW Pergamon, capability "Catalogue search" (catalog-search). You want to find a dataset on this portal by keyword and do not know its four-by-four id. Example options: q=taxi, offset=0, order=page_views_total DESC. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-cdc-gov" and capability "catalog-search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset metadata
Use CDC Open Data (data-cdc-gov) from fastCRW Pergamon, capability "Dataset metadata" (dataset). You already hold a dataset id and need its columns, licence or description before querying rows. Example options: id=ahfs-x44r. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-cdc-gov" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset inventory
Use CDC Open Data (data-cdc-gov) from fastCRW Pergamon, capability "Dataset inventory" (datasets). You need to enumerate what this portal publishes, or page through its newest datasets. Example options: offset=0, order=createdAt, category=Transportation. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-cdc-gov" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Row count
Use CDC Open Data (data-cdc-gov) from fastCRW Pergamon, capability "Row count" (row-count). You need to know how large a dataset is before downloading it, or want a cheap liveness check. Example options: id=ahfs-x44r. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-cdc-gov" and capability "row-count". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Datasets on this portal declare the licence "Public Domain U.S. Government" in their Socrata metadata; the portal publishes no separate API licence and different datasets may carry different terms. Quoted as found in the portal's own catalogue.
https://data.cdc.gov/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.cdc.gov. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
