Public API

Free, read-only JSON. No key needed. Cross-origin requests are allowed. Responses are cached for an hour.

curl "https://<this-site>/api/public/v1/medicines?q=paracetamol&formulary=outpatient"
GET /api/public/v1/medicines/bisacodyl/status
{
  "slug": "bisacodyl", "name": "Bisacodyl",
  "formulary": { "outpatient": true, "hospital": true },
  "stock": { "period": "October 2026", "reported": true, "items": 2, "out": 0, "low": 0, "ok": 2 }
}

Errors return JSON like { "error": "Not found" } with status 400 or 404. Slugs come from the slug field in search results.

  • GET /api/public/v1/medicines

    Search active ingredients

    Parameters: q, atc, formulary (all|outpatient|hospital|either|none), stock (all|in|out|tracked), rx (all|POM|OTC), page, page_size (≤200)

  • GET /api/public/v1/medicines/{slug}

    One medicine with products, formulary entries, stock and changes

    Parameters: slug, e.g. paracetamol

  • GET /api/public/v1/medicines/{slug}/status

    Quick check: is it on the formulary, and is it in stock?

    Parameters: slug. Returns formulary.outpatient / formulary.hospital (true/false) and stock counts: out, low, ok

  • GET /api/public/v1/products

    Authorised products (brands)

    Parameters: q, atc, limit (≤500), offset

  • GET /api/public/v1/formulary

    Government Formulary entries

    Parameters: list (outpatient|hospital, required), q

  • GET /api/public/v1/formulary/changes

    Latest list of changes

    Parameters: list (outpatient|hospital|protocol), type (added|deleted|changed)

  • GET /api/public/v1/eu-medicines

    EU centrally authorised medicines (EMA) with EMA product number, ATC, INN and linked local medicines

    Parameters: q, medicine (slug), linked (yes|no), limit, offset

  • GET /api/public/v1/protocols

    Entitlement protocols with linked medicines and PDF links

    Parameters: q (number or text), medicine (slug)

  • GET /api/public/v1/stock

    CPSU stock lines

    Parameters: status (out|low|ok|untracked), q

  • GET /api/public/v1/sources

    Source files, periods and status

    Parameters: —