data-analyst-mcp 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/README.md +262 -262
  2. package/dist/report/method_audit.js +7 -1
  3. package/dist/report/method_audit.js.map +1 -1
  4. package/dist/report/scan_secrets.d.ts +4 -1
  5. package/dist/report/scan_secrets.js +36 -5
  6. package/dist/report/scan_secrets.js.map +1 -1
  7. package/dist/server.d.ts +1 -1
  8. package/dist/server.js +3 -2
  9. package/dist/server.js.map +1 -1
  10. package/guide/WORKFLOW.md +134 -134
  11. package/guide/assets/disclaimer.txt +1 -1
  12. package/guide/assets/download_data.ps1 +162 -162
  13. package/guide/assets/report_template.html +597 -597
  14. package/guide/references/routing.md +171 -171
  15. package/guide/references/style_guide.md +398 -398
  16. package/package.json +56 -56
  17. package/packs/acf/endpoints.json +114 -114
  18. package/packs/acf/policy.json +104 -104
  19. package/packs/actuaries/endpoints.json +82 -82
  20. package/packs/actuaries/policy.json +109 -109
  21. package/packs/bea/assets/download_bea.ps1 +182 -182
  22. package/packs/bea/docs/bea_api.md +461 -461
  23. package/packs/bea/docs/datasets.md +157 -157
  24. package/packs/bea/docs/report_patterns.md +112 -112
  25. package/packs/bea/policy.json +170 -170
  26. package/packs/bea/source.md +152 -152
  27. package/packs/bls/assets/download_bls.ps1 +152 -152
  28. package/packs/bls/docs/analysis_patterns.md +108 -108
  29. package/packs/bls/docs/bls_api.md +73 -73
  30. package/packs/bls/docs/series_ids.md +149 -149
  31. package/packs/bls/policy.json +238 -238
  32. package/packs/bts/endpoints.json +346 -346
  33. package/packs/bts/policy.json +94 -94
  34. package/packs/cdc/endpoints.json +197 -197
  35. package/packs/cdc/policy.json +83 -83
  36. package/packs/census/endpoints.json +99 -99
  37. package/packs/cfpb/endpoints.json +326 -326
  38. package/packs/cfpb/policy.json +119 -119
  39. package/packs/clinical-trials/endpoints.json +166 -166
  40. package/packs/clinical-trials/policy.json +84 -84
  41. package/packs/cms/endpoints.json +69 -69
  42. package/packs/cms/policy.json +96 -96
  43. package/packs/college-scorecard/endpoints.json +252 -252
  44. package/packs/college-scorecard/policy.json +106 -106
  45. package/packs/congress/endpoints.json +1701 -1701
  46. package/packs/congress/policy.json +117 -117
  47. package/packs/dhs-ohss/endpoints.json +66 -66
  48. package/packs/dhs-ohss/policy.json +107 -107
  49. package/packs/doj-news/endpoints.json +59 -59
  50. package/packs/doj-news/policy.json +96 -96
  51. package/packs/dol/endpoints.json +817 -817
  52. package/packs/dol/policy.json +135 -135
  53. package/packs/eia/endpoints.json +717 -717
  54. package/packs/eia/policy.json +112 -112
  55. package/packs/epa/endpoints.json +291 -291
  56. package/packs/epa/policy.json +99 -99
  57. package/packs/epa-aqs/endpoints.json +173 -173
  58. package/packs/epa-aqs/policy.json +96 -96
  59. package/packs/fbi/endpoints.json +1841 -1841
  60. package/packs/fbi/policy.json +118 -118
  61. package/packs/fda/endpoints.json +237 -237
  62. package/packs/fda/policy.json +121 -121
  63. package/packs/fdic/endpoints.json +416 -416
  64. package/packs/fdic/policy.json +83 -83
  65. package/packs/fec/endpoints.json +707 -707
  66. package/packs/fec/policy.json +93 -93
  67. package/packs/fed-board/endpoints.json +89 -89
  68. package/packs/fed-board/policy.json +136 -136
  69. package/packs/federal-register/endpoints.json +143 -143
  70. package/packs/federal-register/policy.json +86 -86
  71. package/packs/fema/endpoints.json +645 -645
  72. package/packs/fema/policy.json +103 -103
  73. package/packs/fhfa/endpoints.json +105 -105
  74. package/packs/fhfa/policy.json +109 -109
  75. package/packs/fred/assets/download_fred.ps1 +122 -122
  76. package/packs/fred/docs/analysis_patterns.md +124 -124
  77. package/packs/fred/docs/fred_api.md +94 -94
  78. package/packs/fred/docs/series.md +188 -188
  79. package/packs/fred/policy.json +253 -253
  80. package/packs/fsa/endpoints.json +150 -150
  81. package/packs/fsa/policy.json +99 -99
  82. package/packs/govinfo/endpoints.json +519 -519
  83. package/packs/gsa-calc/endpoints.json +93 -93
  84. package/packs/gsa-calc/policy.json +97 -97
  85. package/packs/hud/endpoints.json +146 -146
  86. package/packs/hud/policy.json +84 -84
  87. package/packs/ipums/docs/report_patterns.md +117 -117
  88. package/packs/irs-soi/endpoints.json +114 -114
  89. package/packs/irs-soi/policy.json +107 -107
  90. package/packs/medicaid/endpoints.json +412 -412
  91. package/packs/medicaid/policy.json +108 -108
  92. package/packs/naep/endpoints.json +217 -217
  93. package/packs/naep/policy.json +100 -100
  94. package/packs/nhtsa/endpoints.json +132 -132
  95. package/packs/nhtsa/policy.json +93 -93
  96. package/packs/nih/endpoints.json +452 -452
  97. package/packs/nih/policy.json +86 -86
  98. package/packs/noaa/endpoints.json +431 -431
  99. package/packs/noaa/policy.json +95 -95
  100. package/packs/nrel/endpoints.json +327 -327
  101. package/packs/nrel/policy.json +96 -96
  102. package/packs/nws/endpoints.json +271 -271
  103. package/packs/nws/policy.json +82 -82
  104. package/packs/nyfed/endpoints.json +80 -80
  105. package/packs/nyfed/policy.json +92 -92
  106. package/packs/omb/endpoints.json +460 -460
  107. package/packs/omb/policy.json +106 -106
  108. package/packs/open-payments/endpoints.json +297 -297
  109. package/packs/open-payments/policy.json +101 -101
  110. package/packs/opm/assets/download_opm.ps1 +125 -125
  111. package/packs/opm/docs/fields.md +184 -184
  112. package/packs/opm/docs/opm_api.md +71 -71
  113. package/packs/opm/docs/report_patterns.md +83 -83
  114. package/packs/opm/lib/data_dictionary.csv +73 -73
  115. package/packs/pbgc/endpoints.json +483 -483
  116. package/packs/pbgc/policy.json +94 -94
  117. package/packs/philfed/endpoints.json +85 -85
  118. package/packs/philfed/policy.json +94 -94
  119. package/packs/regulations/endpoints.json +287 -287
  120. package/packs/regulations/policy.json +86 -86
  121. package/packs/sec/endpoints.json +236 -236
  122. package/packs/sec/policy.json +86 -86
  123. package/packs/senate-lobbying/endpoints.json +553 -553
  124. package/packs/senate-lobbying/policy.json +99 -99
  125. package/packs/snapqc/endpoints.json +1426 -1426
  126. package/packs/snapqc/policy.json +92 -92
  127. package/packs/treasury/catalog.json +2267 -2267
  128. package/packs/treasury/docs/api_guide.md +245 -245
  129. package/packs/treasury/docs/datasets.md +56 -56
  130. package/packs/treasury/docs/report_patterns.md +126 -126
  131. package/packs/treasury/policy.json +159 -159
  132. package/packs/treasury/source.md +170 -165
  133. package/packs/treasury-yields/endpoints.json +226 -226
  134. package/packs/treasury-yields/policy.json +86 -86
  135. package/packs/usaspending/endpoints.json +1315 -1315
  136. package/packs/usaspending/policy.json +109 -109
  137. package/packs/usda-fna/policy.json +133 -133
  138. package/packs/usda-fooddata/endpoints.json +180 -180
  139. package/packs/usda-fooddata/policy.json +94 -94
  140. package/packs/usda-nass/endpoints.json +323 -323
  141. package/packs/usda-nass/policy.json +95 -95
  142. package/packs/usda-outlook/endpoints.json +86 -86
  143. package/packs/usda-outlook/policy.json +109 -109
  144. package/packs/usgs/endpoints.json +313 -313
  145. package/packs/usgs/policy.json +95 -95
  146. package/packs/usitc/endpoints.json +74 -74
  147. package/packs/usitc/policy.json +111 -111
  148. package/packs/uspto/endpoints.json +141 -141
  149. package/packs/uspto/policy.json +95 -95
  150. package/packs/va/endpoints.json +414 -414
  151. package/packs/va/policy.json +101 -101
  152. package/packs/world-bank/endpoints.json +122 -122
  153. package/packs/world-bank/policy.json +101 -101
