Docs

Medicines API

Base URL https://med.ejiapi.com/api/med/v1. Send your key in the x-api-key header. Medical keys start with med_; finance and accounting keys do not work here. Get a free beta key.

Answers

Every answer is JSON: {status, statusCode, message, data, source, asOf, disclaimer}. source names NPPA, as NPPA's reuse terms require; 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/medicines/searchq (2+ letters), limit (1-100, default 25), offsetPacks whose brand, pack name or composition contains q. Brand hits first. hasMore says whether there is another page.
GET /api/med/v1/medicines/packid (the pack id from a search)One pack.
GET /api/med/v1/medicines/brand/{brandId}–Every pack of one brand.
GET /api/med/v1/medicines/substitutesid, limit (1-100, default 20), include_flagged (default false)Other packs with exactly the same composition and dosage form, cheapest per unit first. Each has savingPct against the pack asked about (null when that pack's own price is flagged). Packs with a flagged price are left out unless include_flagged=true. Also returns pack, sameCompositionPacks and flaggedLeftOut.
GET /api/med/v1/salts/searchq, limitSalt combinations (NPPA formulations) with their number of packs.
GET /api/med/v1/salts/{saltId}form (e.g. TABLET), limit (1-500), offsetEvery pack of one salt combination, and the price spread per strength and form (compositions).
GET /api/med/v1/ceiling-pricesqCeiling prices of scheduled formulations, with per (the unit), soNo and soDate.
GET /api/med/v1/companies/searchq, limitCompanies with their number of packs and brands.
GET /api/med/v1/companies/packsname (exact, from companies/search), limit, offsetEvery pack of one company.
GET /api/med/statusno keyRows per dataset and the last load of each job.
GET /api/med/v1/us/labelsalt (Indian names such as paracetamol work)The newest US FDA label of the salt (openFDA): uses, boxed warning, contraindications, warnings, interactions, side effects, with a DailyMed link. Fetched when asked and kept a day.

Pack fields

id (NPPA's row id, pass it back as is), brandId, brand (read from the pack name), name, composition (salts, form and strength as NPPA writes them), saltId, dosageForm, packSize, company, mrp, mrpPerUnit, ceilingPrice (null when not price-controlled), priceControlled, month, priceFlag and priceFlagReason.

Price check. NPPA lists what companies file, and about 1 pack in 100 has a price that looks wrong. priceFlag is "missing" (no usable MRP), "low" (MRP per unit under a tenth of the median for the same composition and form, or under a tenth of its ceiling price) or "high" (over ten times the median); otherwise it is null. Flagged packs still show in search, but stay out of substitutes and of the price spread of a salt. The flags are worked out again after every load. We never change NPPA's figures. Worked example: ceiling price, MRP and same-composition packs.

Other medical data has its own docs: Drug Safety, Investigations, Hospitals and Diseases. The same key works for all of them.

Examples

curl -H "x-api-key: $KEY" "https://med.ejiapi.com/api/med/v1/medicines/search?q=dolo"
curl -H "x-api-key: $KEY" "https://med.ejiapi.com/api/med/v1/medicines/substitutes?id=PACK_ID"

About the data

US labels come from openFDA (public domain). A US label describes the US product, which can differ from the Indian brand.

Packs and prices come from NPPA's Pharma Sahi Daam: what companies file with NPPA each month. Brands of companies that have not filed are missing. A few filings carry obvious mistakes (an MRP of a few paise); we pass them on as filed, so check outliers before you show a saving. Same composition and form does not always mean interchangeable: release type (SR, ER) and excipients can differ.

Reference information only, not medical advice. Prices are as filed by companies with NPPA and may differ from the pack in hand. Ask a doctor or pharmacist before changing a medicine. Source: National Pharmaceutical Pricing Authority (NPPA), Pharma Sahi Daam.