# Search FDA Import Alerts

Search and read FDA Import Alerts records through the Assyro API: FDA's current import alerts (detention without physical examination, DWPE): each alert's…

Source: https://www.assyro.com/docs/sources/fda-import-alerts

`GET https://api.assyro.com/v1/sources/fda-import-alerts/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 FDA Import Alerts records from your own code: FDA's current import alerts (detention without physical examination, DWPE): each alert's reason, guidance, products, charge and countries, and every firm on its Red List (subject to DWPE), Green List (excluded) or Yellow List (surveillance), with address and listed products. Published by U.S. Food and Drug Administration ([www.fda.gov/industry/actions-enforcement/import-alerts](https://www.fda.gov/industry/actions-enforcement/import-alerts)); answered from Assyro's copy, refreshed daily 06:30 UTC.

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

Example: "Is Babikian Healthcare on an FDA import alert?"

## Search

`GET https://api.assyro.com/v1/sources/fda-import-alerts/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 | no | A firm name, product, country or words, e.g. "Babikian" or "drug GMP India". Optional when alert is given. |
| `alert` | string | no | Only records of this import alert, e.g. "66-40". |
| `kind` | string | no | alert for the alerts themselves, firm for listed firms. Omit for both. One of: `alert`, `firm`. |
| `list` | string | no | Only firm entries on this list: red (DWPE), green (excluded from DWPE), yellow (surveillance). One of: `red`, `green`, `yellow`. |
| `sort` | string | no | relevance (default) or newest (latest published or listed first). One of: `relevance`, `newest`. |
| `limit` | integer | no | Records 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/fda-import-alerts/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/fda-import-alerts/search?query=Babikian"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/fda-import-alerts/search",
    params={
        "query": "Babikian"
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/fda-import-alerts/search?query=Babikian");
const result = await response.json();
```
