← clify home · catalogue · Open government data APIs for AI agents
data-cdc API for agents (unofficial) — JSON over curl
data.cdc.gov is the CDC's open-data portal (Socrata). This CLI searches the dataset catalog, lists categories and tags, reads dataset metadata, and queries or exports dataset rows through the public Socrata Discovery, SODA and views APIs.
Host: data.cdc.gov. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Start with San Francisco and U.S. agent tasks: events, startup jobs, BART and Muni departures, Craigslist listings, local news, public datasets and prediction markets. Example: curl 'https://clify-dev.netlify.app/search?q=SF+tech+events'. Responses are one JSON object. The hosted MCP and GitHub repo are also available.
Machine-readable command schema · Source website
Commands
search-datasets
Search the data.cdc.gov catalog by keyword, with optional category/tag/type filters, sort order and paging Params: q, categories, tags, only, order, api_limit, offset Read-only
curl 'https://clify-dev.netlify.app/data-cdc/search-datasets?q=influenza&categories=Vaccinations&tags=flu&only=dataset&order=updatedAt'
list-categories
List all dataset categories on data.cdc.gov with their dataset counts Params: none Read-only
curl 'https://clify-dev.netlify.app/data-cdc/list-categories'
List the most-used dataset tags on data.cdc.gov with their counts Params: none Read-only
curl 'https://clify-dev.netlify.app/data-cdc/list-tags'
autocomplete-datasets
Suggest dataset titles that match a partial search term Params: q* Read-only
curl 'https://clify-dev.netlify.app/data-cdc/autocomplete-datasets?q=influ'
get-dataset
Get full metadata for one dataset by its 4x4 id, including columns, field names, data types and stats Params: id* Read-only
curl 'https://clify-dev.netlify.app/data-cdc/get-dataset?id=ynw2-4viq'
Get a dataset's catalog metadata: tags, contact info, custom fields, ISO update dates and API/web URIs Params: id* Read-only
curl 'https://clify-dev.netlify.app/data-cdc/get-dataset-metadata?id=vh55-3he6'
query-rows
Query a dataset's rows with SoQL (SODA API): filter, full-text search, select/aggregate, group, sort and page Params: id*, where, q, select, group, order, api_limit, offset Read-only
curl 'https://clify-dev.netlify.app/data-cdc/query-rows?id=ynw2-4viq&where=jurisdiction%3D%27United+States%27&q=Texas&select=geography%2Ccount%28*%29&group=geography&order=week_ending_date+DESC&api_limit=5'
run-soql-query
Run a full SoQL query string against a dataset through the v3 query API, e.g. 'select jurisdiction, sum(influenza_deaths) group by jurisdiction limit 10' Params: id*, query* Read-only
curl 'https://clify-dev.netlify.app/data-cdc/run-soql-query?id=ynw2-4viq&query=select+jurisdiction%2C+sum%28influenza_deaths%29+group+by+jurisdiction+limit+10'
export-rows
Download a dataset export in JSON: view metadata under meta, rows as positional arrays under data Params: id*, max_rows Read-only
curl 'https://clify-dev.netlify.app/data-cdc/export-rows?id=ynw2-4viq&max_rows=5'
get-data-catalog
Get the full DCAT (Project Open Data) catalog of every public dataset on data.cdc.gov Params: none Read-only
curl 'https://clify-dev.netlify.app/data-cdc/get-data-catalog'
Related task guides and sites
Continue with Open government data APIs for AI agents or explore related sources:
data.gov.uk
data.gov.uk (National Data Library): the UK government's open data directory. The CLI searches and reads dataset metadata through the public CKAN JSON API, lists data files and previews from dataset pages, and browses the curated theme collections and their chart data.
Machine-readable commands · 9 verified commands
data.cityofnewyork.us
NYC Open Data (Socrata catalog at data.cityofnewyork.us). The CLI searches the dataset catalog by keyword, tag, category and sort order; reads dataset metadata and columns; runs SoQL queries against rows; exports CSV; and lists change history and attachments. It needs no login.
Machine-readable commands · 8 verified commands
data.europa.eu
data.europa.eu (the official EU open data portal): search EU and national open datasets, catalogues and data services, read dataset and catalogue metadata, find similar datasets, and export DCAT metadata.
Machine-readable commands · 10 verified commands