Substances

Type: object

A map of all avalaible drugs, mapping their slugs to short overviews.


Example:

{
    "drug-a": {
        "name": "Drug A",
        "url": "https://mixtures.info/fr/api/v1/substance/drug-a/",
        "site_url": "https://mixtures.info/fr/substance/drug-a/",
        "category": "Category name",
        "common": true
    },
    "drug-b": {
        "name": "Drug B",
        "url": "https://mixtures.info/fr/api/v1/substance/drug-b/",
        "site_url": "https://mixtures.info/fr/substance/drug-b/",
        "category": "Category name",
        "common": false
    }
}

Each additional property must conform to the following schema

Type: object

Unique identifier of the substance.

Type: string

Name of the substance.

Type: stringFormat: uri

URL of the substance.

Type: stringFormat: uri

URL of the substance on the Mixtures website.

Type: string or null

Name of the category of the substance.

Type: boolean

Is this substance classified as common?