US Health Data: CDC & HealthData.gov API, No login avatar

US Health Data: CDC & HealthData.gov API, No login

Pricing

from $0.60 / 1,000 result rows

Go to Apify Store
US Health Data: CDC & HealthData.gov API, No login

US Health Data: CDC & HealthData.gov API, No login

Search CDC (data.cdc.gov) and HealthData.gov open datasets and export their rows as clean JSON, CSV or Excel. SoQL where/select filters, typed numbers, dataset name and last update on every row. No login or API key.

Pricing

from $0.60 / 1,000 result rows

Rating

0.0

(0)

Developer

Cliqto Media

Cliqto Media

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Search the open data portals of the CDC (data.cdc.gov) and HealthData.gov by keyword or dataset ID, and export the rows of the dataset as clean JSON, CSV or Excel.

For analysts, data journalists, health-tech teams and developers who need CDC and HHS tables without manual downloads: type covid vaccinations, keep 20 rows, click Start. No login or API key. A 20-row run costs about $0.02.

US Health Data: search CDC and HealthData.gov datasets by keyword or ID and export clean data rows with typed numbers to JSON, CSV or Excel. No login.

Table of contents

What it does

The Actor reads the official public Socrata API of two U.S. government health portals: data.cdc.gov (Centers for Disease Control and Prevention) and healthdata.gov (U.S. Department of Health & Human Services).

  • Data rows mode (default): give a dataset ID or a search query. The Actor finds the dataset, reads its rows page by page and saves each row with every source column, plus the dataset ID, dataset name, portal, last update of the data and the time of reading.
  • Dataset search mode: list the datasets that match your keywords, with name, category, last update, licence, columns, page views and the API endpoint. No rows.
  • Search: both portals are searched separately and the matches are merged (alternating by relevance: CDC first, then HealthData.gov; or newest first, exact for up to 100 datasets). With the default maxDatasets: 1, rows come from the top CDC match; for a HealthData.gov table set domains to ["healthdata.gov"] or pick its ID in Dataset search mode.

Number columns become JSON numbers and checkbox columns become true/false when this loses nothing. A missing value stays null; it never becomes 0.

Good fit

  • Export a CDC table (COVID-19 deaths, vaccinations, measles, wastewater, overdose and many more) to CSV or Excel with a filter, without writing code.
  • Feed health statistics to a database, a notebook or an AI agent through the Apify API, with the same field names as the source.
  • Find which CDC or HHS dataset holds the numbers you need, and how fresh it is.

Not a fit / limits

  • Only data.cdc.gov and healthdata.gov. Other Socrata portals (cities, states) are not searched.
  • The Actor returns what the portal publishes. It does not fix, merge or interpret the numbers. Many CDC datasets are provisional or no longer updated; check datasetUpdatedAt.
  • Some HealthData.gov entries are only links to files on other websites. They have no rows in the API; you get a free status row instead.
  • Up to 50,000 rows per run. Very wide or slow datasets can stop earlier (see Pricing and limits).

Quick start

  1. Open the Input tab.
  2. Type keywords in Search query (searchQuery), for example covid vaccinations. Or paste a dataset ID such as 9bhg-hcku into Dataset IDs or URLs (datasetIds).
  3. Keep Max results (maxRows) at the prefilled 20, or set up to 50,000.
  4. Click Start.
  5. Open the Output tab. Check datasetName on the first row: it tells you which dataset matched your words.

Expected result: 20 rows of the best-matching CDC dataset, in a few seconds.

Use cases

Buyer jobInput pathOutput entityKey fieldsNext integration
Export one known CDC table with a filterdatasetIds + wheredata rowsource columns, datasetName, datasetUpdatedAtCSV / Excel download, API
Quick look at data on a topicsearchQuerydata rowsource columns, datasetNameDataset view, API
Find the right dataset firstmode: datasets + searchQuerydataset recorddatasetId, datasetName, datasetUpdatedAt, columns, apiEndpointthen run Data rows mode with that datasetId
Totals without downloading rowsdatasetIds + select with count(*), sum(...)one data rowyour aggregate columnsAPI, AI agent

Input

Input fields

