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

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

Python
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")
Output
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

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.