Docs / Places and transport

Hospitals API

About 30,000 hospitals across India with their kind, system of medicine, phone and position, from the National Hospital Directory.

The Ministry of Health's National Hospital Directory: government and private hospitals, nursing homes and clinics, allopathic and AYUSH, with address, phone numbers, emergency and ambulance numbers where given, specialties, and a position for about a third. As of May 2016: check before you rely on one. In an emergency dial 112 or 108.

Base URL https://api.dharun.devNo key needed for most600 units a minute, 3000 with a free keyThis page as Markdown

Hospitals near a point, by PIN code, district or name

GET/v1/hospitals

One of near, pincode, district or q. near gives the ten nearest within about 50 km, with their distance; the others up to 100, by name.

ParameterDescription
nearquerylatitude,longitude.
pincodequerySix digits.
districtqueryA district, such as Namakkal; add state to narrow it.
statequeryWith district or q.
qqueryPart of a hospital's name, 3 to 80 characters.
systemqueryOnly this system of medicine: Allopathic, Ayurveda, Homeopathy, Siddha, Unani.

curl

curl "https://api.dharun.dev/v1/hospitals?pincode=637001&utm_medium=docs"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/hospitals?pincode=637001&utm_medium=docs");
const body = await response.json();
if (!response.ok) throw new Error(body.error.message);
console.log(body.data);

Python

import requests

response = requests.get("https://api.dharun.dev/v1/hospitals?pincode=637001&utm_medium=docs", timeout=10)
body = response.json()
if not response.ok:
    raise RuntimeError(body["error"]["message"])
print(body["data"])
Try it here

Change the values and send the request from your browser. Needs JavaScript.

Data source

National Hospital Directory with geo code (May 2016), 30284. Retrieved 2026-11-11T17:17:28Z. Licence: Government Open Data License - India. National Hospital Directory (May 2016) from the Ministry of Health and Family Welfare, published on data.gov.in under the Government Open Data License - India.

Using an AI assistant? Connect the MCP server and it can call this API by itself. Want every endpoint on one bench? Open the playground.