← Back to catalog
cdc.query
mock data$0.001 / callQuery CDC Dataset
Query a specific CDC dataset using SoQL filters — filter by state, year, age group, condition. Returns structured rows with column names. Supports WHERE, SELECT, ORDER, GROUP BY. Use cdc.datasets to find dataset IDs first (US Gov, Socrata SODA API)
Input schema
group
stringGroup by columns for aggregation (e.g. "state" with select "state, SUM(deaths)")
limit
integerMax rows to return (1-1000, default 100)
order
stringSort order (e.g. "year DESC", "deaths DESC"). Default: dataset default order.
where
stringSoQL WHERE clause filter (e.g. "state='CA'", "year > 2020", "age_group='65+'")
select
stringColumns to return, comma-separated (e.g. "state, year, deaths"). Default: all columns.
dataset_idrequired
stringCDC dataset ID in xxxx-xxxx format (e.g. "9bhg-hcku" for COVID deaths). Use cdc.datasets to find IDs.
Call via REST
curl -X POST https://unifyapi.pro/api/call/cdc.query \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"group":"<group>","limit":0,"order":"<order>","where":"<where>","select":"<select>","dataset_id":"<dataset_id>"}'