# Search U.S. Code (FD&C Act, PHS Act)

Search and read U.S. Code (FD&C Act, PHS Act) records through the Assyro API: the current text of the FD&C Act, PHS Act Titles III and IV and the Orphan Drug…

Source: https://www.assyro.com/docs/sources/us-code

`GET https://api.assyro.com/v1/sources/us-code/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 U.S. Code (FD&C Act, PHS Act) records from your own code: the current text of the FD&C Act, PHS Act Titles III and IV and the Orphan Drug Act, cited by act section and U.S. Code section. Published by Office of the Law Revision Counsel (U.S. House) via GovInfo ([www.govinfo.gov/app/collection/comps](https://www.govinfo.gov/app/collection/comps)); answered from Assyro's copy, refreshed daily 12:20 UTC.

Licence: public domain (see the [terms](https://www.govinfo.gov/about/policies)). Each record links to its page at the source.

Example: "When do rare pediatric disease priority review vouchers stop being awarded?"

## Search

`GET https://api.assyro.com/v1/sources/us-code/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 | Words to find in the statute text, e.g. "priority review voucher" or "same approved use or indication". Quoted phrases match whole. A citation ("21 U.S.C. 360ff", "FD&C Act 529") returns that section. |
| `act` | string | no | Search one act only: fdca = Federal Food, Drug, and Cosmetic Act; phsa = Public Health Service Act; orphan-drug-act = Orphan Drug Act (Pub. L. 97-414). One of: `fdca`, `phsa`, `orphan-drug-act`. |
| `limit` | integer | no | Sections 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/us-code/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/us-code/search?query=rare+pediatric+disease+priority+review+voucher&act=fdca"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/us-code/search",
    params={
        "query": "rare pediatric disease priority review voucher",
        "act": "fdca"
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/us-code/search?query=rare+pediatric+disease+priority+review+voucher&act=fdca");
const result = await response.json();
```
