Skip to content

Ballotpedia API: Get candidate profile

Looks up a Ballotpedia candidate or officeholder profile by name, with election results, background and published links. An optional state narrows people with the same name; unreported details are left blank.

ballotpedia.org (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Ballotpedia.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Name, requiredname

Candidate or officeholder name, for example Alexandria Ocasio-Cortez.

Alexandria Ocasio-Cortez

State optionalstate

Optional state name or two-letter code to distinguish candidates, for example New York or NY.

Not set

Output

From a run on Oct 31, 2026, shortened for this page.
{  "party": "Democratic Party",  "state": "New York",  "biography": "Alexandria Ocasio-Cortez graduated from Boston University College of Arts & Sciences in 2011 with a Bachelor of Arts degree in international relations and economics. She was a volunteer organizer for Sanders' presidential campaign and worked in former Sen. Ted Kennedy's (D-Mass.) foreign affairs and…",  "elections": [    {      "year": 2026,      "stage": "Primary",      "office": "U.S. House New York District 14",      "result": "Won",      "vote_percentage": 86.9,      "ballotpedia_link": "https://ballotpedia.org/Alexandria_Ocasio-Cortez#2026"    },    {      "year": 2024,      "stage": "General",      "office": "U.S. House New York District 14",      "result": "Won",      "vote_percentage": 68.9,      "ballotpedia_link": "https://ballotpedia.org/Alexandria_Ocasio-Cortez#2024"    },    {      "year": 2024,      "stage": "Primary",      "office": "U.S. House New York District 14",      "result": "Won",      "vote_percentage": 81.8,      "ballotpedia_link": "https://ballotpedia.org/Alexandria_Ocasio-Cortez#2024"    }  ],  "full_name": "Alexandria Ocasio-Cortez",  "photo_link": "https://s3.amazonaws.com/ballotpedia-api4/files/thumbs/200/300/Alexandria_Ocasio-Cortez.jpg",  "office_since": "2019-01-03",  "other_matches": [],  "current_office": "U.S. House New York District 14",  "ballotpedia_link": "https://ballotpedia.org/Alexandria_Ocasio-Cortez",  "campaign_website": "https://www.ocasiocortez.com",  "official_website": "https://ocasio-cortez.house.gov/",  "social_media_links": [    {      "link": "https://www.facebook.com/repAOC/",      "platform": "Facebook",      "account_type": "Official"    },    {      "link": "https://x.com/RepAOC",      "platform": "X",      "account_type": "Official"    },    {      "link": "https://www.instagram.com/repaoc/",      "platform": "Instagram",      "account_type": "Official"    }  ],  "key_positions_or_campaign_themes": [    "During her campaign, Ocasio-Cortez said she supported policies including universal Medicare, free tuition for public college and trade school, 100% renewable energy, abolishing Immigration and Customs Enforcement (ICE) , and a federal jobs guarantee."  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
ballotpedia.org/get_candidate
Returns
full name, party, current office, state, biography, elections, campaign themes, websites, social links, photo, other matches

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method ballotpedia.org/get_candidate with the inputs above.

Ask your agent

  • Pull up the Ballotpedia profile for Raphael Warnock, including his past election results and campaign website.
  • Who is Mark Kelly from Arizona? I need his party, current office, and a short bio.
  • Find the candidate John Smith running in Texas and list his campaign themes and social media accounts.
  • What elections has Gretchen Whitmer run in and what were the results? Check Ballotpedia for her record.
  • Get background info on Katie Porter in CA: photo, official websites, and any other people with the same name.
  • Lists statewide ballot measures in a US state and year, in Ballotpedia order, with election dates, topics, measure types, yes/no vote meanings and results. Years without statewide measures return an empty list.

    ballotpedia.org/list_ballot_measures
  • Looks up a researcher's public ORCID profile by name or ORCID iD, with employment, education, funding and up to 100 works. An institution helps tell namesakes apart; private entries are left out.

    orcid.org/get_researcher
  • Gets a federal candidate's fundraising and spending for a two-year FEC cycle. If several names match, returns the match with the most reported receipts.

    fec.gov/get_candidate_fundraising
  • Finds a film person on IMDb by name, IMDb person link or person ID and returns their biography, awards summary, known-for titles and filmography (without self-appearances, archive footage and thanks).

    imdb.com/get_person
  • Gets the public X profile for a username or profile link, including counts, verification, images and account details. Does not include posts or a timeline.

    x.com/get_profile
  • Looks up a public Bluesky profile by handle or profile link, including bio, audience counts and join date. A bare name first checks its .bsky.social handle, then the top relevant people-search result.

    bsky.app/get_profile
  • Looks up an NBA player by name, including retired players, and returns the bio and regular-season per-game averages for the reported season and career.

    nba.com/get_player
  • Gets a restaurant's public OpenTable profile by name or OpenTable link and city, including ratings, details, menu and photo links. Ratings and other fields can be missing when the restaurant does not publish them.

    opentable.com/get_restaurant