# Search Canada Vigilance

Search and read Canada Vigilance records through the Assyro API: Health Canada's suspected adverse reaction reports (Canada Vigilance): each report's suspect…

Source: https://www.assyro.com/docs/sources/canada-vigilance

`GET https://api.assyro.com/v1/sources/canada-vigilance/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 Canada Vigilance records from your own code: Health Canada's suspected adverse reaction reports (Canada Vigilance): each report's suspect and concomitant products with ingredients, dose and indication, MedDRA reactions, seriousness, outcome, patient sex and age, and counts of every match by reaction, product, outcome or year. Published by Health Canada (Canada Vigilance Program) ([www.canada.ca/en/health-canada/services/drugs-health-products/medeffect-canada/adverse-reaction-database.html](https://www.canada.ca/en/health-canada/services/drugs-health-products/medeffect-canada/adverse-reaction-database.html)); answered from Assyro's copy, refreshed weekly Wednesday 08:25 UTC.

> **Warning:** Attribution required: every record carries `attribution`. Show it wherever you show the data: "Contains information licensed under the Open Government Licence – Canada (Health Canada, Canada Vigilance Adverse Reaction Online Database data extract)." See the [terms](https://open.canada.ca/en/open-government-licence-canada).

Example: "What reactions have been reported in Canada for semaglutide?"

## Search

`GET https://api.assyro.com/v1/sources/canada-vigilance/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 | Words that must all appear among a report's products, active ingredients, indications or reactions, e.g. "semaglutide pancreatitis". |
| `drug` | string | no | A brand name or active ingredient, e.g. "Ozempic" or "semaglutide"; matched as a phrase against the report's suspect drugs (or every drug with role "any"). |
| `role` | string | no | Which drugs `drug` and suspect counts read: "suspect" (default: suspect or interacting) or "any" (concomitant and treatment drugs too). One of: `suspect`, `any`. |
| `reaction` | string | no | A MedDRA preferred term or words of one, e.g. "Pancreatitis" or "drug-induced liver injury". |
| `systemOrganClass` | string | no | A MedDRA system organ class, e.g. "Hepatobiliary disorders". |
| `serious` | boolean | no | true: serious reports only (death, life threatening, hospitalization, disability, congenital anomaly or other medically important condition); false: non-serious only. |
| `outcome` | string | no | The report's outcome as Health Canada words it. One of: `Fatal`, `Not recovered/not resolved`, `Recovering/resolving`, `Recovered/resolved`, `Recovered/resolved with sequelae`, `Unknown`. |
| `sex` | string | no | The patient's sex as reported. One of: `Female`, `Male`. |
| `ageFrom` | number | no | Patients at least this old, in years (0.5 for six months). |
| `ageTo` | number | no | Patients at most this old, in years. |
| `receivedFrom` | string | no | Reports Health Canada first received on or after this date, YYYY-MM-DD. |
| `receivedTo` | string | no | First received on or before this date, YYYY-MM-DD. |
| `excludeDuplicates` | boolean | no | true leaves out reports Health Canada links to another as its duplicate (default false: every report, as the database lists them). |
| `countBy` | string | no | Count every match by this field (top 20, or every year), returned as summary lines with the exact total. One of: `reaction`, `system_organ_class`, `suspect_ingredient`, `suspect_product`, `outcome`, `sex`, `report_type`, `seriousness_criterion`, `year`. |
| `limit` | integer | no | Reports to return, default 8, newest first. total and countBy cover every match. |
| `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/canada-vigilance/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/canada-vigilance/search?drug=semaglutide&countBy=reaction"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/canada-vigilance/search",
    params={
        "drug": "semaglutide",
        "countBy": "reaction"
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/canada-vigilance/search?drug=semaglutide&countBy=reaction");
const result = await response.json();
```
