# 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.dev`. No API key. Answers are JSON, `{ "data": ..., "meta": { ... } }`, and errors are `{ "error": { "code", "message" } }` with a matching HTTP status. Rate limit: 600 requests a minute per client.

## Constituencies of a place

`GET /v1/constituency`

Parameters:

- `pincode` (query): Indian pincode (the average position of its post offices).
- `lat` (query): Latitude, if no pincode.
- `lng` (query): Longitude, if no pincode.

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

Response, with lists and long text shortened:

```json
{
  "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](https://github.com/datameet/maps/tree/b3fbbde595310b397a55d718e0958ce249a4fa1f), 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).
