Search the CDC dataset catalog by keyword, category, tag, or asset type. Returns IDs, names, truncated descriptions, asset types, column counts, update timestamps, portal links, and for a file its download URL and MIME type. The catalog also holds charts, maps, stories, files, and links; an entry whose columnCount is 0 is one of those and yields no data from the other tools — download a file from its downloadUrl, reach a link through its accessPoints, and a chart or map through the dataset its parentIds name. Use cdc_get_dataset_schema for the full column list of a chosen dataset.
Get a CDC dataset's SoQL fields, display labels, types, descriptions, row count and last update. Filters identify their parent dataset. Publisher metadata includes coverage, update frequency, citation, license and attribution when available. A chart or map's error names its parent dataset. A file's error supplies its download URL and any recorded name and size. The first 100 columns are returned by default. Continue with column_offset. For a dataset description beyond 4,000 characters, pass full_description: true. Get dataset IDs from cdc_discover_datasets.
List the controlled vocabularies cdc_discover_datasets' category and tags filters are matched against — every domain category and domain tag the CDC catalog publishes, each with the number of entries carrying it. Call it before filtering a search: a value the catalog does not carry matches nothing and returns an empty page, which is indistinguishable from a real value with no results. All categories come back whole; the tag vocabulary runs to roughly 1,600 values, so tags are ranked by entry count and returned one page at a time via tag_limit and tag_offset. Pass filter to narrow both vocabularies to the values that have a word containing or starting each of its words, or whose every word contains or starts one of its words; a filter under three letters or digits matches whole words only.
Execute a SoQL query against any CDC dataset. Supports filtering, aggregation, sorting, full-text search, and field selection. Use cdc_discover_datasets to find dataset IDs and cdc_get_dataset_schema to inspect columns before querying.
Query CDC WONDER for national US mortality statistics — deaths, population, and crude and age-adjusted death rates with their 95% confidence intervals — from one of five mortality databases, final and provisional, underlying-cause and multiple-cause, together covering 1999 through the current year. Break results out by year, month, age group, sex, race, Hispanic origin, or underlying cause of death — ICD-10 chapter or sub-chapter, CDC's 113-cause list, its 15 leading causes, or injury intent — and filter by ICD-10 cause of death, sex, age group, or year range; on a multiple-cause database, mcd_icd10 matches a cause listed anywhere on the death certificate rather than only the one certified as underlying. WONDER is a separate CDC system from the Socrata datasets the other cdc_* tools query. Data is national only — sub-national (state/county) breakdowns are not available through the API (CDC vital-statistics policy). Where this server stages tables (cdc_dataframe_query is listed), a first page that leaves rows past it also stages the whole table, which cdc_dataframe_query ranks, compares, or pages with SQL without another WONDER request. CDC rejects requests made less than 15 seconds apart across all five databases, so calls are spaced automatically: calls made while another is running wait their turn and run one after another, each queued call adding about 16 seconds plus its own query time before it returns. A request WONDER has not finished answering within 20 seconds fails as a retryable upstream_error, so one call queued behind another returns within about 56 seconds.
List the tables cdc_query_wonder has staged on this server for SQL, each with its row count, its columns and their types, and when it is dropped. cdc_query_wonder stages the whole WONDER table when a call at offset 0 leaves rows past the page it returns, and names it in stagedTable. A staged table holds the columns of the inline rows in CDC's row order, then a <measure>_status column for each measure — the token CDC returned in place of the value ("Suppressed", "Unreliable", "Not Applicable"), null where the value is a number. Dimension columns are text, so a year compares as '2024'. Pass table to describe one table. A table is dropped an hour after the last query that read it, or earlier, earliest-expiring first, once 200 are staged, and the list can include tables other sessions on this server staged.
Rank, compare, aggregate, or join staged WONDER tables with one read-only DuckDB SELECT. Use the stagedTable from cdc_query_wonder or a name from cdc_dataframe_describe. Tables keep CDC row order: SELECT * FROM <name> LIMIT <n> OFFSET <m> continues an inline page without another WONDER request. Each <measure>_status holds CDC's token (Suppressed, Unreliable, Not Applicable) or null for a numeric value. Null sorts last in either direction. Dimensions are text, so compare years to '2024'. BIGINT results such as count(*) are strings. Cast to DOUBLE for a number. DuckDB measures rows against a 1,000,000-byte JSON ceiling. On result_too_large, project fewer columns, aggregate, or lower limit. File, network, and settings reads are refused. Tables expire an hour after their last read, or earlier, earliest-expiring first, at 200 tables.