---
type: "firecrawl-provider"
description: "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."
use_when: "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."
categories: "Public records"
capabilities: 4
credits_per_call: 5
---
# Pennsylvania Mail Ballot Counts (data.pa.gov) on Firecrawl Alexandria

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.

- Categories: Public records
- Category index: [Public records category](https://alexandria.firecrawl.dev/agents/categories/public-records)
- Provider key: `data-pa-gov`
- Access: Firecrawl credits
- Cost: 5 credits per call

## More

- [Human guide](https://www.firecrawl.dev/app/alexandria/data-pa-gov)
- [OpenAPI spec](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/openapi.json)

## Capabilities

- [Mail ballot summary](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballot_summary): Statewide 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.
- [Mail ballots by county](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballots_by_county): Pennsylvania 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.
- [Mail ballots by district](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballots_by_district): Pennsylvania 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.
- [Mail ballots returned by day](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballots_returned_by_day): Daily 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.

## 1. Choose this provider when

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.

## 2. Minimal request

Call `POST https://api.firecrawl.dev/v2/scrape` with `{ alexandria: { provider, capability, options } }`. For a batch, send `{ alexandria: [...] }` with up to 10 calls.

```json
{
  "provider": "data-pa-gov",
  "capability": "elections/mail_ballot_summary",
  "options": {}
}
```

## 3. Add provider options

Use only the options needed for the task:

- `election` (string): Which general election's mail ballot file to read: 2026-general (nbwd-pfn4, updated daily through the canvass), 2024-general (3q5t-ddp8, final) or 2022-general (uhfm-zhus, final; no ballot status or disposition, so approved, declined, votes_recorded and cancelled are null). Example: `2026-general`

## 4. Request through your preferred interface

### JavaScript

```javascript
const result = await firecrawl.scrape({
  alexandria: {
    provider: "data-pa-gov",
    capability: "elections/mail_ballot_summary",
    options: {},
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "data-pa-gov",
  "capability": "elections/mail_ballot_summary",
  "options": {}
})
```

### cURL

```sh
curl https://api.firecrawl.dev/v2/scrape \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "alexandria": {
    "provider": "data-pa-gov",
    "capability": "elections/mail_ballot_summary",
    "options": {}
  }
}'
```

### CLI

```sh
firecrawl scrape 'data-pa-gov/elections/mail_ballot_summary' \
  --options '{}'
```


### MCP

Call the FCX MCP retrieve tool with this object:

```json
{
  "provider": "data-pa-gov",
  "capability": "elections/mail_ballot_summary",
  "options": {}
}
```

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "data-pa-gov",
  "capability": "elections/mail_ballot_summary",
  "options": {}
}
```

## 6. Response data

The response includes `success`, `provider`, `capability`, `creditsCost` and `data`. This example shows the provider payload in `data`:

```json
{
  "by_application_type": [
    {
      "applications": 693715,
      "approved": 689026,
      "ballots_returned": 573700,
      "ballots_sent": 684100,
      "cancelled": 16830,
      "code": "MAILIN",
      "declined": 4689,
      "label": "Mail-in submitted via paper",
      "method": "mail_in",
      "outstanding": 99308,
      "votes_recorded": 569833
    },
    {
      "applications": 396268,
      "approved": 391602,
      "ballots_returned": 310410,
      "ballots_sent": 389281,
      "cancelled": 11068,
      "code": "OLMAILNV",
      "declined": 4666,
      "label": "Mail-in submitted online, ID not verified at submission",
      "method": "mail_in",
      "outstanding": 70237,
      "votes_recorded": 309530
    },
    {
      "applications": 268202,
      "approved": 221529,
      "ballots_returned": 112007,
      "ballots_sent": 221029,
      "cancelled": 3535,
      "code": "OLMAILV",
      "declined": 46673,
      "label": "Mail-in submitted online, ID verified at submission",
      "method": "mail_in",
      "outstanding": 105847,
      "votes_recorded": 111495
    },
    {
      "applications": 7232,
      "approved": 7210,
      "ballots_returned": 2978,
      "ballots_sent": 7192,
      "cancelled": 347,
      "code": "F",
      "declined": 22,
      "label": "Federal voter (federal races only)",
      "method": "military_overseas",
      "outstanding": 3893,
      "votes_recorded": 2957
    },
    {
      "applications": 7107,
      "approved": 7101,
      "ballots_returned": 2939,
      "ballots_sent": 7081,
      "cancelled": 278,
      "code": "CVO",
      "declined": 6,
      "label": "Overseas voter",
      "method": "military_overseas",
      "outstanding": 3884,
      "votes_recorded": 2931
    },
    {
      "applications": 6384,
      "approved": 6320,
      "ballots_returned": 4675,
      "ballots_sent": 6247,
      "cancelled": 260,
      "code": "REG",
      "declined": 64,
      "label": "Absentee submitted via paper",
      "method": "absentee",
      "outstanding": 1378,
      "votes_recorded": 4648
    },
    {
      "applications": 4913,
      "approved": 4263,
      "ballots_returned": 2785,
      "ballots_sent": 4257,
      "cancelled": 81,
      "code": "OLREGV",
      "declined": 650,
      "label": "Absentee submitted online, ID verified at submission",
      "method": "absentee",
      "outstanding": 1396,
      "votes_recorded": 2779
    },
    {
      "applications": 2225,
      "approved": 2223,
      "ballots_returned": 841,
      "ballots_sent": 2210,
      "cancelled": 67,
      "code": "M",
      "declined": 2,
      "label": "Military",
      "method": "military_overseas",
      "outstanding": 1311,
      "votes_recorded": 838
    },
    {
      "applications": 628,
      "approved": 627,
      "ballots_returned": 358,
      "ballots_sent": 619,
      "cancelled": 1,
      "code": "C",
      "declined": 1,
      "label": "Emergency absentee",
      "method": "absentee",
      "outstanding": 265,
      "votes_recorded": 357
    },
    {
      "applications": 287,
      "approved": 287,
      "ballots_returned": 217,
      "ballots_sent": 285,
      "cancelled": 10,
      "code": "CIV",
      "declined": 0,
      "label": "Civilian absentee submitted via paper",
      "method": "absentee",
      "outstanding": 60,
      "votes_recorded": 217
    },
    {
      "applications": 282,
      "approved": 233,
      "ballots_returned": 127,
      "ballots_sent": 226,
      "cancelled": 13,
      "code": "OLREGNV",
      "declined": 49,
      "label": "Absentee submitted online, ID not verified at submission",
      "method": "absentee",
      "outstanding": 91,
      "votes_recorded": 124
    },
    {
      "applications": 12,
      "approved": 12,
      "ballots_returned": 6,
      "ballots_sent": 11,
      "cancelled": 0,
      "code": "CRI",
      "declined": 0,
      "label": "Overseas voter, remote or isolated",
      "method": "military_overseas",
      "outstanding": 5,
      "votes_recorded": 6
    },
    {
      "applications": 9,
      "approved": 5,
      "ballots_returned": 0,
      "ballots_sent": 0,
      "cancelled": 0,
      "code": null,
      "declined": 4,
      "label": null,
      "method": "other",
      "outstanding": 0,
      "votes_recorded": 0
    },
    {
      "applications": 6,
      "approved": 6,
      "ballots_returned": 5,
      "ballots_sent": 6,
      "cancelled": 0,
      "code": "MRI",
      "declined": 0,
      "label": "Military, remote or isolated",
      "method": "military_overseas",
      "outstanding": 1,
      "votes_recorded": 5
    },
    {
      "applications": 2,
      "approved": 2,
      "ballots_returned": 2,
      "ballots_sent": 2,
      "cancelled": 0,
      "code": "ALT",
      "declined": 0,
      "label": "Alternative ballot (disabled or 65 and older, polling place not accessible)",
      "method": "alternative",
      "outstanding": 0,
      "votes_recorded": 2
    },
    {
      "applications": 1,
      "approved": 1,
      "ballots_returned": 1,
      "ballots_sent": 1,
      "cancelled": 0,
      "code": "PMI",
      "declined": 0,
      "label": "Mail-in, permanent status requested",
      "method": "mail_in",
      "outstanding": 0,
      "votes_recorded": 1
    },
    {
      "applications": 1,
      "approved": 1,
      "ballots_returned": 1,
      "ballots_sent": 1,
      "cancelled": 0,
      "code": "V",
      "declined": 0,
      "label": "Veteran",
      "method": "military_overseas",
      "outstanding": 0,
      "votes_recorded": 1
    }
  ],
  "by_method": [
    {
      "applications": 1358186,
      "approved": 1302158,
      "ballots_returned": 996118,
      "ballots_sent": 1294411,
      "cancelled": 31433,
      "declined": 56028,
      "method": "mail_in",
      "outstanding": 275392,
      "votes_recorded": 990859
    },
    {
      "applications": 12494,
      "approved": 11730,
      "ballots_returned": 8162,
      "ballots_sent": 11634,
      "cancelled": 365,
      "declined": 764,
      "method": "absentee",
      "outstanding": 3190,
      "votes_recorded": 8125
    },
    {
      "applications": 16583,
      "approved": 16553,
      "ballots_returned": 6770,
      "ballots_sent": 16501,
      "cancelled": 692,
      "declined": 30,
      "method": "military_overseas",
      "outstanding": 9094,
      "votes_recorded": 6738
    },
    {
      "applications": 2,
      "approved": 2,
      "ballots_returned": 2,
      "ballots_sent": 2,
      "cancelled": 0,
      "declined": 0,
      "method": "alternative",
      "outstanding": 0,
      "votes_recorded": 2
    },
    {
      "applications": 9,
      "approved": 5,
      "ballots_returned": 0,
      "ballots_sent": 0,
      "cancelled": 0,
      "declined": 4,
      "method": "other",
      "outstanding": 0,
      "votes_recorded": 0
    }
  ],
  "by_party": [
    {
      "applications": 890694,
      "approved": 852207,
      "ballots_returned": 655612,
      "ballots_sent": 847147,
      "cancelled": 21047,
      "declined": 38487,
      "outstanding": 175879,
      "party": "DEM",
      "votes_recorded": 652509
    },
    {
      "applications": 338904,
      "approved": 328953,
      "ballots_returned": 255621,
      "ballots_sent": 326778,
      "cancelled": 8309,
      "declined": 9951,
      "outstanding": 65430,
      "party": "REP",
      "votes_recorded": 253937
    },
    {
      "applications": 152551,
      "approved": 144508,
      "ballots_returned": 97006,
      "ballots_sent": 143861,
      "cancelled": 3023,
      "declined": 8043,
      "outstanding": 44503,
      "party": "OTH",
      "votes_recorded": 96491
    },
    {
      "applications": 3512,
      "approved": 3297,
      "ballots_returned": 1948,
      "ballots_sent": 3289,
      "cancelled": 79,
      "declined": 215,
      "outstanding": 1277,
      "party": "LIB",
      "votes_recorded": 1930
    },
    {
      "applications": 1613,
      "approved": 1483,
      "ballots_returned": 865,
      "ballots_sent": 1473,
      "cancelled": 32,
      "declined": 130,
      "outstanding": 587,
      "party": "GRN",
      "votes_recorded": 857
    }
  ],
  "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": 1793378936930,
  "source_urls": [
    "https://data.pa.gov/resource/nbwd-pfn4.json?%24select=case%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&%24group=party_group&%24order=party_group&%24limit=5000",
    "https://data.pa.gov/resource/nbwd-pfn4.json?%24select=mailapplicationtype+as+application_type%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&%24group=application_type&%24order=application_type&%24limit=5000"
  ],
  "totals": {
    "applications": 1387274,
    "approved": 1330448,
    "ballots_returned": 1011052,
    "ballots_sent": 1322548,
    "cancelled": 32490,
    "declined": 56826,
    "outstanding": 287676,
    "votes_recorded": 1005724
  }
}
```

## API reference-derived contract

The following capability contract is generated from the same normalized Alexandria API reference exposed in the API spec.

### Mail ballot summary

- Capability: `elections/mail_ballot_summary`
- Description: Statewide 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.
- Instructions: How many Pennsylvania mail ballots have been requested, sent and returned so far, the party split of returned ballots, or a comparison with 2024 or 2022 at the end of their canvass. Then mail_ballots_by_county or mail_ballots_by_district for geography and mail_ballots_returned_by_day for the pace.
- Cost: 5 credits per call
- Capability file: [Mail ballot summary](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballot_summary)

Accepted options:
- `election` (string): Which general election's mail ballot file to read: 2026-general (nbwd-pfn4, updated daily through the canvass), 2024-general (3q5t-ddp8, final) or 2022-general (uhfm-zhus, final; no ballot status or disposition, so approved, declined, votes_recorded and cancelled are null). Example: `2026-general`

Response schema example:
```json
{
  "by_application_type": [
    {
      "applications": 693715,
      "approved": 689026,
      "ballots_returned": 573700,
      "ballots_sent": 684100,
      "cancelled": 16830,
      "code": "MAILIN",
      "declined": 4689,
      "label": "Mail-in submitted via paper",
      "method": "mail_in",
      "outstanding": 99308,
      "votes_recorded": 569833
    },
    {
      "applications": 396268,
      "approved": 391602,
      "ballots_returned": 310410,
      "ballots_sent": 389281,
      "cancelled": 11068,
      "code": "OLMAILNV",
      "declined": 4666,
      "label": "Mail-in submitted online, ID not verified at submission",
      "method": "mail_in",
      "outstanding": 70237,
      "votes_recorded": 309530
    },
    {
      "applications": 268202,
      "approved": 221529,
      "ballots_returned": 112007,
      "ballots_sent": 221029,
      "cancelled": 3535,
      "code": "OLMAILV",
      "declined": 46673,
      "label": "Mail-in submitted online, ID verified at submission",
      "method": "mail_in",
      "outstanding": 105847,
      "votes_recorded": 111495
    },
    {
      "applications": 7232,
      "approved": 7210,
      "ballots_returned": 2978,
      "ballots_sent": 7192,
      "cancelled": 347,
      "code": "F",
      "declined": 22,
      "label": "Federal voter (federal races only)",
      "method": "military_overseas",
      "outstanding": 3893,
      "votes_recorded": 2957
    },
    {
      "applications": 7107,
      "approved": 7101,
      "ballots_returned": 2939,
      "ballots_sent": 7081,
      "cancelled": 278,
      "code": "CVO",
      "declined": 6,
      "label": "Overseas voter",
      "method": "military_overseas",
      "outstanding": 3884,
      "votes_recorded": 2931
    },
    {
      "applications": 6384,
      "approved": 6320,
      "ballots_returned": 4675,
      "ballots_sent": 6247,
      "cancelled": 260,
      "code": "REG",
      "declined": 64,
      "label": "Absentee submitted via paper",
      "method": "absentee",
      "outstanding": 1378,
      "votes_recorded": 4648
    },
    {
      "applications": 4913,
      "approved": 4263,
      "ballots_returned": 2785,
      "ballots_sent": 4257,
      "cancelled": 81,
      "code": "OLREGV",
      "declined": 650,
      "label": "Absentee submitted online, ID verified at submission",
      "method": "absentee",
      "outstanding": 1396,
      "votes_recorded": 2779
    },
    {
      "applications": 2225,
      "approved": 2223,
      "ballots_returned": 841,
      "ballots_sent": 2210,
      "cancelled": 67,
      "code": "M",
      "declined": 2,
      "label": "Military",
      "method": "military_overseas",
      "outstanding": 1311,
      "votes_recorded": 838
    },
    {
      "applications": 628,
      "approved": 627,
      "ballots_returned": 358,
      "ballots_sent": 619,
      "cancelled": 1,
      "code": "C",
      "declined": 1,
      "label": "Emergency absentee",
      "method": "absentee",
      "outstanding": 265,
      "votes_recorded": 357
    },
    {
      "applications": 287,
      "approved": 287,
      "ballots_returned": 217,
      "ballots_sent": 285,
      "cancelled": 10,
      "code": "CIV",
      "declined": 0,
      "label": "Civilian absentee submitted via paper",
      "method": "absentee",
      "outstanding": 60,
      "votes_recorded": 217
    },
    {
      "applications": 282,
      "approved": 233,
      "ballots_returned": 127,
      "ballots_sent": 226,
      "cancelled": 13,
      "code": "OLREGNV",
      "declined": 49,
      "label": "Absentee submitted online, ID not verified at submission",
      "method": "absentee",
      "outstanding": 91,
      "votes_recorded": 124
    },
    {
      "applications": 12,
      "approved": 12,
      "ballots_returned": 6,
      "ballots_sent": 11,
      "cancelled": 0,
      "code": "CRI",
      "declined": 0,
      "label": "Overseas voter, remote or isolated",
      "method": "military_overseas",
      "outstanding": 5,
      "votes_recorded": 6
    },
    {
      "applications": 9,
      "approved": 5,
      "ballots_returned": 0,
      "ballots_sent": 0,
      "cancelled": 0,
      "code": null,
      "declined": 4,
      "label": null,
      "method": "other",
      "outstanding": 0,
      "votes_recorded": 0
    },
    {
      "applications": 6,
      "approved": 6,
      "ballots_returned": 5,
      "ballots_sent": 6,
      "cancelled": 0,
      "code": "MRI",
      "declined": 0,
      "label": "Military, remote or isolated",
      "method": "military_overseas",
      "outstanding": 1,
      "votes_recorded": 5
    },
    {
      "applications": 2,
      "approved": 2,
      "ballots_returned": 2,
      "ballots_sent": 2,
      "cancelled": 0,
      "code": "ALT",
      "declined": 0,
      "label": "Alternative ballot (disabled or 65 and older, polling place not accessible)",
      "method": "alternative",
      "outstanding": 0,
      "votes_recorded": 2
    },
    {
      "applications": 1,
      "approved": 1,
      "ballots_returned": 1,
      "ballots_sent": 1,
      "cancelled": 0,
      "code": "PMI",
      "declined": 0,
      "label": "Mail-in, permanent status requested",
      "method": "mail_in",
      "outstanding": 0,
      "votes_recorded": 1
    },
    {
      "applications": 1,
      "approved": 1,
      "ballots_returned": 1,
      "ballots_sent": 1,
      "cancelled": 0,
      "code": "V",
      "declined": 0,
      "label": "Veteran",
      "method": "military_overseas",
      "outstanding": 0,
      "votes_recorded": 1
    }
  ],
  "by_method": [
    {
      "applications": 1358186,
      "approved": 1302158,
      "ballots_returned": 996118,
      "ballots_sent": 1294411,
      "cancelled": 31433,
      "declined": 56028,
      "method": "mail_in",
      "outstanding": 275392,
      "votes_recorded": 990859
    },
    {
      "applications": 12494,
      "approved": 11730,
      "ballots_returned": 8162,
      "ballots_sent": 11634,
      "cancelled": 365,
      "declined": 764,
      "method": "absentee",
      "outstanding": 3190,
      "votes_recorded": 8125
    },
    {
      "applications": 16583,
      "approved": 16553,
      "ballots_returned": 6770,
      "ballots_sent": 16501,
      "cancelled": 692,
      "declined": 30,
      "method": "military_overseas",
      "outstanding": 9094,
      "votes_recorded": 6738
    },
    {
      "applications": 2,
      "approved": 2,
      "ballots_returned": 2,
      "ballots_sent": 2,
      "cancelled": 0,
      "declined": 0,
      "method": "alternative",
      "outstanding": 0,
      "votes_recorded": 2
    },
    {
      "applications": 9,
      "approved": 5,
      "ballots_returned": 0,
      "ballots_sent": 0,
      "cancelled": 0,
      "declined": 4,
      "method": "other",
      "outstanding": 0,
      "votes_recorded": 0
    }
  ],
  "by_party": [
    {
      "applications": 890694,
      "approved": 852207,
      "ballots_returned": 655612,
      "ballots_sent": 847147,
      "cancelled": 21047,
      "declined": 38487,
      "outstanding": 175879,
      "party": "DEM",
      "votes_recorded": 652509
    },
    {
      "applications": 338904,
      "approved": 328953,
      "ballots_returned": 255621,
      "ballots_sent": 326778,
      "cancelled": 8309,
      "declined": 9951,
      "outstanding": 65430,
      "party": "REP",
      "votes_recorded": 253937
    },
    {
      "applications": 152551,
      "approved": 144508,
      "ballots_returned": 97006,
      "ballots_sent": 143861,
      "cancelled": 3023,
      "declined": 8043,
      "outstanding": 44503,
      "party": "OTH",
      "votes_recorded": 96491
    },
    {
      "applications": 3512,
      "approved": 3297,
      "ballots_returned": 1948,
      "ballots_sent": 3289,
      "cancelled": 79,
      "declined": 215,
      "outstanding": 1277,
      "party": "LIB",
      "votes_recorded": 1930
    },
    {
      "applications": 1613,
      "approved": 1483,
      "ballots_returned": 865,
      "ballots_sent": 1473,
      "cancelled": 32,
      "declined": 130,
      "outstanding": 587,
      "party": "GRN",
      "votes_recorded": 857
    }
  ],
  "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": 1793378936930,
  "source_urls": [
    "https://data.pa.gov/resource/nbwd-pfn4.json?%24select=case%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&%24group=party_group&%24order=party_group&%24limit=5000",
    "https://data.pa.gov/resource/nbwd-pfn4.json?%24select=mailapplicationtype+as+application_type%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&%24group=application_type&%24order=application_type&%24limit=5000"
  ],
  "totals": {
    "applications": 1387274,
    "approved": 1330448,
    "ballots_returned": 1011052,
    "ballots_sent": 1322548,
    "cancelled": 32490,
    "declined": 56826,
    "outstanding": 287676,
    "votes_recorded": 1005724
  }
}
```

### Mail ballots by county

- Capability: `elections/mail_ballots_by_county`
- Description: Pennsylvania 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.
- Instructions: Early-vote returns or outstanding mail ballots in a Pennsylvania county (Philadelphia, Allegheny, the Philadelphia collar counties), the party split of a county's returns, or ranking counties by returns. For the statewide picture use mail_ballot_summary.
- Cost: 5 credits per call
- Capability file: [Mail ballots by county](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballots_by_county)

Accepted options:
- `county` (string): One of Pennsylvania's 67 counties, any case, with or without 'County' (Philadelphia, ALLEGHENY, Bucks County). Anything else is not_found. Omit for all 67 counties. Example: `<county>`
- `election` (string): Which general election's mail ballot file to read: 2026-general (nbwd-pfn4, updated daily through the canvass), 2024-general (3q5t-ddp8, final) or 2022-general (uhfm-zhus, final; no ballot status or disposition, so approved, declined, votes_recorded and cancelled are null). Example: `2026-general`

Response schema example:
```json
{
  "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"
}
```

### Mail ballots by district

- Capability: `elections/mail_ballots_by_district`
- Description: Pennsylvania 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.
- Instructions: Early-vote returns and party split in a competitive Pennsylvania US House district (for example the 7th, 8th or 10th) or a state legislative district, or ranking districts by returns.
- Cost: 5 credits per call
- Capability file: [Mail ballots by district](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballots_by_district)

Accepted options:
- `chamber` (string, required): congressional: US House districts (1-17); state_senate: Senate of Pennsylvania (1-50); state_house: Pennsylvania House of Representatives (1-203). Example: `congressional`
- `district` (number): District number within the chamber. Omit for every district. Example: `10`
- `election` (string): Which general election's mail ballot file to read: 2026-general (nbwd-pfn4, updated daily through the canvass), 2024-general (3q5t-ddp8, final) or 2022-general (uhfm-zhus, final; no ballot status or disposition, so approved, declined, votes_recorded and cancelled are null). Example: `2026-general`

Response schema example:
```json
{
  "chamber": "congressional",
  "count": 1,
  "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"
  },
  "district_filter": 7,
  "districts": [
    {
      "applications": 98590,
      "approved": 93330,
      "ballots_returned": 66510,
      "ballots_sent": 92732,
      "by_party": [
        {
          "applications": 61511,
          "approved": 58086,
          "ballots_returned": 42578,
          "ballots_sent": 57715,
          "cancelled": 2295,
          "declined": 3425,
          "outstanding": 13238,
          "party": "DEM",
          "votes_recorded": 42291
        },
        {
          "applications": 24333,
          "approved": 23249,
          "ballots_returned": 16568,
          "ballots_sent": 23088,
          "cancelled": 1050,
          "declined": 1084,
          "outstanding": 5626,
          "party": "REP",
          "votes_recorded": 16411
        },
        {
          "applications": 12412,
          "approved": 11687,
          "ballots_returned": 7201,
          "ballots_sent": 11623,
          "cancelled": 388,
          "declined": 725,
          "outstanding": 4096,
          "party": "OTH",
          "votes_recorded": 7143
        },
        {
          "applications": 253,
          "approved": 234,
          "ballots_returned": 125,
          "ballots_sent": 234,
          "cancelled": 6,
          "declined": 19,
          "outstanding": 103,
          "party": "LIB",
          "votes_recorded": 125
        },
        {
          "applications": 81,
          "approved": 74,
          "ballots_returned": 38,
          "ballots_sent": 72,
          "cancelled": 2,
          "declined": 7,
          "outstanding": 34,
          "party": "GRN",
          "votes_recorded": 37
        }
      ],
      "cancelled": 3741,
      "declined": 5260,
      "district": 7,
      "label": "7TH CONGRESSIONAL DISTRICT",
      "outstanding": 23097,
      "votes_recorded": 66007
    }
  ],
  "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": 1793378936957,
  "source_url": "https://data.pa.gov/resource/nbwd-pfn4.json?%24select=congressional+as+district_label%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=congressional+like+%277TH+%25%27&%24group=district_label%2Cparty_group&%24order=district_label%2Cparty_group&%24limit=5000"
}
```

### Mail ballots returned by day

- Capability: `elections/mail_ballots_returned_by_day`
- Description: Daily 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.
- Instructions: The pace of Pennsylvania early voting by mail: returns per day, the last week's trend, or how far into the 2024 or 2022 return curve the 2026 count is.
- Cost: 5 credits per call
- Capability file: [Mail ballots returned by day](https://alexandria.firecrawl.dev/agents/providers/data-pa-gov/elections/mail_ballots_returned_by_day)

Accepted options:
- `county` (string): One of Pennsylvania's 67 counties, any case, with or without 'County' (Philadelphia, ALLEGHENY, Bucks County). Anything else is not_found. Omit for statewide. Example: `<county>`
- `election` (string): Which general election's mail ballot file to read: 2026-general (nbwd-pfn4, updated daily through the canvass), 2024-general (3q5t-ddp8, final) or 2022-general (uhfm-zhus, final; no ballot status or disposition, so approved, declined, votes_recorded and cancelled are null). Example: `2026-general`
- `party` (string): Only ballots of this party (2022 codes folded as in the other functions). Omit for all parties. Example: `DEM`

Response schema example:
```json
{
  "count": 45,
  "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"
  },
  "days": [
    {
      "ballots_returned": 10,
      "cumulative": 10,
      "date": "2026-09-15"
    },
    {
      "ballots_returned": 11,
      "cumulative": 21,
      "date": "2026-09-16"
    },
    {
      "ballots_returned": 9,
      "cumulative": 30,
      "date": "2026-09-17"
    },
    {
      "ballots_returned": 19,
      "cumulative": 49,
      "date": "2026-09-18"
    },
    {
      "ballots_returned": 188,
      "cumulative": 237,
      "date": "2026-09-19"
    },
    {
      "ballots_returned": 292,
      "cumulative": 529,
      "date": "2026-09-20"
    },
    {
      "ballots_returned": 325,
      "cumulative": 854,
      "date": "2026-09-21"
    },
    {
      "ballots_returned": 3215,
      "cumulative": 4069,
      "date": "2026-09-22"
    },
    {
      "ballots_returned": 4579,
      "cumulative": 8648,
      "date": "2026-09-23"
    },
    {
      "ballots_returned": 4743,
      "cumulative": 13391,
      "date": "2026-09-24"
    },
    {
      "ballots_returned": 3280,
      "cumulative": 16671,
      "date": "2026-09-25"
    },
    {
      "ballots_returned": 2698,
      "cumulative": 19369,
      "date": "2026-09-26"
    },
    {
      "ballots_returned": 137,
      "cumulative": 19506,
      "date": "2026-09-27"
    },
    {
      "ballots_returned": 3891,
      "cumulative": 23397,
      "date": "2026-09-28"
    },
    {
      "ballots_returned": 586,
      "cumulative": 23983,
      "date": "2026-09-29"
    },
    {
      "ballots_returned": 2337,
      "cumulative": 26320,
      "date": "2026-09-30"
    },
    {
      "ballots_returned": 518,
      "cumulative": 26838,
      "date": "2026-10-01"
    },
    {
      "ballots_returned": 3855,
      "cumulative": 30693,
      "date": "2026-10-02"
    },
    {
      "ballots_returned": 1913,
      "cumulative": 32606,
      "date": "2026-10-03"
    },
    {
      "ballots_returned": 239,
      "cumulative": 32845,
      "date": "2026-10-04"
    },
    {
      "ballots_returned": 2455,
      "cumulative": 35300,
      "date": "2026-10-05"
    },
    {
      "ballots_returned": 737,
      "cumulative": 36037,
      "date": "2026-10-06"
    },
    {
      "ballots_returned": 1818,
      "cumulative": 37855,
      "date": "2026-10-07"
    },
    {
      "ballots_returned": 2296,
      "cumulative": 40151,
      "date": "2026-10-08"
    },
    {
      "ballots_returned": 1789,
      "cumulative": 41940,
      "date": "2026-10-09"
    },
    {
      "ballots_returned": 1588,
      "cumulative": 43528,
      "date": "2026-10-10"
    },
    {
      "ballots_returned": 262,
      "cumulative": 43790,
      "date": "2026-10-11"
    },
    {
      "ballots_returned": 97,
      "cumulative": 43887,
      "date": "2026-10-12"
    },
    {
      "ballots_returned": 2534,
      "cumulative": 46421,
      "date": "2026-10-13"
    },
    {
      "ballots_returned": 545,
      "cumulative": 46966,
      "date": "2026-10-14"
    },
    {
      "ballots_returned": 2521,
      "cumulative": 49487,
      "date": "2026-10-15"
    },
    {
      "ballots_returned": 2087,
      "cumulative": 51574,
      "date": "2026-10-16"
    },
    {
      "ballots_returned": 2043,
      "cumulative": 53617,
      "date": "2026-10-17"
    },
    {
      "ballots_returned": 536,
      "cumulative": 54153,
      "date": "2026-10-18"
    },
    {
      "ballots_returned": 2633,
      "cumulative": 56786,
      "date": "2026-10-19"
    },
    {
      "ballots_returned": 2204,
      "cumulative": 58990,
      "date": "2026-10-20"
    },
    {
      "ballots_returned": 832,
      "cumulative": 59822,
      "date": "2026-10-21"
    },
    {
      "ballots_returned": 2524,
      "cumulative": 62346,
      "date": "2026-10-22"
    },
    {
      "ballots_returned": 3002,
      "cumulative": 65348,
      "date": "2026-10-23"
    },
    {
      "ballots_returned": 1745,
      "cumulative": 67093,
      "date": "2026-10-24"
    },
    {
      "ballots_returned": 718,
      "cumulative": 67811,
      "date": "2026-10-25"
    },
    {
      "ballots_returned": 1734,
      "cumulative": 69545,
      "date": "2026-10-26"
    },
    {
      "ballots_returned": 2519,
      "cumulative": 72064,
      "date": "2026-10-27"
    },
    {
      "ballots_returned": 2698,
      "cumulative": 74762,
      "date": "2026-10-28"
    },
    {
      "ballots_returned": 3264,
      "cumulative": 78026,
      "date": "2026-10-29"
    }
  ],
  "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": 1793378936967,
  "party_filter": "DEM",
  "source_url": "https://data.pa.gov/resource/nbwd-pfn4.json?%24select=ballotreturneddate+as+returned_date%2Ccount%28*%29+as+ballots_returned&%24where=ballotreturneddate+IS+NOT+NULL+AND+upper%28countyname%29+%3D+%27PHILADELPHIA%27+AND+case%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+%3D+%27DEM%27&%24group=returned_date&%24order=returned_date&%24limit=5000",
  "total_returned": 78026
}
```
