API reference
The Medifontis API is a read-only REST API. Every endpoint is a GET under one host that returns JSON.
Base URL
https://api.medifontis.com/v1
Authentication
Send your key as Authorization: Bearer or as X-Api-Key, never both. Authentication.
Endpoints
The record object
-
countrystring - Two-letter country code of the source.
-
sourceIdstring - The source the record comes from, such as it.aifa.packages.
-
idstring - The record’s identity within its source. Stable across collections.
-
kindstring - The kind of record within the source, such as packages, ingredients or veterinary-medicines.
-
namestring - The record’s display name: its first name.
-
namesstring[] - Every name the record can be found by, from its own fields.
-
identifiersobject[] - Typed identifiers as { scheme, value }, such as aic, cn, ndc-package or din. Values are always strings.
-
dataobject - The normalized fields of the source, plus useDomain and targetSpecies with their evidence.
-
regionstring | null - A sub-national region when the source is regional, otherwise null.
-
retrievedAtstring - ISO 8601 time the record was collected from its source.
-
sourceUrlstring - The official dataset the record was collected from.
-
licenceobject - The source’s licence: id, url and the attribution text to display.
-
limitationsstring[] - What the source does not establish, such as current marketing or patient eligibility.
Errors
Errors answer a status code and a JSON body with an error message. Errors and rate limits.
Versioning
The version is part of the path. New optional fields and parameters can appear within v1, so ignore fields you do not know.
OpenAPI
The complete contract is an OpenAPI 3.1 document you can load into any client generator or API tool. /openapi.json