{ "opencollection": "1.0.0", "info": { "name": "CDC Socrata Open Data API (data.cdc.gov) SODA v2.1 SODA v3 API", "version": "2.1" }, "request": { "auth": { "type": "apikey", "key": "X-App-Token", "value": "{{X-App-Token}}", "placement": "header" } }, "items": [ { "info": { "name": "SODA v3", "type": "folder" }, "items": [ { "info": { "name": "Query a dataset (SODA v3, GET)", "type": "http" }, "http": { "method": "GET", "url": "https://data.cdc.gov/api/v3/views/:dataset_id/query.json", "params": [ { "name": "dataset_id", "value": "", "type": "path", "description": "Eight-character dataset identifier (four-four with a dash)." }, { "name": "$query", "value": "", "type": "query", "description": "Full SoQL query, overriding individual $select/$where/etc." }, { "name": "$$app_token", "value": "", "type": "query", "description": "Socrata application token (alternative to X-App-Token header)." } ] }, "docs": "Query endpoint with v3 options and machine-readable response." }, { "info": { "name": "Query a dataset (SODA v3, POST)", "type": "http" }, "http": { "method": "POST", "url": "https://data.cdc.gov/api/v3/views/:dataset_id/query.json", "params": [ { "name": "dataset_id", "value": "", "type": "path", "description": "Eight-character dataset identifier (four-four with a dash)." }, { "name": "$$app_token", "value": "", "type": "query", "description": "Socrata application token (alternative to X-App-Token header)." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Preferred method for longer queries. Body is SoQL/$query payload." }, { "info": { "name": "Export a dataset (human-readable)", "type": "http" }, "http": { "method": "GET", "url": "https://data.cdc.gov/api/v3/views/:dataset_id/export.:format", "params": [ { "name": "dataset_id", "value": "", "type": "path", "description": "Eight-character dataset identifier (four-four with a dash)." }, { "name": "format", "value": "", "type": "path" }, { "name": "$$app_token", "value": "", "type": "query", "description": "Socrata application token (alternative to X-App-Token header)." } ] }, "docs": "Export a dataset (human-readable)" } ] } ], "bundled": true }