Docs

Drug Safety API

Base URL https://med.ejiapi.com/api/med/v1. Send your key in the x-api-key header. Medical keys start with med_; one key works for every medical API. Get a free beta key.

Answers

Every answer is JSON: {status, statusCode, message, data, source, asOf, disclaimer}. source names where the data comes from; show it wherever you show the data. asOf is the month the prices are for (e.g. Sep-2026). Errors are application/problem+json with title, status and detail.

Limits: 120 requests a minute and 50,000 a day per key; no monthly cap during the beta. 401 means a missing or wrong key, 429 too many requests, 422 a bad parameter.

To get only some fields, add fields= with comma-separated names, for example fields=name,mrp. In a list, the names apply to each item; a dotted name such as packs.mrp goes deeper. The envelope stays. Names that match nothing come back in unknownFields.

Endpoints

EndpointParametersWhat it returns
GET /api/med/v1/nlemq (medicine), section, limit (1-500)National List of Essential Medicines 2022: number, section, healthcare level (P, S, T) and dosage forms. Empty when the name is not in the list.
GET /api/med/v1/alertsq (medicine or brand), batch, maker, month (e.g. SEP-2026), kind (nsq, spurious), limit, offsetBatches CDSCO declared Not of Standard Quality or spurious, newest month first, with batch, mfg and expiry month, maker, failure and the lab or state that reported it. Since January 2019, loaded weekly.
GET /api/med/v1/bannedq: a drug or a combination as salt + saltDrugs and FDCs prohibited or restricted under Section 26A that name every part of q, newest first, with the Gazette notification, date and status. Also returns total and a caution.
GET /api/med/v1/schedulesq: a drug or brandEntries of Schedule H, H1, X and H2 that name q (each word must start a word), with what each schedule means and a caution. X first.
GET /api/med/v1/us/recallsq (salt or product), firm, india=true, limitUS FDA drug recalls, newest first: product, firm, country, reason, class, status. Fetched when asked and kept a day.

About the data

Batch alerts are CDSCO's monthly drug alerts from cdscoonline.gov.in: batches that failed a test (Not of Standard Quality) or were found spurious, by CDSCO and state labs. An alert covers only the batch named; a spurious alert names the maker on the label, who may not be the real maker. Served in the beta while CDSCO's permission is sought.

US recalls come from openFDA's drug enforcement reports (public domain). They are US recalls, including those of Indian makers; they are not Indian batch alerts.

Schedules: Drugs Rules 1945, Schedules H (521), H1 (50), H2 (300 brands with a QR code) and X (16), as consolidated by CDSCO on 01-07-2024. The Rules are law and may be reproduced (Copyright Act s.52(1)(q)).

Banned and restricted come from the lists CDSCO publishes under Section 26A of the Drugs and Cosmetics Act 1940: the consolidated list as on 22-11-2021 and the notifications of 02-06-2023 (14 FDCs), 02-08-2024 (156 FDCs), 12-08-2024 (2 restricted) and 11-06-2026 (16 FDCs), 706 entries in all, each with its Gazette notification and date. A match points to a notification: its exact strengths and dosage form decide whether a product is covered, and some older entries were later changed or stayed by courts (note). No match does not make a product approved.

NLEM 2022 is the National List of Essential Medicines, notified as Schedule I of the Drugs (Price Control) Order 2013 by S.O. 5249(E) of 11-11-2022. Salt answers in the Medicines API carry nlem too.

Coming next, once CDSCO allows reuse: failed and spurious batch alerts.

Beta. Reference information only, not medical advice.