---
type: "firecrawl-provider"
description: "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."
use_when: "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."
categories: "Public records"
capabilities: 1
credits_per_call: 1
---
# Pennsylvania election returns on Firecrawl Alexandria

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.

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

## More

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

## 1. Choose this provider when

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.

## 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": "electionreturns-pa-gov",
  "capability": "elections/latest",
  "options": {
    "limit": 5
  }
}
```

## 3. Add provider options

Use only the options needed for the task:

- `election` (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. Pattern: ^[0-9]{1,10}:[GgPpSs]$. Example: `<election>`
- `filter` (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). Example: `election`
- `limit` (number): Maximum items (1-100). Example: `50`
- `publishedSince` (string): Alias of since. When both are given the later instant applies. Example: `<publishedSince>`
- `since` (string): RFC 3339 date-time; return only items with publishedAt at or after it. Example: `<since>`

## 4. Request through your preferred interface

### JavaScript

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

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "electionreturns-pa-gov",
  "capability": "elections/latest",
  "options": {
    "limit": 5
  }
})
```

### cURL

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

### CLI

```sh
firecrawl scrape 'electionreturns-pa-gov/elections/latest' \
  --options '{"limit":5}'
```


### MCP

Call the FCX MCP retrieve tool with this object:

```json
{
  "provider": "electionreturns-pa-gov",
  "capability": "elections/latest",
  "options": {
    "limit": 5
  }
}
```

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "electionreturns-pa-gov",
  "capability": "elections/latest",
  "options": {
    "limit": 5
  }
}
```

## 6. Response data

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

```json
{
  "items": [
    {
      "category": "election",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "2026 General Election results",
      "url": "https://www.electionreturns.pa.gov/General/SummaryResults?ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "governor",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Governor | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=3&districtId=1&ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "house",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Representative in Congress - 1st Congressional District | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=2&ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "house",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Representative in Congress - 2nd Congressional District | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=3&ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "house",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Representative in Congress - 3rd Congressional District | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=4&ElectionID=117&ElectionType=G&IsActive=1"
    }
  ]
}
```

## API reference-derived contract

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

### Latest

- Capability: `elections/latest`
- Description: The newest Pennsylvania results pages in the shared latest-feed shape: the election summary page, one page per office and district, and one page per county (67), each with canonical url, publishedAt, title "<race> | <election>", source "electionreturns.pa.gov" and category. Reads the active election (the site marks one, e.g. the 2026 General Election) unless election names another. The site publishes no per-race times: publishedAt is the site's last-updated stamp for the active election when it shows one, otherwise midnight Eastern on the election date, so every item of one call shares it; ties keep summary, statewide, US House, county, then legislative order. since (or publishedSince) keeps items at or after that instant; nothing new is an empty list, not an error.
- Instructions: Polling Pennsylvania's official returns on election night (2026-11-03) for its results pages, filtered to US Senate, US House, governor or county pages. Not for vote totals.
- Cost: 1 credit per call
- Capability file: [Latest](https://alexandria.firecrawl.dev/agents/providers/electionreturns-pa-gov/elections/latest)

Accepted options:
- `election` (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. Pattern: ^[0-9]{1,10}:[GgPpSs]$. Example: `<election>`
- `filter` (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). Example: `election`
- `limit` (number): Maximum items (1-100). Example: `50`
- `publishedSince` (string): Alias of since. When both are given the later instant applies. Example: `<publishedSince>`
- `since` (string): RFC 3339 date-time; return only items with publishedAt at or after it. Example: `<since>`

Response schema example:
```json
{
  "items": [
    {
      "category": "election",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "2026 General Election results",
      "url": "https://www.electionreturns.pa.gov/General/SummaryResults?ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "governor",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Governor | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=3&districtId=1&ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "house",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Representative in Congress - 1st Congressional District | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=2&ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "house",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Representative in Congress - 2nd Congressional District | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=3&ElectionID=117&ElectionType=G&IsActive=1"
    },
    {
      "category": "house",
      "publishedAt": "2026-11-03T05:00:00Z",
      "source": "electionreturns.pa.gov",
      "title": "Representative in Congress - 3rd Congressional District | 2026 General Election",
      "url": "https://www.electionreturns.pa.gov/General/OfficeResults?OfficeID=11&districtId=4&ElectionID=117&ElectionType=G&IsActive=1"
    }
  ]
}
```
