# Search EU and Health Canada guidance

Search and read EU and Health Canada guidance records through the Assyro API: the full text of EMA scientific and procedural guidelines, MDCG (MDR/IVDR)…

Source: https://www.assyro.com/docs/sources/regulator-guidance

`GET https://api.assyro.com/v1/sources/regulator-guidance/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 EU and Health Canada guidance records from your own code: the full text of EMA scientific and procedural guidelines, MDCG (MDR/IVDR) guidance and Health Canada guidance documents, each with its reference, status and dates. `search_guidance` with `sourceCode` "EMA", "MDCG" or "HC" reaches the same documents. Published by European Medicines Agency, European Commission (MDCG), Health Canada ([health.ec.europa.eu/medical-devices-sector/new-regulations/guidance-mdcg-endorsed-documents-and-other-guidance_en](https://health.ec.europa.eu/medical-devices-sector/new-regulations/guidance-mdcg-endorsed-documents-and-other-guidance_en)); answered from Assyro's copy, refreshed daily 22:30 UTC.

> **Warning:** Attribution required: every record carries `attribution`. Show it wherever you show the data: "Each record names its licence and attribution (fields.licence, fields.attribution)." See the [terms](https://commission.europa.eu/legal-notice_en).

Example: "What does MDCG guidance say about demonstrating equivalence for clinical evaluation?"

## Search

`GET https://api.assyro.com/v1/sources/regulator-guidance/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 title, reference and text, e.g. "clinical evaluation equivalence". "quoted phrases", OR and -exclusions work. |
| `agency` | string | no | Only this regulator: "ema", "mdcg" or "hc". Omit to search all three. One of: `ema`, `mdcg`, `hc`. |
| `status` | string | no | "final", "draft", "superseded" or "any" (default). "final" leaves out documents whose status the regulator does not state. One of: `final`, `draft`, `superseded`, `any`. |
| `dateFrom` | string | no | Earliest first-published date, YYYY, YYYY-MM or YYYY-MM-DD (inclusive). Documents without a date are left out when a bound is given. |
| `dateTo` | string | no | Latest first-published date, YYYY, YYYY-MM or YYYY-MM-DD (inclusive: "2024" means through 2024-12-31). |
| `sort` | string | no | 'relevance' (default) or 'newest' first. One of: `relevance`, `newest`. |
| `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/regulator-guidance/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.
- `attribution`: the attribution the licence requires.

## Example request

curl:

```bash
curl "https://api.assyro.com/v1/sources/regulator-guidance/search?query=equivalence+clinical+evaluation&agency=mdcg"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/regulator-guidance/search",
    params={
        "query": "equivalence clinical evaluation",
        "agency": "mdcg"
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/regulator-guidance/search?query=equivalence+clinical+evaluation&agency=mdcg");
const result = await response.json();
```
