Discover/IndiaVotes API
live

IndiaVotes APIindiavotes.com

Access Lok Sabha and Vidhan Sabha election results, constituency details, candidate search, and party summaries via the IndiaVotes API. Data from 1952 to 2024.

Endpoint health
verified 3d ago
get_pc_states
get_constituency_details
get_lok_sabha_results
get_ac_elections
search_candidates
7/7 passing latest checkself-healing
Endpoints
7
Updated
26d ago

What is the IndiaVotes API?

The IndiaVotes API exposes 7 endpoints covering Indian parliamentary and state assembly election data from 1952 through 2024. Use get_lok_sabha_results to pull national party summaries or drill into constituency-level winner names, vote shares, and margins. Companion endpoints handle candidate search, historical Vidhan Sabha results by state, and ranked candidate breakdowns for individual constituencies.

Try it

No input parameters required.

api.parse.bot/scraper/cb783535-dd58-4206-8ecf-4783e2766dce/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/cb783535-dd58-4206-8ecf-4783e2766dce/get_pc_elections' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace indiavotes-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.indiavotes_election_api import IndiaVotes, ElectionCategory

client = IndiaVotes()

# List all Lok Sabha elections
for election in client.elections.list():
    print(election.year, election.url)

# Get states for the 2024 election
election_2024 = client.election(year="2024")
for state in election_2024.states():
    print(state.slug, state.name)

# Get party-wise national results for 2024
for party in election_2024.party_results(category=ElectionCategory.PC):
    print(party.party, party.seats_won, party.vote_share)

# Get constituency results for Maharashtra
result = election_2024.results(state_slug="maharashtra")
for constituency in result.constituencies:
    print(constituency.constituency, constituency.winner, constituency.vote_share)

# Drill into a specific constituency's candidate details
detail = result.constituencies[0].details(year="2024", state_slug="maharashtra")
for cand in detail.candidates:
    print(cand.rank, cand.candidate, cand.party, cand.votes, cand.share)

# Get assembly elections for a state
maharashtra = client.state(slug="maharashtra")
for ac_election in maharashtra.assembly_elections():
    print(ac_election.year, ac_election.url)

# Search for candidates by name
for candidate in client.candidates.search(name="Modi"):
    print(candidate.name, candidate.party, candidate.constituency, candidate.is_current)
All endpoints · 7 totalmissing one? ·

List all Lok Sabha (Parliamentary) general elections from 1952 to 2024. Returns year and URL path for each election. Use the year value as input to other Lok Sabha endpoints.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "items": "array of election objects with year and url"
  },
  "sample": {
    "data": {
      "items": [
        {
          "url": "/lok-sabha/2024/",
          "year": "2024"
        },
        {
          "url": "/lok-sabha/2019/",
          "year": "2019"
        },
        {
          "url": "/lok-sabha/2014/",
          "year": "2014"
        }
      ]
    },
    "status": "success"
  }
}

About the IndiaVotes API

Lok Sabha Coverage

get_pc_elections returns every Lok Sabha general election year from 1952 to 2024, each with a URL path you pass to downstream endpoints. get_pc_states takes a year parameter and lists the states and union territories that participated, returning a slug and name per state. Feed that slug into get_lok_sabha_results to get constituency-level results — winner name, party, vote share, and margin — or omit it to receive a national party_summary array alongside the full states list.

Vidhan Sabha Coverage

get_ac_elections accepts a state_slug and returns every assembly election year on record for that state. Constituency-level candidate breakdowns — rank, votes, and vote share — are available through get_constituency_details using the category parameter set to 'ac', plus the state_slug and constituency_slug values obtained from earlier calls. The same endpoint handles Lok Sabha constituencies when category is 'pc', and surfaces past_elections data when by-elections occurred.

Party and Candidate Queries

get_all_party_results returns seats won, seats contested, vote share, and total votes at the national level for Lok Sabha (omit state_slug), or party performance within a single state assembly election when category is 'ac' and state_slug is provided. search_candidates runs a fuzzy name match across all current and historical Lok Sabha MPs, returning name, state, party, constituency, url, is_rajya_sabha, and is_current per result — useful for building candidate profile lookups or name-disambiguation workflows.

