Developers

Polity Data API

Read-only JSON for elections, candidates, results, people, constituencies, parties and states. Every object carries its source, classification and last verification date.

Access

  • Without a key: 60 requests an hour per IP address, for trying it out.
  • With a key: your plan's monthly allowance (1,000 requests on the free plan; more on Pro, Research, Team and the API plans). Send the key as X-API-Key or Authorization: Bearer. Each response carries X-Quota-Remaining.

Get an API key API plans

Endpoints

PathFilters
elections/year, kind (lok_sabha, assembly, by_election), state
candidates/election, constituency, party, person, state, year, winner=true
results/election, constituency
people/ · people/<slug>/—
constituencies/ · parties/ · states/ · projects/—

Lists are paginated: ?page= and ?page_size= (up to 500).

Example

curl -H "X-API-Key: pol_…" "https://polity.thedatashop.in/api/v1/candidates/?election=bihar-assembly-election-2025&winner=true"

Base URL: https://polity.thedatashop.in/api/v1/

Data Source confidence: High · Official source Source: Election Commission of India, Lok Sabha (Digital Sansad), Rajya Sabha (Digital Sansad), Wikidata Updated How we source data