India API

Docs › Places and transport

Constituencies API

Which assembly and Lok Sabha constituency a place is in.

The assembly (MLA) and parliamentary (MP) constituency of a point or a pincode, with number, name, reserved category, district and state. From the DataMeet community's maps; boundaries are approximate near their edges, assembly seats in six states predate the latest delimitation, and sitting members are not given.

Base URL https://api.dharun.devNo API key600 requests a minuteThis page as Markdown

Constituencies of a place

GET/v1/constituency

ParameterDescription
pincodequeryIndian pincode (the average position of its post offices).
latqueryLatitude, if no pincode.
lngqueryLongitude, if no pincode.

curl

curl "https://api.dharun.dev/v1/constituency?pincode=637001"

JavaScript

const response = await fetch("https://api.dharun.dev/v1/constituency?pincode=637001");
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/constituency?pincode=637001", timeout=10)
body = response.json()
if not response.ok:
    raise RuntimeError(body["error"]["message"])
print(body["data"])

Response, with lists and long text shortened

{
  "data": {
    "latitude": 11.22189,
    "longitude": 78.16721,
    "pincode": "637001",
    "assembly": {
      "number": 94,
      "name": "Namakkal",
      "reserved": "GEN",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "district": "Namakkal",
      "parliamentNumber": 16,
      "parliamentName": "Namakkal"
    },
    "parliament": {
      "number": 16,
      "name": "Namakkal",
      "nameHindi": "नामाक्कल",
      "reserved": "GEN",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "wikidata": "Q6961238"
    }
  },
  "meta": {
    "source": {
      "name": "Maps of assembly and parliamentary constituencies",
      "url": "https://github.com/datameet/maps/tree/b3fbbde595310b397a55d718e0958ce249a4fa1f",
      "licence": "Assembly boundaries CC BY 2.5 India; parliamentary boundaries (simplified, 2019) CC0",
      "version": "commit b3fbbde59531",
      "retrieved": "2026-10-13",
      "attribution": "Constituency boundaries from the DataMeet India community's maps (assembly: CC BY 2.5 India; parliamentary: CC0)."
    },
    "note": "Boundaries from community maps, approximate near edges. Assembly seats in Arunachal Pradesh, Assam, Jammu and Kashmir, Jharkhand, Manipur and Nagaland predate t…"
  }
}

Data source

Maps of assembly and parliamentary constituencies, commit b3fbbde59531. Retrieved 2026-10-13. Licence: Assembly boundaries CC BY 2.5 India; parliamentary boundaries (simplified, 2019) CC0. Constituency boundaries from the DataMeet India community's maps (assembly: CC BY 2.5 India; parliamentary: CC0).

Using an AI assistant? Connect the MCP server and it can call this API by itself.