Public records provider

Pennsylvania election returns API for AI agents and assistants

Pennsylvania Department of State's official election returns site (www.electionreturns.pa.gov): the newest results pages of the active or a chosen election, the summary page, one page per office and district (US Senate, US House districts, governor, statewide row offices, state Senate and House districts) and one page per county, in the shared latest-feed shape. Page metadata only; no vote counts. Available to your AI agents via Firecrawl Alexandria.

Sign up to use Pennsylvania election returns
Sign in

Try Pennsylvania election returns with
Firecrawl Alexandria

Choose an example or ask your own question.

Pennsylvania election returns
TRY ASKING

Playground

Try the Pennsylvania election returns API via Firecrawl Alexandria

Pick a capability, fill in its inputs and run it, or copy the JavaScript, Python, cURL or CLI code.

Latest
1Request
string

<ElectionID>:<type> from the site's URLs (ElectionID and ElectionType), e.g. 105:G for the 2024 general election. Omit for the active election. An election the site does not list is not_found.

string

Keep one category: election (summary page), senate (US Senate), house (US House districts), governor, state (other statewide offices and state legislative districts), county (county results pages).

number

Maximum items (1-100).

1 credit
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "electionreturns-pa-gov",
    capability: "elections/latest",
    options: {
      limit: 5,
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from Pennsylvania election returns.

categorypublishedAtsourcetitleurl
electionelectionreturns.pa.gov2026 General Election resultselectionreturns.pa.gov/General/SummaryResults?ElectionID=117&ElectionType=G&IsActive=1
governorelectionreturns.pa.govGovernor | 2026 General Electionelectionreturns.pa.gov/General/OfficeResults?OfficeID=3&districtId=1&ElectionID=117&ElectionType=G&IsActive=1
houseelectionreturns.pa.govelectionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=2&ElectionID=117&ElectionType=G&IsActive=1
houseelectionreturns.pa.govelectionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=3&ElectionID=117&ElectionType=G&IsActive=1
houseelectionreturns.pa.govelectionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=4&ElectionID=117&ElectionType=G&IsActive=1

Connect

Use the Pennsylvania election returns API in your agent via Firecrawl Alexandria

Connect Firecrawl once and your agent can call Pennsylvania election returns and every other provider in Alexandria.

  1. Setup guide for

    01

    Connect your agent to Firecrawl Alexandria

    Add Firecrawl to Claude, ChatGPT, Cursor or your own agent, signed in on a team with Alexandria enabled. One API key from that team reaches Pennsylvania election returns and every other provider in Alexandria.

  2. 02

    Ask in plain language

    Tell your agent what you need from Pennsylvania election returns. Alexandria finds the capability that fits, and your agent runs it.

    • Latest1 credit
    One Firecrawl billFirecrawl credits

    03

    Pay per use

    Each Pennsylvania election returns call costs Firecrawl credits, all on one Firecrawl bill, so you pay only for what your agent uses.

Why Alexandria

Why use Firecrawl Alexandria

What you get when your agent calls Pennsylvania election returns through Alexandria instead of a one-off integration.

  • API KEYfc-••••3f2aPennsylvania el…Web searchScrapeData providers
    01

    One key for every provider

    • No separate Pennsylvania election returns account, contract or API key. Calls are billed in Firecrawl credits.
    • The same key reaches Alexandria's data providers plus Firecrawl's web search and scraping.
  • CAPABILITYelections/latestINelectionstringINfilterstringOUTresponsejson
    02

    Built for agents

    • Every capability has documented inputs and outputs your agent can read before it calls.
    • Searching Alexandria for the capability that fits is free, through MCP, the CLI or the API.
  • NOT ENOUGH CALLS TO BENCHMARK YETQualitySpeedCost
    03

    Measured in public

    • Quality, speed and cost benchmarks come from real agent calls across every Alexandria user.
    • Category benchmarks compare providers side by side, so you can see which one works best.
  • SOC 2 TYPE IIOPT-IN ZERO DATA RETENTION
    04

    Secure by default

    • Firecrawl is SOC 2 Type II compliant, and the annual renewal audit is in progress.
    • Zero data retention on Firecrawl's side is available on supported Pennsylvania election returns capabilities when a request opts in; Pennsylvania election returns's own retention policy still applies. ZDR searches leave out Alexandria provider results, so call the capability directly.

Benchmarks

Pennsylvania election returns API benchmarks via Firecrawl Alexandria

Quality, speed and cost, last 24 hours, across every agent call to Pennsylvania election returns through Alexandria.

Fewer than 20 calls in the last 24 hours, so there is not enough to report yet.

FAQ

Pennsylvania election returns API via Firecrawl Alexandria FAQs

What is Firecrawl Alexandria?
Firecrawl Alexandria is Firecrawl's library of data providers for AI agents, Pennsylvania election returns among them. Each provider returns structured data through documented capabilities, and your agent reaches all of them, along with Firecrawl's web search and scraping, from Claude, ChatGPT, Cursor, the MCP server, the CLI or the API. Alexandria needs a Firecrawl account on a team with Alexandria enabled, or an API key from one; keyless connections don't include it.
How do I use the Pennsylvania election returns API with Firecrawl Alexandria?
Connect Firecrawl to Claude, ChatGPT, Cursor or another AI tool, signed in on a team with Alexandria enabled, and ask for what you need: your agent searches Alexandria, finds Pennsylvania election returns and calls it. From your own code, search Alexandria for the Pennsylvania election returns capability you need with the Firecrawl API, SDKs or CLI, then call it with your API key. Either way you don't write any Pennsylvania election returns integration code.
Do I need a Pennsylvania election returns account or API key?
No. Calls to Pennsylvania election returns run through Alexandria and are billed in Firecrawl credits, so you don't need a separate Pennsylvania election returns account, contract or API key.
How much does the Pennsylvania election returns API cost through Alexandria?
Each call costs 1 Firecrawl credit. The workbench on this page shows the price, and finding the right capability is free.
Can I combine Pennsylvania election returns with other data providers?
Yes. Your agent can call Pennsylvania election returns alongside the live web and any other provider in Alexandria, with the same Firecrawl account.
Does Pennsylvania election returns support zero data retention?
Yes. Every Pennsylvania election returns capability can run under zero data retention on Firecrawl's side when a request opts in. That covers Firecrawl's retention only: Pennsylvania election returns's own retention policy still applies, and requests that don't opt in are retained as usual. ZDR searches leave out Alexandria provider results, so call the capability directly.

Related

Other Public records providers, on the same Firecrawl API key.

//
Get started
//
Give your agent Pennsylvania election returns.
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options