> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# CMS Data (data.cms.gov)

> Medicare and Medicaid datasets published by the US Centers for Medicare & Medicaid Services: the open-data catalog, and rows of any API-enabled dataset with keyword search, filters, sorting and column selection.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/data-cms.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=54c7183fe81a1f5c61bd0083ff13ad29)

[Web Catalog · Health](https://docs.webrouter.net/data-apis.md?category=health)

No key needed

Endpoints

3

Auth

None

[Vendor docs](https://data.cms.gov/api-docs)

## Notes

* Free and keyless. A custom User-Agent with your organization, application and contact email is optional.
* Find a dataset's id in the catalog (data.json): each datasetSeries @id is a data URL that always points to the latest release; each dataset (one release) lists its distributions, with the API accessURL and CSV/ZIP downloadURL.
* Rows come 1,000 per request by default, up to 5,000 with size; page with offset, and read the total from dataset.stats first. For a whole dataset, downloading the CSV is faster.
* All values are strings. Filters use the JSON:API filter syntax, e.g. filter\[COLUMN]=value for equality; complex conditions (operators =, \<>, >, >=, \<, \<=, STARTS\_WITH, CONTAINS, ENDS\_WITH, IN, NOT IN, BETWEEN, IS NULL ...) are sent as filter\[...] keys in a raw call.
* URLs are limited to 8,192 characters. On 429 slow down; on 5xx retry with randomized back-off.

## Endpoints

GET

Get the dataset catalog

The DCAT-US v3.0 catalog of every dataset and dataset series, with titles, time periods, API and download URLs, and data dictionaries.

[Open](#data-cms-catalog)

GET

Query a dataset's rows

Rows of one dataset as JSON, with keyword search across all columns, equality filters, sorting, column selection and paging.

[Open](#data-cms-dataset-rows)

GET

Count a dataset's rows

Row counts of one dataset (total\_rows), to plan paging.

[Open](#data-cms-dataset-stats)

### Get the dataset catalog

GET

`/data.json`

`data-cms.catalog`

The DCAT-US v3.0 catalog of every dataset and dataset series, with titles, time periods, API and download URLs, and data dictionaries.

Input

No inputs.

[Vendor docs](https://data.cms.gov/api-docs) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-lists), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query)

```python Python theme={null}
router.call_data_api("data-cms.catalog")
```

```text MCP theme={null}
call_data_api(endpoint="data-cms.catalog")
```

> [!NOTE]
>
> * A large single document: filter it locally by title.

### Query a dataset's rows

GET

`/data-api/v1/dataset/{dataset_id}/data`

`data-cms.dataset.rows`

Rows of one dataset as JSON, with keyword search across all columns, equality filters, sorting, column selection and paging.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataset_id` required</td><td>string</td><td>path</td><td>The dataset (or dataset series) id from the catalog. Example `9887a515-7552-4693-bf58-735c77af46d7`</td></tr>
    <tr><td>`keyword`</td><td>string</td><td>query</td><td>Match these words in any column. Example `alex`</td></tr>
    <tr><td>`column`</td><td>string</td><td>query</td><td>Comma-separated columns to return. Example `NPI,FIRST_NAME,LAST_NAME`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Column to sort by; prefix - for descending. Example `-NPI`</td></tr>

    <tr>
      <td>
        `size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Rows to return, up to 5000; 1000 by default.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Rows to skip.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://data.cms.gov/api-docs) · Same job: [CMS Open Payments](https://docs.webrouter.net/data-apis/cms-open-payments.md#cms-open-payments-datastore-query), [data.gov.au](https://docs.webrouter.net/data-apis/data-gov-au.md#data-gov-au-rows-search), [Latvian Open Data Portal (data.gov.lv)](https://docs.webrouter.net/data-apis/data-gov-lv.md#data-gov-lv-rows-search), [data.gov.ua](https://docs.webrouter.net/data-apis/data-gov-ua.md#data-gov-ua-rows-search), [Dune](https://docs.webrouter.net/data-apis/dune.md#dune-query-latest-result), [FINRA API Platform](https://docs.webrouter.net/data-apis/finra.md#finra-datasets-query)

```python Python theme={null}
router.call_data_api("data-cms.dataset.rows", {'dataset_id': '9887a515-7552-4693-bf58-735c77af46d7', 'keyword': 'alex', 'column': 'NPI,FIRST_NAME,LAST_NAME', 'sort': '-NPI'})
```

```text MCP theme={null}
call_data_api(endpoint="data-cms.dataset.rows", params={"dataset_id": "9887a515-7552-4693-bf58-735c77af46d7", "keyword": "alex", "column": "NPI,FIRST_NAME,LAST_NAME", "sort": "-NPI"})
```

### Count a dataset's rows

GET

`/data-api/v1/dataset/{dataset_id}/data/stats`

`data-cms.dataset.stats`

Row counts of one dataset (total\_rows), to plan paging.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `dataset_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The dataset id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://data.cms.gov/api-docs) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.