@@ -1,83 +1,83 @@
1
- {
2
- "id": "cdc",
3
- "title": "CDC Open Data (data.cdc.gov)",
4
- "agency": "Centers for Disease Control and Prevention",
5
- "depth": "standard",
6
- "domains": [
7
- "health",
8
- "mortality",
9
- "public health"
10
- ],
11
- "keywords": [
12
- "death",
13
- "deaths",
14
- "mortality",
15
- "cause of death",
16
- "overdose",
17
- "drug",
18
- "life expectancy",
19
- "covid",
20
- "births",
21
- "birth rate",
22
- "obesity",
23
- "disability",
24
- "places",
25
- "county health",
26
- "influenza",
27
- "pneumonia"
28
- ],
29
- "questions": [
30
- "leading causes of death by state",
31
- "drug overdose deaths trend",
32
- "life expectancy by state",
33
- "county health indicators such as obesity or diabetes",
34
- "weekly excess deaths"
35
- ],
36
- "homepage": "https://data.cdc.gov/",
37
- "terms_url": "https://www.cdc.gov/other/agencymaterials.html",
38
- "auth": {
39
- "env": null,
40
- "required": "none",
41
- "placement": "none",
42
- "signup_url": null,
43
- "echoes_key": false
44
- },
45
- "limits": {
46
- "rps": 2,
47
- "burst": 5,
48
- "max_rows": 200000
49
- },
50
- "routes": {
51
- "api": {
52
- "base": "https://data.cdc.gov/resource",
53
- "probe": "https://data.cdc.gov/resource/bi63-dtpu.json?$limit=1",
54
- "hosts": [
55
- "data.cdc.gov"
56
- ]
57
- },
58
- "manual": {
59
- "how": "Open the dataset page (https://data.cdc.gov/d/<id>), choose Export > CSV, and upload the file; or open the CSV links in INSTRUCTIONS.md."
60
- }
61
- },
62
- "cache": {
63
- "mode": "run_only",
64
- "ttl_hours": null,
65
- "why": "Queries are small and provisional datasets change weekly; data/ is reused within a run."
66
- },
67
- "redistribution": {
68
- "mode": "allowed",
69
- "why": "CDC data are U.S. government works in the public domain (17 U.S.C. 105); CDC asks for attribution and no implied endorsement."
70
- },
71
- "notices": [],
72
- "retention": null,
73
- "citation": "Centers for Disease Control and Prevention, {dataset}, data.cdc.gov (Socrata API), retrieved {retrieved_long}.",
74
- "audit_hooks": [],
75
- "clarify": [
76
- "Final or provisional counts? Provisional series (weekly deaths, VSRR overdose) are revised for months; say which and the data date.",
77
- "Counts or age-adjusted rates? Compare places with age-adjusted rates."
78
- ],
79
- "formats": [
80
- "json",
81
- "csv"
82
- ]
83
- }
1
+ {
2
+ "id": "cdc",
3
+ "title": "CDC Open Data (data.cdc.gov)",
4
+ "agency": "Centers for Disease Control and Prevention",
5
+ "depth": "standard",
6
+ "domains": [
7
+ "health",
8
+ "mortality",
9
+ "public health"
10
+ ],
11
+ "keywords": [
12
+ "death",
13
+ "deaths",
14
+ "mortality",
15
+ "cause of death",
16
+ "overdose",
17
+ "drug",
18
+ "life expectancy",
19
+ "covid",
20
+ "births",
21
+ "birth rate",
22
+ "obesity",
23
+ "disability",
24
+ "places",
25
+ "county health",
26
+ "influenza",
27
+ "pneumonia"
28
+ ],
29
+ "questions": [
30
+ "leading causes of death by state",
31
+ "drug overdose deaths trend",
32
+ "life expectancy by state",
33
+ "county health indicators such as obesity or diabetes",
34
+ "weekly excess deaths"
35
+ ],
36
+ "homepage": "https://data.cdc.gov/",
37
+ "terms_url": "https://www.cdc.gov/other/agencymaterials.html",
38
+ "auth": {
39
+ "env": null,
40
+ "required": "none",
41
+ "placement": "none",
42
+ "signup_url": null,
43
+ "echoes_key": false
44
+ },
45
+ "limits": {
46
+ "rps": 2,
47
+ "burst": 5,
48
+ "max_rows": 200000
49
+ },
50
+ "routes": {
51
+ "api": {
52
+ "base": "https://data.cdc.gov/resource",
53
+ "probe": "https://data.cdc.gov/resource/bi63-dtpu.json?$limit=1",
54
+ "hosts": [
55
+ "data.cdc.gov"
56
+ ]
57
+ },
58
+ "manual": {
59
+ "how": "Open the dataset page (https://data.cdc.gov/d/<id>), choose Export > CSV, and upload the file; or open the CSV links in INSTRUCTIONS.md."
60
+ }
61
+ },
62
+ "cache": {
63
+ "mode": "run_only",
64
+ "ttl_hours": null,
65
+ "why": "Queries are small and provisional datasets change weekly; data/ is reused within a run."
66
+ },
67
+ "redistribution": {
68
+ "mode": "allowed",
69
+ "why": "CDC data are U.S. government works in the public domain (17 U.S.C. 105); CDC asks for attribution and no implied endorsement."
70
+ },
71
+ "notices": [],
72
+ "retention": null,
73
+ "citation": "Centers for Disease Control and Prevention, {dataset}, data.cdc.gov (Socrata API), retrieved {retrieved_long}.",
74
+ "audit_hooks": [],
75
+ "clarify": [
76
+ "Final or provisional counts? Provisional series (weekly deaths, VSRR overdose) are revised for months; say which and the data date.",
77
+ "Counts or age-adjusted rates? Compare places with age-adjusted rates."
78
+ ],
79
+ "formats": [
80
+ "json",
81
+ "csv"
82
+ ]
83
+ }
@@ -1,99 +1,99 @@
1
- {
2
- "base_url": "https://api.census.gov/data",
3
- "endpoints": {
4
- "query": {
5
- "path": "/{dataset}",
6
- "method": "GET",
7
- "description": "Census Data API query: variables (get) for a geography (for/in, or state/county/place/zcta names). ACS estimates come with their margins of error.",
8
- "params": {
9
- "dataset": {"in": "path", "required": true, "catalog": true, "desc": "dataset path (2024/acs/acs5, 2024/acs/acs1/subject, 2020/dec/pl) or 'latest/acs/acs5', or a catalog alias (acs5, acs1, acs5_subject, dec_pl_2020, pep_charv)"},
10
- "get": {"required": true, "desc": "variables, comma-separated or a list (NAME,B19013_001E) or group(B19013); for ACS every ...E estimate gets its ...M margin of error added"},
11
- "for": {"desc": "geography: state:*, state:24, county:*, place:04000, tract:*, zip code tabulation area:20850, us:1"},
12
- "in": {"desc": "parent geography: state:24, state:24 county:031"},
13
- "ucgid": {"desc": "uniform Census geography id, e.g. 0400000US24 (instead of for/in)"},
14
- "state": {"desc": "convenience: state name, USPS code or FIPS (Maryland, MD, 24), or *"},
15
- "county": {"desc": "convenience: county name (Montgomery), 3-digit or 5-digit FIPS, or *; needs state"},
16
- "place": {"desc": "convenience: city, town or CDP name (Baltimore) or 5-digit place code; needs state"},
17
- "zcta": {"desc": "convenience: 5-digit ZIP Code Tabulation Area (ACS 5-year and decennial)"},
18
- "moe": {"desc": "true (default): add ...M for every ...E in ACS; false is refused for ACS (margins of error are never dropped)"}
19
- },
20
- "records": "$table",
21
- "paging": {"type": "none"},
22
- "max_rows": 500000,
23
- "missing": [""],
24
- "flatten": false
25
- },
26
- "group_variables": {
27
- "path": "/{dataset}/groups/{group}.json",
28
- "method": "GET",
29
- "description": "Every variable of one table (group): code, label, concept, type. Use before choosing variables.",
30
- "params": {
31
- "dataset": {"in": "path", "required": true, "catalog": true, "desc": "dataset path or alias"},
32
- "group": {"in": "path", "required": true, "desc": "table id, e.g. B19013, S1701, DP03, P1"}
33
- },
34
- "records": "$variables",
35
- "paging": {"type": "none"}
36
- },
37
- "groups": {
38
- "path": "/{dataset}/groups.json",
39
- "method": "GET",
40
- "description": "Every table (group) of a dataset with its title.",
41
- "params": {"dataset": {"in": "path", "required": true, "catalog": true, "desc": "dataset path or alias"}},
42
- "records": "groups",
43
- "paging": {"type": "none"}
44
- }
45
- },
46
- "catalog": {
47
- "acs5": {"id": "latest/acs/acs5", "kind": "dataset", "name": "ACS 5-year detailed tables (latest)", "description": "American Community Survey 5-year estimates, every geography down to block group; released each December (2024 = 2020-2024)", "endpoint": "query"},
48
- "acs1": {"id": "latest/acs/acs1", "kind": "dataset", "name": "ACS 1-year detailed tables (latest)", "description": "American Community Survey 1-year estimates, areas of 65,000+ people; released each September (none for 2020)", "endpoint": "query"},
49
- "acs5_subject": {"id": "latest/acs/acs5/subject", "kind": "dataset", "name": "ACS 5-year subject tables (S...)", "description": "ready-made percentages and medians, e.g. S1701 poverty, S1901 income", "endpoint": "query"},
50
- "acs1_subject": {"id": "latest/acs/acs1/subject", "kind": "dataset", "name": "ACS 1-year subject tables (S...)", "description": "subject tables, 1-year", "endpoint": "query"},
51
- "acs5_profile": {"id": "latest/acs/acs5/profile", "kind": "dataset", "name": "ACS 5-year data profiles (DP02-DP05)", "description": "social, economic, housing, demographic profiles; ...PE percent estimates", "endpoint": "query"},
52
- "acs1_profile": {"id": "latest/acs/acs1/profile", "kind": "dataset", "name": "ACS 1-year data profiles (DP02-DP05)", "description": "profiles, 1-year", "endpoint": "query"},
53
- "acs1_supplemental": {"id": "latest/acs/acsse", "kind": "dataset", "name": "ACS 1-year supplemental estimates (K...)", "description": "1-year estimates for areas of 20,000+", "endpoint": "query"},
54
- "dec_pl_2020": {"id": "2020/dec/pl", "kind": "dataset", "name": "2020 Census redistricting data (P.L. 94-171)", "description": "decennial census counts: population P1, race, Hispanic origin, voting age, housing occupancy; to block level; variables end in N", "endpoint": "query"},
55
- "dec_dhc_2020": {"id": "2020/dec/dhc", "kind": "dataset", "name": "2020 Census Demographic and Housing Characteristics", "description": "decennial census age, sex, households, tenure", "endpoint": "query"},
56
- "dec_dp_2020": {"id": "2020/dec/dp", "kind": "dataset", "name": "2020 Census Demographic Profile", "description": "decennial census profile tables DP1", "endpoint": "query"},
57
- "dec_sf1_2010": {"id": "2010/dec/sf1", "kind": "dataset", "name": "2010 Census Summary File 1", "description": "decennial census 2010 counts", "endpoint": "query"},
58
- "pep_charv": {"id": "latest/pep/charv", "kind": "dataset", "name": "Population estimates by characteristics (latest vintage on the API)", "description": "annual resident population estimates POP by YEAR, MONTH, AGE, SEX, HISP; vintage 2023 (July 2020-2023) is the latest on the API (October 2026); nation, state, county and metro areas, no places; vintages 2022 and 2024-2025 are not on the API", "endpoint": "query"},
59
- "pep_population_2019": {"id": "2019/pep/population", "kind": "dataset", "name": "Population estimates, vintage 2019", "description": "annual population estimates 2010-2019 (DATE_CODE); every geography down to places and county subdivisions; the last vintage on the API with place estimates", "endpoint": "query"},
60
- "pep_population_2021": {"id": "2021/pep/population", "kind": "dataset", "name": "Population estimates, vintage 2021", "description": "POP_2020, POP_2021 (July 1), POP_BASE2020, changes and ranks; nation, region, division and state only; newer totals are in pep_charv", "endpoint": "query"},
61
- "cbp": {"id": "2023/cbp", "kind": "dataset", "name": "County Business Patterns 2023", "description": "establishments, employment, payroll by NAICS and county", "endpoint": "query"},
62
- "ecnbasic_2022": {"id": "2022/ecnbasic", "kind": "dataset", "name": "Economic Census 2022, basic statistics", "description": "Economic Census establishments, sales, payroll by industry", "endpoint": "query"},
63
- "eits_retail": {"id": "timeseries/eits/marts", "kind": "dataset", "name": "Advance Monthly Retail Trade (MARTS)", "description": "monthly retail and food services sales, $ millions; economic indicator time series", "endpoint": "query"},
64
- "eits_housing_starts": {"id": "timeseries/eits/resconst", "kind": "dataset", "name": "New Residential Construction", "description": "monthly housing permits, starts and completions (thousands of units)", "endpoint": "query"},
65
- "eits_construction": {"id": "timeseries/eits/vip", "kind": "dataset", "name": "Construction Spending (value put in place)", "description": "monthly construction spending, total, private and public, $ millions", "endpoint": "query"},
66
- "eits_qtax": {"id": "timeseries/eits/qtax", "kind": "dataset", "name": "Quarterly Summary of State and Local Tax Revenue (QTAX)", "description": "quarterly state and local tax collections by tax type, $ millions, nation and states (1992 on)", "endpoint": "query"},
67
- "eits_pensions": {"id": "timeseries/eits/qpr", "kind": "dataset", "name": "Quarterly Survey of Public Pensions", "description": "quarterly assets, contributions and benefit payments of the largest state and local pension systems", "endpoint": "query"},
68
- "eits_homeownership": {"id": "timeseries/eits/hv", "kind": "dataset", "name": "Housing Vacancies and Homeownership (CPS/HVS)", "description": "quarterly homeownership rate (HOR, SAHOR), rental and homeowner vacancy rates (RVR, HVR) with 90% margins (E_HOR, E_RVR, E_HVR), housing inventory estimates in thousands; nation only on the API", "endpoint": "query"},
69
- "pulse": {"id": "timeseries/hhpulse", "kind": "dataset", "name": "Household Pulse Survey, Phase 4 (2024 cycles 01-09)", "description": "experimental survey of adults 18+: difficulty paying usual household expenses, food scarcity, energy bills, eviction risk, price worries, loneliness; one row per MEASURE_NAME, cycle and geography (nation, states, metros), RATE percent with RATE_MOE", "endpoint": "query"},
70
- "pulse_covid": {"id": "timeseries/hps", "kind": "dataset", "name": "Household Pulse Survey: COVID-19 Pandemic and Recovery (2020-2023, weeks 01-63)", "description": "experimental survey of adults 18+, wide: <MEASURE>_RATE with <MEASURE>_RT_MOE, _TOTAL, _UNIV per collection WEEK (EXPENSE, FOODSCARCE, JOBLOSS, ENERGYBILL, ...); nation, states, metros", "endpoint": "query"},
71
- "trade_imports_hs": {"id": "timeseries/intltrade/imports/hs", "kind": "dataset", "name": "Monthly U.S. imports by HS code", "description": "general imports and imports for consumption by commodity and country, dollars; calculated duty (CAL_DUT_MO)", "endpoint": "query"},
72
- "trade_exports_hs": {"id": "timeseries/intltrade/exports/hs", "kind": "dataset", "name": "Monthly U.S. exports by HS code", "description": "exports by commodity and country, dollars", "endpoint": "query"},
73
- "govs_finances": {"id": "timeseries/govslocalfin", "kind": "dataset", "name": "State and Local Government Finances (annual, 2017-2024)", "description": "revenue, expenditure, debt and assets of state and local governments, $ thousands, with coefficients of variation", "endpoint": "query"},
74
- "govs_state_finances": {"id": "timeseries/govsstatefin", "kind": "dataset", "name": "State Government Finances (annual, 1967-2024)", "description": "state governments only, by category and item code, $ thousands", "endpoint": "query"},
75
- "govs_state_tax": {"id": "timeseries/govsstatetax", "kind": "dataset", "name": "State Government Tax Collections (annual, 2016-2025)", "description": "state tax collections by tax item code, $ thousands", "endpoint": "query"},
76
- "govs_pensions": {"id": "timeseries/govspension", "kind": "dataset", "name": "Annual Survey of Public Pensions (2012-2025)", "description": "state and local public pension systems: membership, receipts, payments, assets", "endpoint": "query"},
77
- "acs1_pums": {"id": "latest/acs/acs1/pums", "kind": "dataset", "name": "ACS 1-year Public Use Microdata Sample (latest)", "description": "person records, 50 states and DC (about 3.4 million persons); weight PWGTP (WGTP for households, SPORDER 1); replicates: true adds PWGTP1-80; geography: state or PUMA; 2004 on", "endpoint": "query"},
78
- "acs5_pums": {"id": "latest/acs/acs5/pums", "kind": "dataset", "name": "ACS 5-year Public Use Microdata Sample (latest)", "description": "person records pooled over five years, for small groups and PUMAs; weight PWGTP; replicates: true adds PWGTP1-80; 2009 on", "endpoint": "query"},
79
- "acs1_pumspr": {"id": "latest/acs/acs1/pumspr", "kind": "dataset", "name": "Puerto Rico Community Survey 1-year PUMS (latest)", "description": "person records for Puerto Rico; weight PWGTP", "endpoint": "query"},
80
- "cps_asec": {"id": "latest/cps/asec/mar", "kind": "dataset", "name": "CPS Annual Social and Economic Supplement microdata (latest)", "description": "person records; income, poverty and insurance for the previous calendar year; weight MARSUPWT (households HSUP_WGT); no replicate weights on the API; 1992 on", "endpoint": "query"},
81
- "sipp": {"id": "latest/sipp", "kind": "dataset", "name": "Survey of Income and Program Participation (latest)", "description": "SIPP public-use microdata: one row per person-month of the reference year (the file year minus one); weight by WPFINWGT", "endpoint": "query"},
82
- "B01003_001E": {"id": "B01003_001E", "kind": "variable", "name": "Total population", "description": "ACS total population (table B01003); B01001_001E is the same total from the sex-by-age table"},
83
- "B01002_001E": {"id": "B01002_001E", "kind": "variable", "name": "Median age", "description": "median age, total population"},
84
- "B19013_001E": {"id": "B19013_001E", "kind": "variable", "name": "Median household income (inflation-adjusted dollars of the survey year)", "description": "median household income in the past 12 months"},
85
- "B19301_001E": {"id": "B19301_001E", "kind": "variable", "name": "Per capita income", "description": "per capita income in the past 12 months"},
86
- "B17001_002E": {"id": "B17001_002E", "kind": "variable", "name": "Population below poverty level", "description": "income in the past 12 months below poverty level; universe B17001_001E (population for whom poverty status is determined)"},
87
- "S1701_C03_001E": {"id": "S1701_C03_001E", "kind": "variable", "name": "Poverty rate (percent below poverty level)", "description": "subject table S1701, use dataset acs5_subject or acs1_subject"},
88
- "B25077_001E": {"id": "B25077_001E", "kind": "variable", "name": "Median home value (owner-occupied units)", "description": "median value, owner-occupied housing; top-coded at 2000001 ($2,000,000 or more)"},
89
- "B25064_001E": {"id": "B25064_001E", "kind": "variable", "name": "Median gross rent", "description": "median gross rent; top-coded as 2001, 3501 or 4001 ($2,000+, $3,500+, $4,000+ depending on year)"},
90
- "B25003_002E": {"id": "B25003_002E", "kind": "variable", "name": "Owner-occupied housing units", "description": "tenure; universe B25003_001E occupied units; renter B25003_003E"},
91
- "B15003_022E": {"id": "B15003_022E", "kind": "variable", "name": "Bachelor's degree (population 25+)", "description": "educational attainment; universe B15003_001E; master's _023E, professional _024E, doctorate _025E"},
92
- "B23025_005E": {"id": "B23025_005E", "kind": "variable", "name": "Unemployed (civilian labor force)", "description": "employment status; civilian labor force B23025_003E"},
93
- "B27001_001E": {"id": "B27001_001E", "kind": "variable", "name": "Health insurance coverage universe", "description": "health insurance coverage status by sex by age; S2701 subject table has uninsured rates"},
94
- "B03003_003E": {"id": "B03003_003E", "kind": "variable", "name": "Hispanic or Latino population", "description": "Hispanic or Latino origin"},
95
- "B02001_002E": {"id": "B02001_002E", "kind": "variable", "name": "White alone", "description": "race; Black or African American alone B02001_003E"},
96
- "P1_001N": {"id": "P1_001N", "kind": "variable", "name": "Total population (2020 Census count)", "description": "decennial 2020 P.L. 94-171 total population; dataset dec_pl_2020"},
97
- "POP": {"id": "POP", "kind": "variable", "name": "Population estimate (PEP)", "description": "population estimates: dataset pep_charv, with YEAR and MONTH predicates"}
98
- }
99
- }
1
+ {
2
+ "base_url": "https://api.census.gov/data",
3
+ "endpoints": {
4
+ "query": {
5
+ "path": "/{dataset}",
6
+ "method": "GET",
7
+ "description": "Census Data API query: variables (get) for a geography (for/in, or state/county/place/zcta names). ACS estimates come with their margins of error.",
8
+ "params": {
9
+ "dataset": {"in": "path", "required": true, "catalog": true, "desc": "dataset path (2024/acs/acs5, 2024/acs/acs1/subject, 2020/dec/pl) or 'latest/acs/acs5', or a catalog alias (acs5, acs1, acs5_subject, dec_pl_2020, pep_charv)"},
10
+ "get": {"required": true, "desc": "variables, comma-separated or a list (NAME,B19013_001E) or group(B19013); for ACS every ...E estimate gets its ...M margin of error added"},
11
+ "for": {"desc": "geography: state:*, state:24, county:*, place:04000, tract:*, zip code tabulation area:20850, us:1"},
12
+ "in": {"desc": "parent geography: state:24, state:24 county:031"},
13
+ "ucgid": {"desc": "uniform Census geography id, e.g. 0400000US24 (instead of for/in)"},
14
+ "state": {"desc": "convenience: state name, USPS code or FIPS (Maryland, MD, 24), or *"},
15
+ "county": {"desc": "convenience: county name (Montgomery), 3-digit or 5-digit FIPS, or *; needs state"},
16
+ "place": {"desc": "convenience: city, town or CDP name (Baltimore) or 5-digit place code; needs state"},
17
+ "zcta": {"desc": "convenience: 5-digit ZIP Code Tabulation Area (ACS 5-year and decennial)"},
18
+ "moe": {"desc": "true (default): add ...M for every ...E in ACS; false is refused for ACS (margins of error are never dropped)"}
19
+ },
20
+ "records": "$table",
21
+ "paging": {"type": "none"},
22
+ "max_rows": 500000,
23
+ "missing": [""],
24
+ "flatten": false
25
+ },
26
+ "group_variables": {
27
+ "path": "/{dataset}/groups/{group}.json",
28
+ "method": "GET",
29
+ "description": "Every variable of one table (group): code, label, concept, type. Use before choosing variables.",
30
+ "params": {
31
+ "dataset": {"in": "path", "required": true, "catalog": true, "desc": "dataset path or alias"},
32
+ "group": {"in": "path", "required": true, "desc": "table id, e.g. B19013, S1701, DP03, P1"}
33
+ },
34
+ "records": "$variables",
35
+ "paging": {"type": "none"}
36
+ },
37
+ "groups": {
38
+ "path": "/{dataset}/groups.json",
39
+ "method": "GET",
40
+ "description": "Every table (group) of a dataset with its title.",
41
+ "params": {"dataset": {"in": "path", "required": true, "catalog": true, "desc": "dataset path or alias"}},
42
+ "records": "groups",
43
+ "paging": {"type": "none"}
44
+ }
45
+ },
46
+ "catalog": {
47
+ "acs5": {"id": "latest/acs/acs5", "kind": "dataset", "name": "ACS 5-year detailed tables (latest)", "description": "American Community Survey 5-year estimates, every geography down to block group; released each December (2024 = 2020-2024)", "endpoint": "query"},
48
+ "acs1": {"id": "latest/acs/acs1", "kind": "dataset", "name": "ACS 1-year detailed tables (latest)", "description": "American Community Survey 1-year estimates, areas of 65,000+ people; released each September (none for 2020)", "endpoint": "query"},
49
+ "acs5_subject": {"id": "latest/acs/acs5/subject", "kind": "dataset", "name": "ACS 5-year subject tables (S...)", "description": "ready-made percentages and medians, e.g. S1701 poverty, S1901 income", "endpoint": "query"},
50
+ "acs1_subject": {"id": "latest/acs/acs1/subject", "kind": "dataset", "name": "ACS 1-year subject tables (S...)", "description": "subject tables, 1-year", "endpoint": "query"},
51
+ "acs5_profile": {"id": "latest/acs/acs5/profile", "kind": "dataset", "name": "ACS 5-year data profiles (DP02-DP05)", "description": "social, economic, housing, demographic profiles; ...PE percent estimates", "endpoint": "query"},
52
+ "acs1_profile": {"id": "latest/acs/acs1/profile", "kind": "dataset", "name": "ACS 1-year data profiles (DP02-DP05)", "description": "profiles, 1-year", "endpoint": "query"},
53
+ "acs1_supplemental": {"id": "latest/acs/acsse", "kind": "dataset", "name": "ACS 1-year supplemental estimates (K...)", "description": "1-year estimates for areas of 20,000+", "endpoint": "query"},
54
+ "dec_pl_2020": {"id": "2020/dec/pl", "kind": "dataset", "name": "2020 Census redistricting data (P.L. 94-171)", "description": "decennial census counts: population P1, race, Hispanic origin, voting age, housing occupancy; to block level; variables end in N", "endpoint": "query"},
55
+ "dec_dhc_2020": {"id": "2020/dec/dhc", "kind": "dataset", "name": "2020 Census Demographic and Housing Characteristics", "description": "decennial census age, sex, households, tenure", "endpoint": "query"},
56
+ "dec_dp_2020": {"id": "2020/dec/dp", "kind": "dataset", "name": "2020 Census Demographic Profile", "description": "decennial census profile tables DP1", "endpoint": "query"},
57
+ "dec_sf1_2010": {"id": "2010/dec/sf1", "kind": "dataset", "name": "2010 Census Summary File 1", "description": "decennial census 2010 counts", "endpoint": "query"},
58
+ "pep_charv": {"id": "latest/pep/charv", "kind": "dataset", "name": "Population estimates by characteristics (latest vintage on the API)", "description": "annual resident population estimates POP by YEAR, MONTH, AGE, SEX, HISP; vintage 2023 (July 2020-2023) is the latest on the API (October 2026); nation, state, county and metro areas, no places; vintages 2022 and 2024-2025 are not on the API", "endpoint": "query"},
59
+ "pep_population_2019": {"id": "2019/pep/population", "kind": "dataset", "name": "Population estimates, vintage 2019", "description": "annual population estimates 2010-2019 (DATE_CODE); every geography down to places and county subdivisions; the last vintage on the API with place estimates", "endpoint": "query"},
60
+ "pep_population_2021": {"id": "2021/pep/population", "kind": "dataset", "name": "Population estimates, vintage 2021", "description": "POP_2020, POP_2021 (July 1), POP_BASE2020, changes and ranks; nation, region, division and state only; newer totals are in pep_charv", "endpoint": "query"},
61
+ "cbp": {"id": "2023/cbp", "kind": "dataset", "name": "County Business Patterns 2023", "description": "establishments, employment, payroll by NAICS and county", "endpoint": "query"},
62
+ "ecnbasic_2022": {"id": "2022/ecnbasic", "kind": "dataset", "name": "Economic Census 2022, basic statistics", "description": "Economic Census establishments, sales, payroll by industry", "endpoint": "query"},
63
+ "eits_retail": {"id": "timeseries/eits/marts", "kind": "dataset", "name": "Advance Monthly Retail Trade (MARTS)", "description": "monthly retail and food services sales, $ millions; economic indicator time series", "endpoint": "query"},
64
+ "eits_housing_starts": {"id": "timeseries/eits/resconst", "kind": "dataset", "name": "New Residential Construction", "description": "monthly housing permits, starts and completions (thousands of units)", "endpoint": "query"},
65
+ "eits_construction": {"id": "timeseries/eits/vip", "kind": "dataset", "name": "Construction Spending (value put in place)", "description": "monthly construction spending, total, private and public, $ millions", "endpoint": "query"},
66
+ "eits_qtax": {"id": "timeseries/eits/qtax", "kind": "dataset", "name": "Quarterly Summary of State and Local Tax Revenue (QTAX)", "description": "quarterly state and local tax collections by tax type, $ millions, nation and states (1992 on)", "endpoint": "query"},
67
+ "eits_pensions": {"id": "timeseries/eits/qpr", "kind": "dataset", "name": "Quarterly Survey of Public Pensions", "description": "quarterly assets, contributions and benefit payments of the largest state and local pension systems", "endpoint": "query"},
68
+ "eits_homeownership": {"id": "timeseries/eits/hv", "kind": "dataset", "name": "Housing Vacancies and Homeownership (CPS/HVS)", "description": "quarterly homeownership rate (HOR, SAHOR), rental and homeowner vacancy rates (RVR, HVR) with 90% margins (E_HOR, E_RVR, E_HVR), housing inventory estimates in thousands; nation only on the API", "endpoint": "query"},
69
+ "pulse": {"id": "timeseries/hhpulse", "kind": "dataset", "name": "Household Pulse Survey, Phase 4 (2024 cycles 01-09)", "description": "experimental survey of adults 18+: difficulty paying usual household expenses, food scarcity, energy bills, eviction risk, price worries, loneliness; one row per MEASURE_NAME, cycle and geography (nation, states, metros), RATE percent with RATE_MOE", "endpoint": "query"},
70
+ "pulse_covid": {"id": "timeseries/hps", "kind": "dataset", "name": "Household Pulse Survey: COVID-19 Pandemic and Recovery (2020-2023, weeks 01-63)", "description": "experimental survey of adults 18+, wide: <MEASURE>_RATE with <MEASURE>_RT_MOE, _TOTAL, _UNIV per collection WEEK (EXPENSE, FOODSCARCE, JOBLOSS, ENERGYBILL, ...); nation, states, metros", "endpoint": "query"},
71
+ "trade_imports_hs": {"id": "timeseries/intltrade/imports/hs", "kind": "dataset", "name": "Monthly U.S. imports by HS code", "description": "general imports and imports for consumption by commodity and country, dollars; calculated duty (CAL_DUT_MO)", "endpoint": "query"},
72
+ "trade_exports_hs": {"id": "timeseries/intltrade/exports/hs", "kind": "dataset", "name": "Monthly U.S. exports by HS code", "description": "exports by commodity and country, dollars", "endpoint": "query"},
73
+ "govs_finances": {"id": "timeseries/govslocalfin", "kind": "dataset", "name": "State and Local Government Finances (annual, 2017-2024)", "description": "revenue, expenditure, debt and assets of state and local governments, $ thousands, with coefficients of variation", "endpoint": "query"},
74
+ "govs_state_finances": {"id": "timeseries/govsstatefin", "kind": "dataset", "name": "State Government Finances (annual, 1967-2024)", "description": "state governments only, by category and item code, $ thousands", "endpoint": "query"},
75
+ "govs_state_tax": {"id": "timeseries/govsstatetax", "kind": "dataset", "name": "State Government Tax Collections (annual, 2016-2025)", "description": "state tax collections by tax item code, $ thousands", "endpoint": "query"},
76
+ "govs_pensions": {"id": "timeseries/govspension", "kind": "dataset", "name": "Annual Survey of Public Pensions (2012-2025)", "description": "state and local public pension systems: membership, receipts, payments, assets", "endpoint": "query"},
77
+ "acs1_pums": {"id": "latest/acs/acs1/pums", "kind": "dataset", "name": "ACS 1-year Public Use Microdata Sample (latest)", "description": "person records, 50 states and DC (about 3.4 million persons); weight PWGTP (WGTP for households, SPORDER 1); replicates: true adds PWGTP1-80; geography: state or PUMA; 2004 on", "endpoint": "query"},
78
+ "acs5_pums": {"id": "latest/acs/acs5/pums", "kind": "dataset", "name": "ACS 5-year Public Use Microdata Sample (latest)", "description": "person records pooled over five years, for small groups and PUMAs; weight PWGTP; replicates: true adds PWGTP1-80; 2009 on", "endpoint": "query"},
79
+ "acs1_pumspr": {"id": "latest/acs/acs1/pumspr", "kind": "dataset", "name": "Puerto Rico Community Survey 1-year PUMS (latest)", "description": "person records for Puerto Rico; weight PWGTP", "endpoint": "query"},
80
+ "cps_asec": {"id": "latest/cps/asec/mar", "kind": "dataset", "name": "CPS Annual Social and Economic Supplement microdata (latest)", "description": "person records; income, poverty and insurance for the previous calendar year; weight MARSUPWT (households HSUP_WGT); no replicate weights on the API; 1992 on", "endpoint": "query"},
81
+ "sipp": {"id": "latest/sipp", "kind": "dataset", "name": "Survey of Income and Program Participation (latest)", "description": "SIPP public-use microdata: one row per person-month of the reference year (the file year minus one); weight by WPFINWGT", "endpoint": "query"},
82
+ "B01003_001E": {"id": "B01003_001E", "kind": "variable", "name": "Total population", "description": "ACS total population (table B01003); B01001_001E is the same total from the sex-by-age table"},
83
+ "B01002_001E": {"id": "B01002_001E", "kind": "variable", "name": "Median age", "description": "median age, total population"},
84
+ "B19013_001E": {"id": "B19013_001E", "kind": "variable", "name": "Median household income (inflation-adjusted dollars of the survey year)", "description": "median household income in the past 12 months"},
85
+ "B19301_001E": {"id": "B19301_001E", "kind": "variable", "name": "Per capita income", "description": "per capita income in the past 12 months"},
86
+ "B17001_002E": {"id": "B17001_002E", "kind": "variable", "name": "Population below poverty level", "description": "income in the past 12 months below poverty level; universe B17001_001E (population for whom poverty status is determined)"},
87
+ "S1701_C03_001E": {"id": "S1701_C03_001E", "kind": "variable", "name": "Poverty rate (percent below poverty level)", "description": "subject table S1701, use dataset acs5_subject or acs1_subject"},
88
+ "B25077_001E": {"id": "B25077_001E", "kind": "variable", "name": "Median home value (owner-occupied units)", "description": "median value, owner-occupied housing; top-coded at 2000001 ($2,000,000 or more)"},
89
+ "B25064_001E": {"id": "B25064_001E", "kind": "variable", "name": "Median gross rent", "description": "median gross rent; top-coded as 2001, 3501 or 4001 ($2,000+, $3,500+, $4,000+ depending on year)"},
90
+ "B25003_002E": {"id": "B25003_002E", "kind": "variable", "name": "Owner-occupied housing units", "description": "tenure; universe B25003_001E occupied units; renter B25003_003E"},
91
+ "B15003_022E": {"id": "B15003_022E", "kind": "variable", "name": "Bachelor's degree (population 25+)", "description": "educational attainment; universe B15003_001E; master's _023E, professional _024E, doctorate _025E"},
92
+ "B23025_005E": {"id": "B23025_005E", "kind": "variable", "name": "Unemployed (civilian labor force)", "description": "employment status; civilian labor force B23025_003E"},
93
+ "B27001_001E": {"id": "B27001_001E", "kind": "variable", "name": "Health insurance coverage universe", "description": "health insurance coverage status by sex by age; S2701 subject table has uninsured rates"},
94
+ "B03003_003E": {"id": "B03003_003E", "kind": "variable", "name": "Hispanic or Latino population", "description": "Hispanic or Latino origin"},
95
+ "B02001_002E": {"id": "B02001_002E", "kind": "variable", "name": "White alone", "description": "race; Black or African American alone B02001_003E"},
96
+ "P1_001N": {"id": "P1_001N", "kind": "variable", "name": "Total population (2020 Census count)", "description": "decennial 2020 P.L. 94-171 total population; dataset dec_pl_2020"},
97
+ "POP": {"id": "POP", "kind": "variable", "name": "Population estimate (PEP)", "description": "population estimates: dataset pep_charv, with YEAR and MONTH predicates"}
98
+ }
99
+ }