Guide · Python
NPPA ceiling price of a medicine by API, with MRP and cheaper brands
NPPA, the National Pharmaceutical Pricing Authority, fixes the highest price for medicines on the national essential list. It publishes those ceiling prices as orders in PDF. Here they are as JSON, next to each brand's MRP and the other brands with the same composition.
Code we ran Real output Public data
What you get
- Ceiling prices of scheduled formulations, with the unit they apply to and the order (S.O. number and date) that set them: /api/med/v1/ceiling-prices.
- Brand packs from NPPA's list of what companies file: MRP, pack size, MRP per unit, and whether the pack is price-controlled.
- Same-composition packs, cheapest per unit first, with the saving against the pack you asked about.
Before you start
You need Python 3.9 or newer, the requests package and a medical API key. To try it without a key, set EJI_MED_BASE=https://med.ejiapi.com/demo; the output below came from there.
Ceiling price, MRP and same-composition packs
import os
import requests
BASE = os.environ.get("EJI_MED_BASE", "https://med.ejiapi.com")
HEADERS = {"x-api-key": os.environ.get("EJI_MED_KEY", "YOUR_KEY")}
def get(path, **params):
r = requests.get(f"{BASE}/api/med/v1/{path}", params=params, headers=HEADERS, timeout=30)
r.raise_for_status()
return r.json()["data"]
# 1. The ceiling price NPPA fixed for paracetamol 650 mg tablets
for c in get("ceiling-prices", q="paracetamol"):
if c["strength"] == "TABLET 650 MG":
print(f"Ceiling: Rs {c['ceilingPrice']} per {c['per']} (S.O. {c['soNo']}, {c['soDate']})")
# 2. One brand's pack, against that ceiling
pack = next(p for p in get("medicines/search", q="dolo 650") if p["dosageForm"] == "TABLET")
print(f"{pack['name']}: MRP Rs {pack['mrp']} for {pack['packSize']}, Rs {pack['mrpPerUnit']} a tablet,",
"price-controlled" if pack["priceControlled"] else "not price-controlled", f"(NPPA list of {pack['month']})")
# 3. The cheapest packs with exactly the same composition and form
for s in get("medicines/substitutes", id=pack["id"], limit=3):
print(f" {s['name']} ({s['company']}): Rs {s['mrpPerUnit']} a tablet, {s['savingPct']}% less")Ceiling: Rs 2.05 per 1 Tablet (S.O. 1575(E), 25-Mar-2026) DOLO 650 MG TABLET 15: MRP Rs 32.28 for 15 TABLET, Rs 2.15 a tablet, price-controlled (NPPA list of Sep-2026) PARAMOL (CONCEPT) 650 MG TABLET 10 (CONCEPT BIOSCIENCES PVT LTD): Rs 0.5 a tablet, 76.7% less FEPADOL 650 MG TABLET 10 (UNIVENTIS MEDICARE LIMITED): Rs 0.79 a tablet, 63.3% less BITACIN 650 MG TABLET 10 (TABLETS INDIA LTD): Rs 0.81 a tablet, 62.3% less
Reading the result
- Why the MRP is above the ceiling. NPPA's ceiling price does not include GST; a company may add the GST it pays. Rs 2.05 plus 5% GST comes to Rs 2.15, the MRP per tablet above, so this pack is within its ceiling.
- Ceiling prices are per unit (a tablet, a pack of a given size, an ml). Compare them with
mrpPerUnitfor the same dosage form and strength, never across forms. - Same composition is not the same advice. The list shows packs with exactly the same salts, strength and form, from NPPA's data. Whether to switch brands is for a doctor or pharmacist to say; this is price information, not medical advice.
- Odd prices are flagged. About 1 pack in 100 in NPPA's list has a price that looks wrong. Those carry
priceFlagand stay out of the same-composition list unless you ask withinclude_flagged=true.
The same data is in the Medicines Explorer without code, and in Google Sheets through the Sheets Lab.
Get a beta key Read the API reference
Prices come from NPPA's public lists and orders. Sample outputs were produced on 2026-11-27 and change as NPPA publishes new data.