Docs / Guides

Search medicines

GET /v1/drugs searches every record of every source in one country by name, active ingredient or identifier.

How matching works

  • Names match anywhere in the text, so part of a brand name finds it.
  • Identifiers match from their first character, so the beginning of a code finds every record whose code starts with it.
  • Accents and case are ignored.
  • The query is literal text, without wildcards or operators, and needs 3 to 120 characters.

Ranking

Exact matches come first, then records whose name starts with the query, then other matches; ties are ordered by record name.

🇫🇷 Searchable identifiers

These are the identifier schemes of each source of this country (France):

Source Publisher Records Identifiers
fr.anmv.veterinary-medicines
Veterinary medicines
ANSES — Agence nationale du médicament vétérinaire 3,221 upd-package amm gtin atcvet anmv-src-id anmv upd-permanent upd-product
fr.ansm.bdpm
Public medicines database (BDPM)
Base de données publique des médicaments (BDPM), ANSM, HAS et Assurance Maladie 36,783 cip13 cip7 cis registration

Filter by record kind

A source can publish several kinds of records, such as packages, active ingredients or ATC classes. Pass kinds to keep only the ones your application uses. The filter applies before paging, so other kinds cannot push them off a page.

cURL
curl -G https://api.medifontis.com/v1/drugs \
  -H "Authorization: Bearer $MEDIFONTIS_API_KEY" \
  --data-urlencode "country=fr" \
  --data-urlencode "q=doliprane" \
  --data-urlencode "kinds=fr.ansm.bdpm:registrations"

kinds takes up to 12 comma-separated sourceId:kind pairs, all of the requested country. A malformed pair, or one of another country, answers 400.

Filter by use and species

useDomain and species keep only human or veterinary medicines, or only those for a target species. Human and veterinary medicines.

Pagination

limit sets the page size, from 1 to 50 (default 20), and offset skips results, up to 10000. Each response carries nextOffset, the offset of the next page, or null on the last one.

Example

GET /v1/drugs
curl -G https://api.medifontis.com/v1/drugs \
  -H "Authorization: Bearer $MEDIFONTIS_API_KEY" \
  --data-urlencode "country=fr" \
  --data-urlencode "q=doliprane"
Response
{
  "country": "fr",
  "results": [
    {
      "country": "fr",
      "sourceId": "fr.ansm.bdpm",
      "id": "fr:ansm:registrations:60234100",
      "kind": "registrations",
      "name": "DOLIPRANE 1000 mg, comprimé",
      "names": [
        "DOLIPRANE 1000 mg, comprimé",
        "PARACÉTAMOL"
      ],
      "identifiers": [
        {
          "value": "60234100",
          "scheme": "cis"
        }
      ],
      "data": {
        "cis": "60234100",
        "form": "comprimé",
        "name": "DOLIPRANE 1000 mg, comprimé",
        "holder": "OPELLA HEALTHCARE FRANCE",
        "useDomain": "unknown",
        "authorisedOn": "2002-07-09"
      },
      "retrievedAt": "2026-10-19T23:00:39.006Z",
      "sourceUrl": "https://base-donnees-publique.medicaments.gouv.fr/telechargement",
      "licence": {
        "id": "etalab-1.0",
        "attribution": "Source : Base de données publique des médicaments (BDPM), ANSM, HAS et Assurance Maladie — dates de mise à jour dans publicationDates ; https://base-donnees-publique.medicaments.gouv.fr"
      }
    },
    {
      "country": "fr",
      "sourceId": "fr.ansm.bdpm",
      "id": "fr:ansm:registrations:66567738",
      "kind": "registrations",
      "name": "DOLIPRANE 1000 mg, comprimé effervescent sécable",
      "names": [
        "DOLIPRANE 1000 mg, comprimé effervescent sécable",
        "PARACÉTAMOL"
      ],
      "identifiers": [
        {
          "value": "66567738",
          "scheme": "cis"
        }
      ],
      "data": {
        "cis": "66567738",
        "form": "comprimé effervescent(e) sécable",
        "name": "DOLIPRANE 1000 mg, comprimé effervescent sécable",
        "holder": "OPELLA HEALTHCARE FRANCE",
        "useDomain": "unknown",
        "authorisedOn": "1999-12-16"
      },
      "retrievedAt": "2026-10-19T23:00:39.006Z",
      "sourceUrl": "https://base-donnees-publique.medicaments.gouv.fr/telechargement",
      "licence": {
        "id": "etalab-1.0",
        "attribution": "Source : Base de données publique des médicaments (BDPM), ANSM, HAS et Assurance Maladie — dates de mise à jour dans publicationDates ; https://base-donnees-publique.medicaments.gouv.fr"
      }
    }
  ],
  "nextOffset": 2
}