FieldPlain nameTypeRequiredDefault / prefillAllowed valuesEffectExample
searchQuerySearch querystringone of searchQuery / datasetIdsprefill covid vaccinationsup to 300 charactersfinds datasets; ignored when datasetIds is setmeasles
datasetIdsDataset IDs or URLsarray of stringsone of searchQuery / datasetIdsemptyup to 20; 4x4 ID or a data.cdc.gov / healthdata.gov dataset URLexports these datasets["9bhg-hcku"]
modeModestringnorowsrows, datasetsrows or catalog recordsdatasets
maxRowsMax resultsintegernodefault 100, prefill 201–50,000maximum paid results in the run500
whereFilter rows (SoQL where)stringnononeSoQL condition on API field nameskeeps matching rows onlystate = 'California'
selectColumns (SoQL select)stringnoall columnsSoQL column list or whole-result aggregatesreturns only these columnsstate, covid_19_deaths
orderSort rows (SoQL order)stringnothe source's stable row orderSoQL ordersorts rowsend_date DESC
maxDatasetsDatasets to export from a searchintegerno11–20how many best matches to export rows from3
domainsPortalsarraynoboth portalsdata.cdc.gov, healthdata.govwhere to search["data.cdc.gov"]
sortDatasetsByRank datasets bystringnorelevancerelevance, updatedorder of search matchesupdated
typedValuesTyped numbers and booleansbooleannotruetrue / falsefalse keeps every value as the source's textfalse
appTokenSocrata app tokensecret stringnononeyour free Socrata tokenhigher source rate limits; never saved to output or logs—

Empty input (no searchQuery and no datasetIds) fails at once with a clear message. A bare ID is looked up on data.cdc.gov first, then on healthdata.gov. The same dataset given twice (as an ID and as a URL) is exported once. An ID in the wrong format gets a free error status row; an unknown ID gets a free not_found status row. The other datasets are still exported.

Interacting settings

WhenInput AInput BEffective behavior
Both are setdatasetIdssearchQuerydatasetIds wins; the search query is ignored
Several datasetsmaxRowsdatasetIds / maxDatasetsmaxRows is shared across all datasets in the run
Dataset search modemode: datasetswhere, select, orderrow filters are ignored; maxRows counts dataset records (the catalog serves at most 10,000 matches)
Aggregatesselect with count(*), sum(...)plain columns in selectdo not mix them: there is no GROUP BY, the source rejects it (INVALID_INPUT)

Column names in where, select and order are the API field names, for example covid_19_deaths, not the column titles on the website. Run Dataset search mode to see them in columns.

Input examples

Rows of a known dataset, filtered

{
"datasetIds": ["9bhg-hcku"],
"where": "state = 'California'",
"maxRows": 20
}

Expected output: 20 rows of "Provisional COVID-19 Deaths by Sex and Age" for California, with covid_19_deaths, total_deaths, age_group and the other source columns.

Find datasets first

{
"mode": "datasets",
"searchQuery": "measles",
"domains": ["data.cdc.gov"],
"maxRows": 5
}

Expected output: 5 dataset records with datasetId, datasetName, datasetUpdatedAt, columns and apiEndpoint.

Output

Output fields

Every item has recordType: row (a data row), dataset (a catalog record) or status (a free note about a dataset that gave no rows).

FieldMeaningTypeCan be empty?Example / enum
recordTypekind of itemstringnorow, dataset, status
statusoutcomestringnook, not_found, no_rows, error
statusCode, statusReason, inputwhy a status row has no data, and what you enteredstringstatus rows onlyDATASET_NOT_FOUND
datasetId4x4 dataset IDstringnull only for an invalid ID9bhg-hcku
datasetNamedataset title on the portalstringyesProvisional COVID-19 Deaths by Sex and Age
domainportalstringyesdata.cdc.gov
datasetUpdatedAtwhen the data rows were last updatedstring (ISO)yes2023-09-27T14:43:31.000Z
rowNumberposition of the row in this exportintegerrows only1
sourceUrlthe exact API request that returned the itemstringyeshttps://data.cdc.gov/resource/...
fetchedAttime of readingstring (ISO)no2026-10-17T13:26:07.250Z
source columnsthe dataset's own columns, same names as the APIas in the sourceyes, null when the source has no valuecovid_19_deaths: 109248
metadataUpdatedAt, category, license, attribution, permalink, description, tags, columns, columnCount, apiEndpoint, createdAt, pageViewsLastMonth, pageViewsTotal, downloadCount, searchQuery, searchRankcatalog record fields (Dataset search mode); searchRank is the position in the merged search resultmixedyesPublic Health Surveillance

