# Search Medicare Coverage Database

Search and read Medicare Coverage Database records through the Assyro API: whether and when US Medicare covers an item or service: the full text of every…

Source: https://www.assyro.com/docs/sources/cms-coverage

`GET https://api.assyro.com/v1/sources/cms-coverage/search`

> **Note:** Preview: `api.assyro.com` is not serving production data yet. This page follows the API's published description and may change before launch.

Search and read Medicare Coverage Database records from your own code: whether and when US Medicare covers an item or service: the full text of every National Coverage Determination (indications and limitations of coverage, effective dates, benefit category) and CMS's listings of Local Coverage Determinations and their articles (contractor, states, status, dates, link); LCD text and billing codes stay on CMS's site. Published by Centers for Medicare & Medicaid Services ([www.cms.gov/medicare-coverage-database/search.aspx](https://www.cms.gov/medicare-coverage-database/search.aspx)); answered from Assyro's copy, refreshed daily 05:50 UTC.

Licence: public domain (see the [terms](https://api.coverage.cms.gov/)). Each record links to its page at the source.

Example: "Does Medicare cover transcatheter aortic valve replacement, and under what conditions?"

## Search

`GET https://api.assyro.com/v1/sources/cms-coverage/search` with any of these query parameters. Repeat a parameter for a list (`?phase=PHASE2&phase=PHASE3`). An unknown parameter is refused by name.

### Search parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The item, service or topic, optionally with a contractor or state, e.g. "transcatheter aortic valve" or "facet joint Florida". |
| `type` | string | no | ncd, lcd (final), proposed-lcd or article. Omit to search all four. One of: `ncd`, `lcd`, `proposed-lcd`, `article`. |
| `includeRetired` | boolean | no | Also search retired LCD and article versions. Default false. |
| `limit` | integer | no | Documents to return, default 8. |
| `offset` | integer | no | Skip this many results (for paging), default 0. |

Each result is a record; read one in full with [Get a record](https://www.assyro.com/docs/sources/cms-coverage/records).

## What a record holds

- `id`, `title`, `url`: the source's identifier, its title and its page at the source, to verify it.
- `authority`, `publishedDate`, `version`: who published it, when, and the edition read.
- `snippet` and `fields`: the matching text and the source's own fields.
- `asOf`: the day Assyro's copy of the source was read.

## Example request

curl:

```bash
curl "https://api.assyro.com/v1/sources/cms-coverage/search?query=transcatheter+aortic+valve+replacement&type=ncd"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/cms-coverage/search",
    params={
        "query": "transcatheter aortic valve replacement",
        "type": "ncd"
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/cms-coverage/search?query=transcatheter+aortic+valve+replacement&type=ncd");
const result = await response.json();
```
