# Search CMS Open Payments

Search and read CMS Open Payments records through the Assyro API: what drug and device manufacturers reported paying US physicians, practitioners and teaching…

Source: https://www.assyro.com/docs/sources/open-payments

`GET https://api.assyro.com/v1/sources/open-payments/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 CMS Open Payments records from your own code: what drug and device manufacturers reported paying US physicians, practitioners and teaching hospitals (the Sunshine Act data), summed per company, per company and product, and per company and research study, each program year: general payments by nature (consulting, speaker fees, food, travel...), research payments, ownership interests. Published by Centers for Medicare & Medicaid Services (Open Payments) ([openpaymentsdata.cms.gov](https://openpaymentsdata.cms.gov/)); answered from Assyro's copy, refreshed weekly Monday 07:20 UTC.

Licence: public domain (see the [terms](https://www.usa.gov/government-works)). Each record links to its page at the source.

Example: "How much did Novo Nordisk report paying US physicians in 2024, and for what?"

## Search

`GET https://api.assyro.com/v1/sources/open-payments/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 |
|---|---|---|---|
| `company` | string | no | A paying company's name, e.g. "Novo Nordisk", or its CMS id, e.g. "100000000186". |
| `product` | string | no | A drug, biologic or device named on payments, e.g. "Ozempic" or "Watchman". |
| `study` | string | no | Words of a research study's name, e.g. "semaglutide cardiovascular outcomes". |
| `nctId` | string | no | A ClinicalTrials.gov id named on research payments, e.g. "NCT03574597". |
| `query` | string | no | Words across company, product, study, therapeutic area and research context, e.g. "obesity". |
| `kind` | string | no | Only company totals, company-product totals or company-study totals. One of: `company`, `product`, `study`. |
| `year` | integer | no | One program year, e.g. 2024. |
| `yearFrom` | integer | no | Program years from this one. |
| `yearTo` | integer | no | Program years up to this one. |
| `limit` | integer | no | Results 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/open-payments/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/open-payments/search?company=Novo+Nordisk&kind=company&year=2024"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/open-payments/search",
    params={
        "company": "Novo Nordisk",
        "kind": "company",
        "year": 2024
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/open-payments/search?company=Novo+Nordisk&kind=company&year=2024");
const result = await response.json();
```