If a source column has the same name as one of the fields above, it is saved with a src_ prefix. Emails in dataset descriptions are replaced with [email removed].

Output entities and surfaces

SituationWhereResult shapeWhat to do
Normal runDataset (Output tab, API, export)row itemsdownload or use the fields
Dataset search modeDataset, view Datasetsdataset itemspick a datasetId
Filter with no matches, unknown ID, link-only datasetDataset, view Status rowsone free status item per datasetcheck statusReason and your filter
Search with no matchesDataset is empty, run summary says NO_RESULTS—try other words or both portals
Any runkey-value store record RUN_SUMMARYstatus, counts, per-dataset outcome, moreRowsAvailable, source attributionread status and message

Run summary status values: COMPLETE (everything asked for was read; reaching maxRows is still COMPLETE, with moreRowsAvailable: true for that dataset; a filter rejected by some of several datasets is COMPLETE with free error status rows for them), CAPPED (stopped at your max charge or at the internal time limit; the run still succeeds), PARTIAL (the source failed after some rows were saved; the run fails, the rows stay), NOT_FOUND, NO_RESULTS, ERROR (source unavailable), INVALID_INPUT (bad input or a SoQL the source rejected).

Output example

From the first example above (trimmed to one row):

{
"recordType": "row",
"status": "ok",
"datasetId": "9bhg-hcku",
"datasetName": "Provisional COVID-19 Deaths by Sex and Age",
"domain": "data.cdc.gov",
"datasetUpdatedAt": "2023-09-27T14:43:31.000Z",
"rowNumber": 1,
"sourceUrl": "https://data.cdc.gov/resource/9bhg-hcku.json?%24where=state+%3D+%27California%27&%24order=%3Aid&%24limit=21&%24offset=0",
"fetchedAt": "2026-10-17T13:26:07.250Z",
"data_as_of": "2023-09-27T00:00:00.000",
"start_date": "2020-01-01T00:00:00.000",
"end_date": "2023-09-23T00:00:00.000",
"group": "By Total",
"year": null,
"month": null,
"state": "California",
"sex": "All Sexes",
"age_group": "All Ages",
"covid_19_deaths": 109248,
"total_deaths": 1178346,
"pneumonia_deaths": 125177,
"influenza_deaths": 1753,
"footnote": null
}

year and month are null because this is the "By Total" row: the source has no value there. null means "no value in the source", never zero.

A free status row for a filter with no matches:

{
"recordType": "status",
"status": "no_rows",
"statusReason": "The dataset has no rows matching the where filter",
"input": "9bhg-hcku",
"datasetId": "9bhg-hcku",
"datasetName": "Provisional COVID-19 Deaths by Sex and Age",
"domain": "data.cdc.gov"
}

Pricing and limits

Pricing unit

Pay per event:

EventPriceWhen
Actor start$0.002 per run (per GB of memory, minimum one)every run; default memory is 256 MB, 512 MB when maxRows is above 2,000, so one start event
Result row$0.00085 (Bronze $0.000765, Silver $0.00068, Gold and higher $0.000595)each data row, or each dataset record in Dataset search mode, saved to the Dataset

Status rows (not_found, no_rows, error) are free. A run that finds nothing — a search with no matches, a filter with no matches, unknown IDs — costs only the start event, $0.002. Platform usage is included in the price. If the source fails in the middle, you pay only for the rows already saved. If you set a maximum charge for the run, the Actor stops before the first row that would go over it.

Cost examples (Free plan prices)

ScenarioInputPaid eventsCharge
Quick lookprefill, 20 rows1 start + 20 rows$0.019
One table100 rows1 start + 100 rows$0.087
Larger export1,000 rows1 start + 1,000 rows$0.852
Nothing foundunknown IDs or a filter with no matches1 start$0.002

