Discover/indiavotes.com API
live

indiavotes.com APIindiavotes.com

Access Indian Lok Sabha and Vidhan Sabha election results, constituency details, candidate search, and party performance data via the IndiaVotes API.

Endpoints
7
Updated
14d ago
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.
Use it in your codegrab 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'
All endpoints · 7 totalclick to expand

Get available Lok Sabha (Parliamentary) election years and their IDs. Returns all elections from 1952 to present.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "data": "array of election objects with id and year",
    "status": "string indicating success"
  },
  "sample": {
    "data": [
      {
        "id": "18",
        "year": "2024"
      },
      {
        "id": "17",
        "year": "2019"
      },
      {
        "id": "16",
        "year": "2014"
      }
    ],
    "status": "success"
  }
}

About the indiavotes.com API

The IndiaVotes API covers 7 endpoints exposing Indian parliamentary and assembly election data from 1952 to the present. Use get_lok_sabha_results to retrieve party summaries and constituency-level outcomes for any Lok Sabha year, or search_candidates to look up a candidate's full electoral history across name, party, constituency, and vote share.

Election Index and State Coverage

get_pc_elections returns the full list of Lok Sabha election objects, each with an id and year, spanning every general election from 1952 onward. Once you have an election_id, get_pc_states maps it to the states that participated, returning id and value (state name) for each. For assembly elections, get_ac_elections accepts a state_id and returns the Vidhan Sabha election history for that state. These three endpoints form the lookup layer that drives all downstream queries.

Results and Constituency Detail

get_lok_sabha_results accepts a year and an optional state_id (pass '0' for all states) and returns two blocks: summary — an array of party-level aggregates — and constituencies — an array of seat-level outcomes including winner, margin, and URL slugs needed for drilling down. get_constituency_details accepts year, category ('pc' or 'ac'), state_id, detail_id, const_slug, state_slug, and election_id, and returns a metadata object with constituency metadata plus a candidates array covering every candidate's votes, percentage, rank, and party.

Candidate Search and Party Aggregates

search_candidates takes a free-text name and a category, with an optional state_id for assembly searches. The response array includes Candidate Name, Year, PC Name, State, Votes, %Votes, Rank, and Party across all matching elections — useful for tracking a politician's results across multiple cycles. get_all_party_results shifts focus to the party level: for Lok Sabha queries it returns contestants, wins, second-place finishes, thirds, and vote percentages; for Vidhan Sabha it returns seats won and vote percentage per party.

Common use cases
  • Build a dashboard tracking a politician's vote share and rank across every election cycle using search_candidates.
  • Compare party seat tallies and contestant counts between two Lok Sabha elections with get_all_party_results.
  • Generate state-level election result summaries filtered by state_id via get_lok_sabha_results.
  • Show margin-of-victory and candidate breakdowns for a specific constituency using get_constituency_details.
  • List all Vidhan Sabha elections held in a given state and their IDs via get_ac_elections for historical analysis.
  • Map party performance across constituencies in a single state for a given election year.
  • Power an election-results API for a news portal covering both parliamentary and assembly elections.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 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 a documented public developer API. This Parse API provides structured programmatic access to the election data available on indiavotes.com.
What does `get_constituency_details` return, and which parameters are required?+
get_constituency_details requires year, category, state_id, detail_id, const_slug, state_slug, and election_id. It returns a metadata object with constituency-level context and a candidates array where each entry includes the candidate's name, party, total votes, vote percentage, and finishing rank. The detail_id and slug values are obtained from the constituencies array in a prior get_lok_sabha_results call.
Does `search_candidates` work for both Lok Sabha and Vidhan Sabha elections?+
Yes. Pass category as 'pc' for Lok Sabha or 'ac' for Vidhan Sabha. For assembly searches, state_id is required. Results include Year, PC Name, State, Votes, %Votes, Rank, and Party for each matching record.
Are voter demographics, turnout breakdowns, or EVM data included?+
Not currently. The API covers election results, party aggregates, candidate vote counts, and constituency metadata. Demographic breakdowns, booth-level turnout, or EVM data are not part of the current response fields. You can fork this API on Parse and revise it to add endpoints targeting those data dimensions if they become available in the source.
How far back does historical election data go, and are by-election results included?+
get_pc_elections returns Lok Sabha elections from 1952 to the present. By-election (mid-term) results are not currently returned as a distinct category. You can fork this API on Parse and revise it to add a dedicated by-election endpoint if that coverage is needed.
Page content last updated . Spec covers 7 endpoints from indiavotes.com.
Related APIs in Government PublicSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
maradminbot.com API
Search and retrieve official Marine Corps MARADMIN announcements from Marines.mil, filtering by year, status, and keyword to stay updated on the latest personnel and administrative directives. Get detailed information about specific announcements by number or browse the most recent updates to ensure you never miss critical Marine Corps guidance.
13f.info API
13f.info API
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.