Public records provider · 4 capabilities
Pennsylvania Mail Ballot Counts (data.pa.gov) API for AI agents and assistants
Pennsylvania mail-in and absentee ballot counts (early votes) from the Pennsylvania Department of State's mail ballot request files on the state open data portal data.pa.gov, extracted daily from the Statewide Uniform Registry of Electors (SURE). Applications, approved and declined applications, ballots sent, ballots returned, votes recorded, cancelled and outstanding ballots, statewide, by party, by method and application type, by county, by congressional, state senate and state house district, and returns per day. Covers the 2026 general election (November 3, 2026; dataset nbwd-pfn4, updated daily) and, for comparison, the final 2024 (3q5t-ddp8) and 2022 (uhfm-zhus) general election files. Every count is aggregated by the portal (SoQL count/sum with group by); the program never returns voter-level rows, birth dates or coordinates. Public Domain U.S. Government; each response carries the dataset, its load time (as_of) and licence. Available to your AI agents via Firecrawl Alexandria.
Try Pennsylvania Mail Ballot Counts (data.pa.gov) with
Firecrawl Alexandria
Choose an example or ask your own question.
Capabilities
Pennsylvania Mail Ballot Counts (data.pa.gov) API capabilities via Firecrawl Alexandria
4 capabilities your agent can call with one Firecrawl API key. Open one to try it below.
- Mail ballot summaryStatewide Pennsylvania mail ballot (mail-in and absentee) counts for a general election from the Department of State's daily SURE extract on data.pa.gov: applications, approved, declined, ballots sent, ballots returned (early votes received), votes recorded, cancelled and outstanding, with the same counts by party (DEM, REP, OTH, LIB, GRN), by method (mail_in, absentee, military_overseas, alternative) and by application type code (MAILIN, OLMAILV, OLMAILNV, REG, CVO...). as_of is the file's load time. Counts are aggregated server-side with SoQL count/sum over the voter-level file; no voter rows, birth dates or coordinates are returned. County data entry practices differ and counties keep processing through and after Election Day, so day-to-day changes can be large.5 credits
- Mail ballots by countyPennsylvania mail ballot counts per county for a general election (one county or all 67), each with applications, approved, declined, sent, returned (early votes received), votes recorded, cancelled and outstanding, and the same counts by party. One grouped SODA request on the Department of State's mail ballot file; as_of is the file's load time. An unknown county is not_found. Counts are aggregated server-side with SoQL count/sum over the voter-level file; no voter rows, birth dates or coordinates are returned. County data entry practices differ and counties keep processing through and after Election Day, so day-to-day changes can be large.5 credits
- Mail ballots by districtPennsylvania mail ballot counts per legislative district for a general election: congressional (17), state_senate (50) or state_house (203), one district or all, each with applications, approved, declined, sent, returned (early votes received), votes recorded, cancelled and outstanding, and the same counts by party. Districts are the voter's districts as recorded in SURE; a few applications with no district are reported with district null. A district number beyond the chamber's seats is not_found. Counts are aggregated server-side with SoQL count/sum over the voter-level file; no voter rows, birth dates or coordinates are returned. County data entry practices differ and counties keep processing through and after Election Day, so day-to-day changes can be large.5 credits
- Mail ballots returned by dayDaily series of Pennsylvania mail ballots returned for a general election, by the date the county marked each ballot received (ballotreturneddate), statewide or for one county and/or one party, with a running cumulative total. One grouped SODA request; days with no returns are absent. as_of is the file's load time; the latest day is usually partial because the file is extracted early in the day. Counts are aggregated server-side with SoQL count/sum over the voter-level file; no voter rows, birth dates or coordinates are returned. County data entry practices differ and counties keep processing through and after Election Day, so day-to-day changes can be large.5 credits
Playground
Try the Pennsylvania Mail Ballot Counts (data.pa.gov) API via Firecrawl Alexandria
Pick a capability, fill in its inputs and run it, or copy the JavaScript, Python, cURL or CLI code.
const result = await firecrawl.scrape({
alexandria: {
provider: "data-pa-gov",
capability: "elections/mail_ballots_by_county",
options: {
county: "Philadelphia",
},
},
});This is a sample shape. Press Run to see live data from Pennsylvania Mail Ballot Counts (data.pa.gov).
{
"count": 1,
"counties": [
{
"applications": 134241,
"approved": 130236,
"ballots_returned": 90520,
"ballots_sent": 129554,
"by_party": [
{
"applications": 113792,
"approved": 110390,
"ballots_returned": 78026,
"ballots_sent": 109805,
"cancelled": 3521,
"declined": 3402,
"outstanding": 28847,
"party": "DEM",
"votes_recorded": 77437
},
{
"applications": 7666,
"approved": 7453,
"ballots_returned": 5251,
"ballots_sent": 7403,
"cancelled": 243,
"declined": 213,
"outstanding": 1957,
"party": "REP",
"votes_recorded": 5183
},
{
"applications": 12317,
"approved": 11949,
"ballots_returned": 7009,
"ballots_sent": 11903,
"cancelled": 367,
"declined": 368,
"outstanding": 4572,
"party": "OTH",
"votes_recorded": 6944
},
{
"applications": 252,
"approved": 243,
"ballots_returned": 124,
"ballots_sent": 243,
"cancelled": 7,
"declined": 9,
"outstanding": 112,
"party": "LIB",
"votes_recorded": 123
},
{
"applications": 214,
"approved": 201,
"ballots_returned": 110,
"ballots_sent": 200,
"cancelled": 3,
"declined": 13,
"outstanding": 88,
"party": "GRN",
"votes_recorded": 109
}
],
"cancelled": 4141,
"county": "PHILADELPHIA",
"declined": 4005,
"outstanding": 35576,
"votes_recorded": 89796
}
],
"county_filter": "PHILADELPHIA",
"dataset": {
"as_of": "2026-10-30T13:09:57Z",
"id": "nbwd-pfn4",
"name": "2026 General Election Mail Ballot Requests Department of State",
"portal": "data.pa.gov",
"url": "https://data.pa.gov/d/nbwd-pfn4"
},
"election": {
"election_day": "2026-11-03",
"id": "2026-general",
"name": "2026 General Election"
},
"license": {
"attribution": "Pennsylvania Department of State, 2026 General Election Mail Ballot Requests Department of State (https://data.pa.gov/d/nbwd-pfn4)",
"name": "Public Domain U.S. Government",
"url": "https://www.usa.gov/government-works"
},
"observed_at_ms": 1793378936939,
"source_url": "https://data.pa.gov/resource/nbwd-pfn4.json?%24select=upper%28countyname%29+as+county%2Ccase%28party+in%28%27D%27%2C%27DEM%27%29%2C%27DEM%27%2Cparty+in%28%27R%27%2C%27REP%27%29%2C%27REP%27%2Cparty+in%28%27LN%27%2C%27LIB%27%29%2C%27LIB%27%2Cparty+in%28%27GR%27%2C%27GRN%27%29%2C%27GRN%27%2Ctrue%2C%27OTH%27%29+as+party_group%2Ccount%28*%29+as+applications%2Csum%28case%28ballot_application_disposition%3D%27Approved%27%2C1%2Ctrue%2C0%29%29+as+approved%2Csum%28case%28ballot_application_disposition%3D%27Declined%27%2C1%2Ctrue%2C0%29%29+as+declined%2Ccount%28ballotsentdate%29+as+ballots_sent%2Ccount%28ballotreturneddate%29+as+ballots_returned%2Csum%28case%28ballot_status%3D%27Vote+Recorded%27%2C1%2Ctrue%2C0%29%29+as+votes_recorded%2Csum%28case%28ballot_status%3D%27Cancelled%27%2C1%2Ctrue%2C0%29%29+as+cancelled%2Csum%28case%28ballotsentdate+IS+NOT+NULL+AND+ballotreturneddate+IS+NULL+AND+%28ballot_status+IS+NULL+OR+ballot_status+%21%3D+%27Cancelled%27%29%2C1%2Ctrue%2C0%29%29+as+outstanding&%24where=upper%28countyname%29+%3D+%27PHILADELPHIA%27&%24group=county%2Cparty_group&%24order=county%2Cparty_group&%24limit=5000"
}Connect
Use the Pennsylvania Mail Ballot Counts (data.pa.gov) API in your agent via Firecrawl Alexandria
Connect Firecrawl once and your agent can call Pennsylvania Mail Ballot Counts (data.pa.gov) and every other provider in Alexandria.
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 Mail Ballot Counts (data.pa.gov) and every other provider in Alexandria.
02
Ask in plain language
Tell your agent what you need from Pennsylvania Mail Ballot Counts (data.pa.gov). Alexandria finds the capability that fits, and your agent runs it.
Mail ballot summary5 credits
Mail ballots by county5 credits
Mail ballots by district5 credits
One Firecrawl billFirecrawl credits03
Pay per use
Each Pennsylvania Mail Ballot Counts (data.pa.gov) 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 Mail Ballot Counts (data.pa.gov) through Alexandria instead of a one-off integration.
- 01
One key for every provider
- No separate Pennsylvania Mail Ballot Counts (data.pa.gov) 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.
- 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.
- 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.
- 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 Mail Ballot Counts (data.pa.gov) capabilities when a request opts in; Pennsylvania Mail Ballot Counts (data.pa.gov)'s own retention policy still applies. ZDR searches leave out Alexandria provider results, so call the capability directly.
Benchmarks
Pennsylvania Mail Ballot Counts (data.pa.gov) API benchmarks via Firecrawl Alexandria
Quality, speed and cost, last 24 hours, across every agent call to Pennsylvania Mail Ballot Counts (data.pa.gov) through Alexandria.
Fewer than 20 calls in the last 24 hours, so there is not enough to report yet.
FAQ
Pennsylvania Mail Ballot Counts (data.pa.gov) API via Firecrawl Alexandria FAQs
- What is Firecrawl Alexandria?
- Firecrawl Alexandria is Firecrawl's library of data providers for AI agents, Pennsylvania Mail Ballot Counts (data.pa.gov) 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 Mail Ballot Counts (data.pa.gov) 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 Mail Ballot Counts (data.pa.gov) and calls it. From your own code, search Alexandria for the Pennsylvania Mail Ballot Counts (data.pa.gov) 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 Mail Ballot Counts (data.pa.gov) integration code.
- Do I need a Pennsylvania Mail Ballot Counts (data.pa.gov) account or API key?
- No. Calls to Pennsylvania Mail Ballot Counts (data.pa.gov) run through Alexandria and are billed in Firecrawl credits, so you don't need a separate Pennsylvania Mail Ballot Counts (data.pa.gov) account, contract or API key.
- How much does the Pennsylvania Mail Ballot Counts (data.pa.gov) API cost through Alexandria?
- Each call costs 5 Firecrawl credits. The capabilities list on this page shows the price of each one, and finding the right capability is free.
- Can I combine Pennsylvania Mail Ballot Counts (data.pa.gov) with other data providers?
- Yes. Your agent can call Pennsylvania Mail Ballot Counts (data.pa.gov) alongside the live web and any other provider in Alexandria, with the same Firecrawl account.
- Does Pennsylvania Mail Ballot Counts (data.pa.gov) support zero data retention?
- Yes. Every Pennsylvania Mail Ballot Counts (data.pa.gov) capability can run under zero data retention on Firecrawl's side when a request opts in. That covers Firecrawl's retention only: Pennsylvania Mail Ballot Counts (data.pa.gov)'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
Related providers in Alexandria
Other Public records providers, on the same Firecrawl API key.