Hospitals 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
| Endpoint | Parameters | What it returns |
|---|---|---|
GET /api/med/v1/hospitals/search | q (name or area), city, state, tier, speciality, limit, offset | CGHS empanelled hospitals, labs and centres: address, ABDM facility id, tier, specialities, phone, map pin, validity. |
GET /api/med/v1/hospitals/near | lat, lon, km (default 10), speciality | CGHS hospitals within km, nearest first, with km. |
GET /api/med/v1/hospitals/cities | state | Cities with their number of CGHS hospitals. |
About the data
From CGHS's list of empanelled hospitals on cghs.mohfw.gov.in, loaded weekly. Empanelment changes often: call the hospital before you go, and in an emergency go to the nearest hospital at once. Listing is not a recommendation. The phone is the hospital's listed number.
Not included: NABH lists (NABH does not allow commercial reuse), PM-JAY hospitals (behind a login) and doctors (the NMC register allows non-commercial use only).
Beta. Reference information only, not medical advice.