Limits

  • Up to 50,000 rows per run (tested on an earlier build with the same row reader: 50,000 rows of a CDC dataset in 32 seconds).
  • The Actor stops reading the source 250 seconds after the start, so a run fits the default 5-minute timeout. Very wide or slow datasets can stop earlier: a 135-column HealthData.gov dataset needed 204 seconds for 20,000 rows, so a bigger request on it reaches the limit. Then the run ends with CAPPED, and the dataset's outcome in RUN_SUMMARY is stopped with DEADLINE_REACHED; run again with a where filter on a date or ID to get the next part.
  • Up to 20 dataset IDs and 20 datasets from a search per run.
  • The source has no published quota. If it answers HTTP 429, the Actor waits and retries; your own free Socrata app token (appToken) raises the limit.

API, export and integrations

  • Export: JSON, CSV, Excel, XML and other formats from the Output tab or the Dataset API.
  • API: start the run with the input above and read the items of the run's default Dataset; the run summary is the RUN_SUMMARY record in the default key-value store.
  • Scheduling: set a schedule in Apify Console to refresh a table every day or week.

Use with AI agents (MCP)

  • MCP server with only this Actor: https://mcp.apify.com?tools=cliqtomedia/us-health-data-api
  • Smallest useful input: {"searchQuery": "covid vaccinations", "maxRows": 20}.
  • Key output fields: datasetName (which dataset matched), datasetUpdatedAt (how fresh the data is), the source columns (the numbers), status (ok or why there is no data).
  • Typical run: a few seconds for 20 rows, $0.019 on the Free plan. Keep maxRows small and use where / select to get only what the answer needs; use count(*) or sum(...) in select for totals.

Troubleshooting

The rows are from a different dataset than I expected

Symptom: datasetName is not the table you wanted. Likely reason: the search query matched another dataset better, or the table is on HealthData.gov while the top CDC match was used (default maxDatasets: 1). Action: run Dataset search mode with the same words, pick the datasetId and put it into datasetIds.

INVALID_INPUT with a SoQL message

Symptom: the run fails and RUN_SUMMARY shows the source's message, for example column-not-in-group-bys or an unknown column. Likely reason: the column name is the website title instead of the API field name, or aggregates are mixed with plain columns. Action: check the names in columns (Dataset search mode) and quote text values: state = 'California'.

A status row with no_rows or not_found

Symptom: one item with recordType: status. Likely reason: the filter matched no rows, the ID does not exist on either portal, or the HealthData.gov entry is only a link to a file elsewhere. Action: read statusReason. This is not a failure and it is free.

The run ended CAPPED before maxRows

Symptom: fewer rows than maxRows; in RUN_SUMMARY the dataset outcome is stopped with DEADLINE_REACHED or MAX_CHARGE_REACHED. Likely reason: the dataset is very wide or the portal answered slowly, and the 250-second limit was reached, or your maximum charge was reached. Action: export in parts with a where filter, choose fewer columns with select, or raise the maximum charge.

ERROR or RATE_LIMITED

Symptom: the run fails with ERROR and a message about the source. Likely reason: the portal is down or limits requests. Rows saved before the failure stay in the Dataset. Action: try again later, or add your free Socrata app token in appToken.

FAQ

Do I need a login or an API key?

No. Both portals are public. A Socrata app token is optional and only raises the source's rate limit.

Why are some numbers null?

The source has no value there (for example a suppressed small count or a total row). The Actor never turns a missing value into 0.

Is the data up to date?

The Actor reads the portal live at run time. How fresh the data is depends on the dataset: datasetUpdatedAt shows when its rows last changed. Many COVID-19 datasets were archived in 2023.

Can I get the same output as the website export?

The column names are the API field names, which can differ from the titles on the website. The values are the same; numbers are typed unless you set typedValues: false.

Source, licence and attribution

Data comes from the public Socrata APIs of data.cdc.gov and healthdata.gov. Most CDC datasets are U.S. Government works marked "Public Domain U.S. Government"; some include third-party material, and HealthData.gov datasets carry their own licence. Check the license and attribution fields of each dataset (Dataset search mode). Please credit the source agency. This Actor is not affiliated with or endorsed by the CDC or HHS.

Support

Use the Issues tab of this Actor. Add the run ID, the input mode and the statusReason or RUN_SUMMARY message you saw. Do not send API tokens.