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,84 +1,84 @@
1
- {
2
- "id": "clinical-trials",
3
- "title": "ClinicalTrials.gov (API v2)",
4
- "agency": "National Library of Medicine, National Institutes of Health",
5
- "depth": "standard",
6
- "domains": [
7
- "health",
8
- "clinical research"
9
- ],
10
- "keywords": [
11
- "clinical trial",
12
- "clinical trials",
13
- "trial",
14
- "trials",
15
- "clinicaltrials.gov",
16
- "nct",
17
- "recruiting",
18
- "phase 3",
19
- "phase 2",
20
- "study",
21
- "studies",
22
- "sponsor",
23
- "enrollment",
24
- "intervention",
25
- "trial results",
26
- "observational study"
27
- ],
28
- "questions": [
29
- "recruiting trials for a condition",
30
- "phase 3 trials of a drug",
31
- "trials sponsored by a company",
32
- "how many trials by phase or status",
33
- "trials near a location",
34
- "completed trials with results"
35
- ],
36
- "homepage": "https://clinicaltrials.gov/",
37
- "terms_url": "https://clinicaltrials.gov/about-site/terms-conditions",
38
- "auth": {
39
- "env": null,
40
- "required": "none",
41
- "placement": "none",
42
- "signup_url": null,
43
- "echoes_key": false
44
- },
45
- "limits": {
46
- "rps": 1,
47
- "burst": 3,
48
- "max_rows": 100000
49
- },
50
- "routes": {
51
- "api": {
52
- "base": "https://clinicaltrials.gov/api/v2",
53
- "probe": "https://clinicaltrials.gov/api/v2/version",
54
- "hosts": [
55
- "clinicaltrials.gov"
56
- ]
57
- },
58
- "manual": {
59
- "how": "Run the same search on https://clinicaltrials.gov/ (Advanced Search: condition, intervention, status, phase), click Download, choose CSV (or JSON) with all studies and the needed columns, and upload the file. INSTRUCTIONS.md also lists the API link for the first 1,000 studies."
60
- }
61
- },
62
- "cache": {
63
- "mode": "run_only",
64
- "ttl_hours": null,
65
- "why": "The registry is refreshed often (the /version dataTimestamp was the same morning when checked); data/ is reused within a run."
66
- },
67
- "redistribution": {
68
- "mode": "allowed",
69
- "why": "ClinicalTrials.gov is a U.S. government service of the National Library of Medicine and its registry data are offered for public reuse; records are submitted by sponsors and some linked documents may carry others' copyright (terms: https://clinicaltrials.gov/about-site/terms-conditions; the page is script-rendered and was not re-read for this pack). Attribute ClinicalTrials.gov."
70
- },
71
- "notices": [],
72
- "retention": null,
73
- "citation": "ClinicalTrials.gov, National Library of Medicine, {dataset}, clinicaltrials.gov API v2, retrieved {retrieved_long}.",
74
- "audit_hooks": [],
75
- "clarify": [
76
- "Which statuses count: currently recruiting only, or all trials ever registered (including completed, terminated, withdrawn)?",
77
- "Interventional trials only, or observational studies too?",
78
- "Condition match: the condition field (query.cond, includes synonyms) or anywhere in the record (query.term)?"
79
- ],
80
- "formats": [
81
- "json",
82
- "csv"
83
- ]
84
- }
1
+ {
2
+ "id": "clinical-trials",
3
+ "title": "ClinicalTrials.gov (API v2)",
4
+ "agency": "National Library of Medicine, National Institutes of Health",
5
+ "depth": "standard",
6
+ "domains": [
7
+ "health",
8
+ "clinical research"
9
+ ],
10
+ "keywords": [
11
+ "clinical trial",
12
+ "clinical trials",
13
+ "trial",
14
+ "trials",
15
+ "clinicaltrials.gov",
16
+ "nct",
17
+ "recruiting",
18
+ "phase 3",
19
+ "phase 2",
20
+ "study",
21
+ "studies",
22
+ "sponsor",
23
+ "enrollment",
24
+ "intervention",
25
+ "trial results",
26
+ "observational study"
27
+ ],
28
+ "questions": [
29
+ "recruiting trials for a condition",
30
+ "phase 3 trials of a drug",
31
+ "trials sponsored by a company",
32
+ "how many trials by phase or status",
33
+ "trials near a location",
34
+ "completed trials with results"
35
+ ],
36
+ "homepage": "https://clinicaltrials.gov/",
37
+ "terms_url": "https://clinicaltrials.gov/about-site/terms-conditions",
38
+ "auth": {
39
+ "env": null,
40
+ "required": "none",
41
+ "placement": "none",
42
+ "signup_url": null,
43
+ "echoes_key": false
44
+ },
45
+ "limits": {
46
+ "rps": 1,
47
+ "burst": 3,
48
+ "max_rows": 100000
49
+ },
50
+ "routes": {
51
+ "api": {
52
+ "base": "https://clinicaltrials.gov/api/v2",
53
+ "probe": "https://clinicaltrials.gov/api/v2/version",
54
+ "hosts": [
55
+ "clinicaltrials.gov"
56
+ ]
57
+ },
58
+ "manual": {
59
+ "how": "Run the same search on https://clinicaltrials.gov/ (Advanced Search: condition, intervention, status, phase), click Download, choose CSV (or JSON) with all studies and the needed columns, and upload the file. INSTRUCTIONS.md also lists the API link for the first 1,000 studies."
60
+ }
61
+ },
62
+ "cache": {
63
+ "mode": "run_only",
64
+ "ttl_hours": null,
65
+ "why": "The registry is refreshed often (the /version dataTimestamp was the same morning when checked); data/ is reused within a run."
66
+ },
67
+ "redistribution": {
68
+ "mode": "allowed",
69
+ "why": "ClinicalTrials.gov is a U.S. government service of the National Library of Medicine and its registry data are offered for public reuse; records are submitted by sponsors and some linked documents may carry others' copyright (terms: https://clinicaltrials.gov/about-site/terms-conditions; the page is script-rendered and was not re-read for this pack). Attribute ClinicalTrials.gov."
70
+ },
71
+ "notices": [],
72
+ "retention": null,
73
+ "citation": "ClinicalTrials.gov, National Library of Medicine, {dataset}, clinicaltrials.gov API v2, retrieved {retrieved_long}.",
74
+ "audit_hooks": [],
75
+ "clarify": [
76
+ "Which statuses count: currently recruiting only, or all trials ever registered (including completed, terminated, withdrawn)?",
77
+ "Interventional trials only, or observational studies too?",
78
+ "Condition match: the condition field (query.cond, includes synonyms) or anywhere in the record (query.term)?"
79
+ ],
80
+ "formats": [
81
+ "json",
82
+ "csv"
83
+ ]
84
+ }
@@ -1,69 +1,69 @@
1
- {
2
- "base_url": "https://data.cms.gov",
3
- "endpoints": {
4
- "provider": {
5
- "path": "/provider-data/api/1/datastore/query/{dataset}/{index}",
6
- "method": "GET",
7
- "description": "Provider Data Catalog (Care Compare) datasets: hospitals, nursing homes, home health, hospice, dialysis. DKAN datastore query by dataset id.",
8
- "params": {
9
- "dataset": {"in": "path", "required": true, "catalog": true, "desc": "catalog alias (hospital_info) or Provider Data dataset id (xubh-q36u)"},
10
- "index": {"in": "path", "desc": "distribution index inside the dataset; 0 = the dataset's CSV (every Provider Data dataset has one, verified 2026-10)"},
11
- "where": {"desc": "equality filters {column: value}; a list value means IN. Column names are snake_case (state, citytown, facility_id)"},
12
- "conditions": {"desc": "list of {property, value, operator}; operators = <> < <= > >= LIKE IN 'NOT IN' BETWEEN; LIKE uses % and is case-insensitive"},
13
- "sort": {"desc": "column or -column (descending), or a list of them"},
14
- "columns": {"desc": "list of columns to return (default all)"}
15
- },
16
- "defaults": {"index": "0", "schema": "false"},
17
- "records": "results",
18
- "total": "count",
19
- "paging": {"type": "offset", "limit_param": "limit", "offset_param": "offset", "size": 500},
20
- "max_rows": 100000,
21
- "missing": [""],
22
- "flatten": true
23
- },
24
- "medicare": {
25
- "path": "/data-api/v1/dataset/{dataset}/data",
26
- "method": "GET",
27
- "description": "data.cms.gov data-api datasets (Medicare enrollment, geographic variation, spending by drug, inpatient and physician utilization) by dataset UUID.",
28
- "params": {
29
- "dataset": {"in": "path", "required": true, "catalog": true, "desc": "catalog alias (geo_variation) or data.cms.gov dataset UUID"},
30
- "where": {"desc": "equality filters {COLUMN: value}; column names are as published (BENE_GEO_LVL). An unknown column is ignored by the API, so the adapter checks every filter column exists"},
31
- "keyword": {"desc": "full-text keyword over all columns"},
32
- "columns": {"desc": "list of columns to return (sent as column=A,B)"},
33
- "sort": {"desc": "column or -column (descending)"}
34
- },
35
- "defaults": {},
36
- "records": "",
37
- "paging": {"type": "offset", "limit_param": "size", "offset_param": "offset", "size": 5000},
38
- "max_rows": 300000,
39
- "missing": [""],
40
- "flatten": true
41
- }
42
- },
43
- "catalog": {
44
- "hospital_info": {"id": "xubh-q36u", "name": "Hospital General Information", "description": "All Medicare-registered hospitals: address, type, ownership, emergency services, overall star rating", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/xubh-q36u"},
45
- "hospital_mortality": {"id": "ynj2-r877", "name": "Complications and Deaths - Hospital", "description": "Hospital 30-day mortality, hip/knee complications, patient safety indicators", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/ynj2-r877"},
46
- "hospital_readmissions": {"id": "9n3s-kdb3", "name": "Hospital Readmissions Reduction Program", "description": "Excess readmission ratios by hospital and condition", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/9n3s-kdb3"},
47
- "hospital_infections": {"id": "77hc-ibv8", "name": "Healthcare Associated Infections - Hospital", "description": "CLABSI, CAUTI, SSI, MRSA, C. difficile standardized infection ratios by hospital", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/77hc-ibv8"},
48
- "hospital_timely_care": {"id": "yv7e-xc69", "name": "Timely and Effective Care - Hospital", "description": "Emergency department times, sepsis, stroke, immunization and preventive care measures", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/yv7e-xc69"},
49
- "hospital_spending": {"id": "rrqw-56er", "name": "Medicare Spending Per Beneficiary - Hospital", "description": "Medicare spending per episode relative to the national median, by hospital", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/rrqw-56er"},
50
- "hospital_patient_survey": {"id": "dgck-syfz", "name": "Patient survey (HCAHPS) - Hospital", "description": "HCAHPS patient experience measures and star ratings by hospital", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/dgck-syfz"},
51
- "nursing_home_info": {"id": "4pq5-n9py", "name": "Nursing homes: Provider Information", "description": "Every Medicare/Medicaid nursing home: beds, ownership, five-star ratings, staffing, fines", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/4pq5-n9py"},
52
- "nursing_home_deficiencies": {"id": "r5ix-sfxw", "name": "Nursing homes: Health Deficiencies", "description": "Health inspection citations of the last three cycles: tag, scope and severity, correction date", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/r5ix-sfxw"},
53
- "nursing_home_quality": {"id": "djen-97ju", "name": "Nursing homes: MDS Quality Measures", "description": "Minimum Data Set quality measures: falls, pressure ulcers, antipsychotic use", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/djen-97ju"},
54
- "home_health_info": {"id": "6jpm-sxkc", "name": "Home Health Care Agencies", "description": "Medicare-certified home health agencies: services offered, quality star rating", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/6jpm-sxkc"},
55
- "hospice_info": {"id": "yc9t-dgbk", "name": "Hospice - General Information", "description": "Medicare-certified hospices: address, ownership, certification date", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/yc9t-dgbk"},
56
- "dialysis_info": {"id": "23ew-n7w9", "name": "Dialysis Facility - Listing by Facility", "description": "Dialysis facilities: stations, ownership, star rating, quality measures", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/23ew-n7w9"},
57
- "monthly_enrollment": {"id": "d7fabe1e-d19b-4333-9eff-e80e0643f2fd", "name": "Medicare Monthly Enrollment", "description": "Medicare beneficiaries by month (and year totals, MONTH='Year'): Original Medicare vs Medicare Advantage, Part D; national, state, county; 2013-present", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-beneficiary-enrollment/medicare-and-medicaid-reports/medicare-monthly-enrollment"},
58
- "geo_variation": {"id": "6219697b-8f6c-4164-bed4-cd9317c58ebc", "name": "Medicare Geographic Variation - by National, State & County", "description": "Fee-for-service spending per capita (actual and standardized), utilization and demographics by year, state and county, 2014-2024", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-geographic-comparisons/medicare-geographic-variation-by-national-state-county"},
59
- "ma_geo_variation": {"id": "8e989bc0-2260-49a7-9c6d-8e9e10af7cea", "name": "Medicare Advantage Geographic Variation - National & State", "description": "Medicare Advantage utilization by national and state level (encounter-based)", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-geographic-comparisons/medicare-advantage-geographic-variation-national-state"},
60
- "partd_spending_by_drug": {"id": "7e0b4365-fd63-4a29-8f5e-e0ac9f66a81b", "name": "Medicare Part D Spending by Drug", "description": "Part D spending, claims, beneficiaries and unit cost by brand and generic name; wide format with one column set per year (Tot_Spndng_2020 ... _2024)", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-spending-by-drug/medicare-part-d-spending-by-drug"},
61
- "partb_spending_by_drug": {"id": "76a714ad-3a2c-43ac-b76d-9dadf8f7d890", "name": "Medicare Part B Spending by Drug", "description": "Part B drug spending, claims and beneficiaries by HCPCS code; wide format by year", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-spending-by-drug/medicare-part-b-spending-by-drug"},
62
- "partd_opioid_geo": {"id": "94d00f36-73ce-4520-9b3f-83cd3cded25c", "name": "Medicare Part D Opioid Prescribing Rates - by Geography", "description": "Opioid claims and prescribing rates by national, state and county level and year", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-opioid-prescribing-rates/medicare-part-d-opioid-prescribing-rates-by-geography"},
63
- "inpatient_geo_2024": {"id": "2941ab09-8cee-49d8-9703-f3c5b854e388", "name": "Medicare Inpatient Hospitals - by Geography and Service (2024)", "description": "Fee-for-service discharges and average charges/payments by DRG, national and state; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-inpatient-hospitals/medicare-inpatient-hospitals-by-geography-and-service"},
64
- "inpatient_provider_2024": {"id": "690ddc6c-2767-4618-b277-420ffb2bf27c", "name": "Medicare Inpatient Hospitals - by Provider and Service (2024)", "description": "Discharges and average charges/payments by hospital (CCN) and DRG; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-inpatient-hospitals/medicare-inpatient-hospitals-by-provider-and-service"},
65
- "physician_geo_2024": {"id": "6fea9d79-0129-4e4c-b1b8-23cd86a4f435", "name": "Medicare Physician & Other Practitioners - by Geography and Service (2024)", "description": "Services, beneficiaries and average payments by HCPCS code, national and state; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-physician-other-practitioners/medicare-physician-other-practitioners-by-geography-and-service"},
66
- "partd_prescribers_geo_2024": {"id": "c8ea3f8e-3a09-4fea-86f2-8902fb4b0920", "name": "Medicare Part D Prescribers - by Geography and Drug (2024)", "description": "Part D claims, costs and beneficiaries by drug, national and state; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-part-d-prescribers/medicare-part-d-prescribers-by-geography-and-drug"},
67
- "market_saturation_county": {"id": "8900b9c5-50b7-43de-9bdd-0d7113a8355e", "name": "Market Saturation & Utilization State-County", "description": "Providers, users and payments per type of service by state and county", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/program-integrity-market-saturation-by-type-of-service/market-saturation-utilization-state-county"}
68
- }
69
- }
1
+ {
2
+ "base_url": "https://data.cms.gov",
3
+ "endpoints": {
4
+ "provider": {
5
+ "path": "/provider-data/api/1/datastore/query/{dataset}/{index}",
6
+ "method": "GET",
7
+ "description": "Provider Data Catalog (Care Compare) datasets: hospitals, nursing homes, home health, hospice, dialysis. DKAN datastore query by dataset id.",
8
+ "params": {
9
+ "dataset": {"in": "path", "required": true, "catalog": true, "desc": "catalog alias (hospital_info) or Provider Data dataset id (xubh-q36u)"},
10
+ "index": {"in": "path", "desc": "distribution index inside the dataset; 0 = the dataset's CSV (every Provider Data dataset has one, verified 2026-10)"},
11
+ "where": {"desc": "equality filters {column: value}; a list value means IN. Column names are snake_case (state, citytown, facility_id)"},
12
+ "conditions": {"desc": "list of {property, value, operator}; operators = <> < <= > >= LIKE IN 'NOT IN' BETWEEN; LIKE uses % and is case-insensitive"},
13
+ "sort": {"desc": "column or -column (descending), or a list of them"},
14
+ "columns": {"desc": "list of columns to return (default all)"}
15
+ },
16
+ "defaults": {"index": "0", "schema": "false"},
17
+ "records": "results",
18
+ "total": "count",
19
+ "paging": {"type": "offset", "limit_param": "limit", "offset_param": "offset", "size": 500},
20
+ "max_rows": 100000,
21
+ "missing": [""],
22
+ "flatten": true
23
+ },
24
+ "medicare": {
25
+ "path": "/data-api/v1/dataset/{dataset}/data",
26
+ "method": "GET",
27
+ "description": "data.cms.gov data-api datasets (Medicare enrollment, geographic variation, spending by drug, inpatient and physician utilization) by dataset UUID.",
28
+ "params": {
29
+ "dataset": {"in": "path", "required": true, "catalog": true, "desc": "catalog alias (geo_variation) or data.cms.gov dataset UUID"},
30
+ "where": {"desc": "equality filters {COLUMN: value}; column names are as published (BENE_GEO_LVL). An unknown column is ignored by the API, so the adapter checks every filter column exists"},
31
+ "keyword": {"desc": "full-text keyword over all columns"},
32
+ "columns": {"desc": "list of columns to return (sent as column=A,B)"},
33
+ "sort": {"desc": "column or -column (descending)"}
34
+ },
35
+ "defaults": {},
36
+ "records": "",
37
+ "paging": {"type": "offset", "limit_param": "size", "offset_param": "offset", "size": 5000},
38
+ "max_rows": 300000,
39
+ "missing": [""],
40
+ "flatten": true
41
+ }
42
+ },
43
+ "catalog": {
44
+ "hospital_info": {"id": "xubh-q36u", "name": "Hospital General Information", "description": "All Medicare-registered hospitals: address, type, ownership, emergency services, overall star rating", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/xubh-q36u"},
45
+ "hospital_mortality": {"id": "ynj2-r877", "name": "Complications and Deaths - Hospital", "description": "Hospital 30-day mortality, hip/knee complications, patient safety indicators", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/ynj2-r877"},
46
+ "hospital_readmissions": {"id": "9n3s-kdb3", "name": "Hospital Readmissions Reduction Program", "description": "Excess readmission ratios by hospital and condition", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/9n3s-kdb3"},
47
+ "hospital_infections": {"id": "77hc-ibv8", "name": "Healthcare Associated Infections - Hospital", "description": "CLABSI, CAUTI, SSI, MRSA, C. difficile standardized infection ratios by hospital", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/77hc-ibv8"},
48
+ "hospital_timely_care": {"id": "yv7e-xc69", "name": "Timely and Effective Care - Hospital", "description": "Emergency department times, sepsis, stroke, immunization and preventive care measures", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/yv7e-xc69"},
49
+ "hospital_spending": {"id": "rrqw-56er", "name": "Medicare Spending Per Beneficiary - Hospital", "description": "Medicare spending per episode relative to the national median, by hospital", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/rrqw-56er"},
50
+ "hospital_patient_survey": {"id": "dgck-syfz", "name": "Patient survey (HCAHPS) - Hospital", "description": "HCAHPS patient experience measures and star ratings by hospital", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/dgck-syfz"},
51
+ "nursing_home_info": {"id": "4pq5-n9py", "name": "Nursing homes: Provider Information", "description": "Every Medicare/Medicaid nursing home: beds, ownership, five-star ratings, staffing, fines", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/4pq5-n9py"},
52
+ "nursing_home_deficiencies": {"id": "r5ix-sfxw", "name": "Nursing homes: Health Deficiencies", "description": "Health inspection citations of the last three cycles: tag, scope and severity, correction date", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/r5ix-sfxw"},
53
+ "nursing_home_quality": {"id": "djen-97ju", "name": "Nursing homes: MDS Quality Measures", "description": "Minimum Data Set quality measures: falls, pressure ulcers, antipsychotic use", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/djen-97ju"},
54
+ "home_health_info": {"id": "6jpm-sxkc", "name": "Home Health Care Agencies", "description": "Medicare-certified home health agencies: services offered, quality star rating", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/6jpm-sxkc"},
55
+ "hospice_info": {"id": "yc9t-dgbk", "name": "Hospice - General Information", "description": "Medicare-certified hospices: address, ownership, certification date", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/yc9t-dgbk"},
56
+ "dialysis_info": {"id": "23ew-n7w9", "name": "Dialysis Facility - Listing by Facility", "description": "Dialysis facilities: stations, ownership, star rating, quality measures", "endpoint": "provider", "page": "https://data.cms.gov/provider-data/dataset/23ew-n7w9"},
57
+ "monthly_enrollment": {"id": "d7fabe1e-d19b-4333-9eff-e80e0643f2fd", "name": "Medicare Monthly Enrollment", "description": "Medicare beneficiaries by month (and year totals, MONTH='Year'): Original Medicare vs Medicare Advantage, Part D; national, state, county; 2013-present", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-beneficiary-enrollment/medicare-and-medicaid-reports/medicare-monthly-enrollment"},
58
+ "geo_variation": {"id": "6219697b-8f6c-4164-bed4-cd9317c58ebc", "name": "Medicare Geographic Variation - by National, State & County", "description": "Fee-for-service spending per capita (actual and standardized), utilization and demographics by year, state and county, 2014-2024", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-geographic-comparisons/medicare-geographic-variation-by-national-state-county"},
59
+ "ma_geo_variation": {"id": "8e989bc0-2260-49a7-9c6d-8e9e10af7cea", "name": "Medicare Advantage Geographic Variation - National & State", "description": "Medicare Advantage utilization by national and state level (encounter-based)", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-geographic-comparisons/medicare-advantage-geographic-variation-national-state"},
60
+ "partd_spending_by_drug": {"id": "7e0b4365-fd63-4a29-8f5e-e0ac9f66a81b", "name": "Medicare Part D Spending by Drug", "description": "Part D spending, claims, beneficiaries and unit cost by brand and generic name; wide format with one column set per year (Tot_Spndng_2020 ... _2024)", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-spending-by-drug/medicare-part-d-spending-by-drug"},
61
+ "partb_spending_by_drug": {"id": "76a714ad-3a2c-43ac-b76d-9dadf8f7d890", "name": "Medicare Part B Spending by Drug", "description": "Part B drug spending, claims and beneficiaries by HCPCS code; wide format by year", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-spending-by-drug/medicare-part-b-spending-by-drug"},
62
+ "partd_opioid_geo": {"id": "94d00f36-73ce-4520-9b3f-83cd3cded25c", "name": "Medicare Part D Opioid Prescribing Rates - by Geography", "description": "Opioid claims and prescribing rates by national, state and county level and year", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-opioid-prescribing-rates/medicare-part-d-opioid-prescribing-rates-by-geography"},
63
+ "inpatient_geo_2024": {"id": "2941ab09-8cee-49d8-9703-f3c5b854e388", "name": "Medicare Inpatient Hospitals - by Geography and Service (2024)", "description": "Fee-for-service discharges and average charges/payments by DRG, national and state; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-inpatient-hospitals/medicare-inpatient-hospitals-by-geography-and-service"},
64
+ "inpatient_provider_2024": {"id": "690ddc6c-2767-4618-b277-420ffb2bf27c", "name": "Medicare Inpatient Hospitals - by Provider and Service (2024)", "description": "Discharges and average charges/payments by hospital (CCN) and DRG; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-inpatient-hospitals/medicare-inpatient-hospitals-by-provider-and-service"},
65
+ "physician_geo_2024": {"id": "6fea9d79-0129-4e4c-b1b8-23cd86a4f435", "name": "Medicare Physician & Other Practitioners - by Geography and Service (2024)", "description": "Services, beneficiaries and average payments by HCPCS code, national and state; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-physician-other-practitioners/medicare-physician-other-practitioners-by-geography-and-service"},
66
+ "partd_prescribers_geo_2024": {"id": "c8ea3f8e-3a09-4fea-86f2-8902fb4b0920", "name": "Medicare Part D Prescribers - by Geography and Drug (2024)", "description": "Part D claims, costs and beneficiaries by drug, national and state; one year per dataset", "endpoint": "medicare", "page": "https://data.cms.gov/provider-summary-by-type-of-service/medicare-part-d-prescribers/medicare-part-d-prescribers-by-geography-and-drug"},
67
+ "market_saturation_county": {"id": "8900b9c5-50b7-43de-9bdd-0d7113a8355e", "name": "Market Saturation & Utilization State-County", "description": "Providers, users and payments per type of service by state and county", "endpoint": "medicare", "page": "https://data.cms.gov/summary-statistics-on-use-and-payments/program-integrity-market-saturation-by-type-of-service/market-saturation-utilization-state-county"}
68
+ }
69
+ }
@@ -1,96 +1,96 @@
1
- {
2
- "id": "cms",
3
- "title": "CMS Provider Data and Medicare data (data.cms.gov)",
4
- "agency": "Centers for Medicare & Medicaid Services",
5
- "depth": "standard",
6
- "domains": [
7
- "health",
8
- "health care",
9
- "medicare"
10
- ],
11
- "keywords": [
12
- "medicare",
13
- "hospital",
14
- "hospitals",
15
- "nursing home",
16
- "nursing homes",
17
- "star rating",
18
- "readmission",
19
- "readmissions",
20
- "hospital mortality",
21
- "infection",
22
- "hcahps",
23
- "patient survey",
24
- "home health",
25
- "hospice",
26
- "dialysis",
27
- "care compare",
28
- "medicare enrollment",
29
- "medicare advantage",
30
- "part d",
31
- "part b",
32
- "drug spending",
33
- "medicare spending",
34
- "geographic variation",
35
- "drg",
36
- "inpatient",
37
- "opioid prescribing"
38
- ],
39
- "questions": [
40
- "hospital star ratings in a state",
41
- "nursing home ratings and deficiencies",
42
- "hospital readmission penalties",
43
- "Medicare enrollment by state over time",
44
- "Medicare spending per beneficiary by state",
45
- "Medicare Part D spending on a drug",
46
- "Medicare Advantage share of beneficiaries"
47
- ],
48
- "homepage": "https://data.cms.gov/",
49
- "terms_url": "https://data.cms.gov/terms-of-use",
50
- "auth": {
51
- "env": null,
52
- "required": "none",
53
- "placement": "none",
54
- "signup_url": null,
55
- "echoes_key": false
56
- },
57
- "limits": {
58
- "rps": 2,
59
- "burst": 4,
60
- "max_rows": 300000
61
- },
62
- "routes": {
63
- "api": {
64
- "base": "https://data.cms.gov",
65
- "probe": "https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/xubh-q36u",
66
- "hosts": [
67
- "data.cms.gov"
68
- ]
69
- },
70
- "manual": {
71
- "how": "Provider data: open https://data.cms.gov/provider-data/dataset/<id> and click Download (full CSV), or open the JSON links in INSTRUCTIONS.md (filtered, 500 rows a page). Medicare data-api datasets: open the dataset page on data.cms.gov, use Export or Download, or open the JSON links. Upload the files."
72
- }
73
- },
74
- "cache": {
75
- "mode": "run_only",
76
- "ttl_hours": null,
77
- "why": "Queries are filtered and small; provider data refresh monthly or quarterly. data/ is reused within a run."
78
- },
79
- "redistribution": {
80
- "mode": "allowed",
81
- "why": "CMS data on data.cms.gov are U.S. government works in the public domain (17 U.S.C. 105); see https://data.cms.gov/terms-of-use. Cite CMS and the dataset."
82
- },
83
- "notices": [],
84
- "retention": null,
85
- "citation": "Centers for Medicare & Medicaid Services, {dataset}, data.cms.gov, retrieved {retrieved_long}.",
86
- "audit_hooks": [],
87
- "clarify": [
88
- "Which reporting period? Provider Data measures cover rolling multi-year windows that differ by measure (see each row's start_date and end_date); Medicare datasets are by calendar year.",
89
- "Original Medicare (fee-for-service) only, or including Medicare Advantage? Geographic Variation, inpatient and physician files cover fee-for-service only.",
90
- "Actual or price-standardized spending? Geographic comparisons should use standardized amounts."
91
- ],
92
- "formats": [
93
- "json",
94
- "csv"
95
- ]
96
- }
1
+ {
2
+ "id": "cms",
3
+ "title": "CMS Provider Data and Medicare data (data.cms.gov)",
4
+ "agency": "Centers for Medicare & Medicaid Services",
5
+ "depth": "standard",
6
+ "domains": [
7
+ "health",
8
+ "health care",
9
+ "medicare"
10
+ ],
11
+ "keywords": [
12
+ "medicare",
13
+ "hospital",
14
+ "hospitals",
15
+ "nursing home",
16
+ "nursing homes",
17
+ "star rating",
18
+ "readmission",
19
+ "readmissions",
20
+ "hospital mortality",
21
+ "infection",
22
+ "hcahps",
23
+ "patient survey",
24
+ "home health",
25
+ "hospice",
26
+ "dialysis",
27
+ "care compare",
28
+ "medicare enrollment",
29
+ "medicare advantage",
30
+ "part d",
31
+ "part b",
32
+ "drug spending",
33
+ "medicare spending",
34
+ "geographic variation",
35
+ "drg",
36
+ "inpatient",
37
+ "opioid prescribing"
38
+ ],
39
+ "questions": [
40
+ "hospital star ratings in a state",
41
+ "nursing home ratings and deficiencies",
42
+ "hospital readmission penalties",
43
+ "Medicare enrollment by state over time",
44
+ "Medicare spending per beneficiary by state",
45
+ "Medicare Part D spending on a drug",
46
+ "Medicare Advantage share of beneficiaries"
47
+ ],
48
+ "homepage": "https://data.cms.gov/",
49
+ "terms_url": "https://data.cms.gov/terms-of-use",
50
+ "auth": {
51
+ "env": null,
52
+ "required": "none",
53
+ "placement": "none",
54
+ "signup_url": null,
55
+ "echoes_key": false
56
+ },
57
+ "limits": {
58
+ "rps": 2,
59
+ "burst": 4,
60
+ "max_rows": 300000
61
+ },
62
+ "routes": {
63
+ "api": {
64
+ "base": "https://data.cms.gov",
65
+ "probe": "https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/xubh-q36u",
66
+ "hosts": [
67
+ "data.cms.gov"
68
+ ]
69
+ },
70
+ "manual": {
71
+ "how": "Provider data: open https://data.cms.gov/provider-data/dataset/<id> and click Download (full CSV), or open the JSON links in INSTRUCTIONS.md (filtered, 500 rows a page). Medicare data-api datasets: open the dataset page on data.cms.gov, use Export or Download, or open the JSON links. Upload the files."
72
+ }
73
+ },
74
+ "cache": {
75
+ "mode": "run_only",
76
+ "ttl_hours": null,
77
+ "why": "Queries are filtered and small; provider data refresh monthly or quarterly. data/ is reused within a run."
78
+ },
79
+ "redistribution": {
80
+ "mode": "allowed",
81
+ "why": "CMS data on data.cms.gov are U.S. government works in the public domain (17 U.S.C. 105); see https://data.cms.gov/terms-of-use. Cite CMS and the dataset."
82
+ },
83
+ "notices": [],
84
+ "retention": null,
85
+ "citation": "Centers for Medicare & Medicaid Services, {dataset}, data.cms.gov, retrieved {retrieved_long}.",
86
+ "audit_hooks": [],
87
+ "clarify": [
88
+ "Which reporting period? Provider Data measures cover rolling multi-year windows that differ by measure (see each row's start_date and end_date); Medicare datasets are by calendar year.",
89
+ "Original Medicare (fee-for-service) only, or including Medicare Advantage? Geographic Variation, inpatient and physician files cover fee-for-service only.",
90
+ "Actual or price-standardized spending? Geographic comparisons should use standardized amounts."
91
+ ],
92
+ "formats": [
93
+ "json",
94
+ "csv"
95
+ ]
96
+ }