Ballotpedia Scraper
Spider read ballotpedia.org in 626 ms without a browser and returned 34 lines of clean markdown.
Below is an overview of primary election filing requirements for partisan candidates for U.S. Senate, U.S. House of Representatives, gubernatorial, and state legislative offices up for election in 2026.Of the 35 states with U.S. Senate elections in 2026, 23 require or allow candidates to gather signatures for ballot access. Of those with a set number of signatures, Michigan requires the most, at 15,000. Kentucky requires the least, at two signatures.Twenty-two states require a filing fee for candidates to appear on the ballot. Of those with set filing fees for U.S. Senate, Delaware and Florida have the highest filing fee, at $10,440. Alaska and New Hampshire have the lowest, at $100.**U.S. House of Representatives**All 435 U.S. House districts are up for election in 2026. Forty states require or allow candidates to gather signatures for ballot access. Of the states with a set number of required petition signatures, Utah requires the most signatures, at 7,000 registered voters who are residents of the congressional district in which the candidate is running. Kentucky requires the least — two signatures.Forty-two states require or allow candidates to achieve ballot access by paying a filing fee. Of the states with set filing fees for ballot access for the office of U.S. representative, Florida's is the highest, at $10,440. The lowest is in New Hampshire, at $50.There are 36 gubernatorial seats on the ballot in 2026. Of those, 33 require or allow candidates to gather signatures for ballot access. Of the states with a set number of required petition signatures to run for governor, Michigan and New York require the most, at 15,000. Hawaii requires the least, at 25.Thirty-two states require or allow candidates to access the ballot via a filing fee. Of the states with set filing fees for ballot access for the office of governor, the highest set filing fee is in Texas, at $3,750. The lowest is in Alaska and New Hampshire, at $100.Eighty-eight state legislative chambers are holding regular legislative elections across 46 states in 2026.Thirty-four states holding state Senate elections require or allow candidates to gather signatures for ballot access. Of those with a set number of required signatures, Utah requires the most, at 2,000, and New Hampshire requires the least, at 20. Thirty-five states require or allow candidates to gather signatures for ballot access for the lower chambers of their state legislatures. Of those with a set number of required signatures, Utah also requires the most, at 1,000, and New Hampshire requires the least, at five.Thirty-five states require or allow candidates for state Senate or their lower legislative chamber to access the ballot via a filing fee. The highest set filing fee for state Senate is in Texas and is $1,250. The lowest is in New Hampshire, at $10. For the lower chambers, Texas and New Hampshire are also the highest and lowest, with Texas requiring a $750 fee and New Hampshire requiring a $2 fee. The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on ballotpedia.org.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://ballotpedia.org/United_States_Senate_elections,_2026");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://ballotpedia.org/United_States_Senate_elections,_2026");
await page.content();
const data = await page.evaluate(`(() => {
const races = [];
document.querySelectorAll("table.wikitable tbody tr").forEach(el => {
const state = el.querySelector("td:nth-child(1)")?.textContent?.trim();
const incumbent = el.querySelector("td:nth-child(2)")?.textContent?.trim();
const party = el.querySelector("td:nth-child(3)")?.textContent?.trim();
if (state && incumbent) races.push({ state, incumbent, party });
});
return JSON.stringify({ total: races.length, races: races.slice(0, 15) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What ballotpedia.org costs to scrape.
The capture above cost $0.000186 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Government & Legal scrapers.
SEC EDGAR Government Scraper
Extract SEC filings, company financial reports, insider trading data, and regulatory submissions from EDGAR.
USPTO Scraper
Extract patent applications, trademark filings, examiner data, and prosecution history from USPTO.
Congress.gov Scraper
Extract bill text, voting records, committee reports, and legislative history from Congress.gov.
Start scraping ballotpedia.org.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.