Reliability & maintenanceVerified

The IndiaVotes API is a managed, monitored endpoint for indiavotes.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when indiavotes.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official indiavotes.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a historical seat-swing tracker by comparing party_summary fields across multiple Lok Sabha election years.
  • Generate per-constituency winner cards using winner name, party, vote share, and margin from get_lok_sabha_results with a state_slug.
  • Identify all candidates who contested a specific constituency using the ranked candidates array from get_constituency_details.
  • Search for a politician by name via search_candidates and surface their party, state, and current-MP status.
  • Map Vidhan Sabha election timelines per state using the year values returned by get_ac_elections.
  • Produce party-performance tables for a state assembly election using seats won, contested, and vote share from get_all_party_results.
  • Detect constituencies where by-elections occurred by checking for the past_elections field in get_constituency_details responses.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does IndiaVotes have an official developer API?+
IndiaVotes does not publish an official developer API or documented data access program. This Parse API provides structured programmatic access to the election data on the site.
What does `get_lok_sabha_results` return differently with and without a state_slug?+
Without state_slug, the endpoint returns a national party_summary array (seats, vote share, total votes per party) and a states list. When you supply a state_slug, it returns a constituencies array with individual constituency winners, party affiliations, vote share, and margin. You cannot get both views in a single call.
Does `search_candidates` cover Rajya Sabha members and candidates from state assembly elections?+
The search index covers Lok Sabha MPs — current and historical — and each result includes an is_rajya_sabha flag and an is_current flag. The documentation notes coverage spans Lok Sabha MPs; Rajya Sabha and Vidhan Sabha candidate search is not explicitly included in the index. You can fork this API on Parse and revise it to add a dedicated assembly-candidate search endpoint.
Can I get voter turnout figures or demographic breakdowns for constituencies?+
Not currently. The endpoints return votes cast, vote share, and margins at the candidate and party level, but turnout rates and demographic data are not exposed as response fields. You can fork this API on Parse and revise it to add an endpoint that surfaces those figures if the source exposes them.
Are election results available for union territories as well as states?+
get_pc_states returns both states and union territories that participated in a given Lok Sabha election year, so union territories with Lok Sabha constituencies are included. Coverage depends on whether the territory had representation in the specific election year queried.
Page content last updated . Spec covers 7 endpoints from indiavotes.com.
Related APIs in Government PublicSee all →
citizenscount.org API
Access candidate profiles, election results, bill details, and policy topics from Citizens Count. Find elected officials by town, retrieve voter education guides, and search across candidates, legislation, and news — all from one structured API.
nseindia.com API
Track live NSE stock prices, monitor indices, analyze option chains, and access corporate announcements with real-time market data from India's National Stock Exchange. View equity quotes with full order books, identify top gainers/losers, analyze 52-week highs/lows, and explore historical price trends all in structured JSON format.
ibef.org API
Access comprehensive reports on Indian industries and states, browse the latest economic news, and get quick facts about India's economy all in one place. Search across thousands of resources to find detailed insights on specific sectors, regions, and economic trends.
indeed.co.in API
Search for jobs across Indeed India and access detailed information about listings, companies, salaries, and locations to help with your job hunt. Get autocomplete suggestions for job titles and places, plus salary guides and company details to make informed career decisions.
tradeindia.com API
Search and discover products, suppliers, and their contact information on TradeIndia's B2B marketplace. Browse product categories, find supplier profiles, and explore upcoming tradeshows and industry events — including locations, dates, venues, and organizer details.
ecourtsindia.com API
Search and retrieve detailed information about court cases across India's Supreme Court, High Courts, and District Courts from a database of over 239 million cases. Find case details, track legal proceedings, and access comprehensive court records to stay informed about judicial matters across the Indian court system.
csr.gov.in API
Search and analyze India's corporate social responsibility initiatives by accessing company CSR spending, project details, and financial contributions broken down by state, sector, and year. Track top CSR performers, compare spending amounts across companies, and explore how businesses are investing in social causes nationwide.
in.indeed.com API
in.indeed.com API