SEC EDGAR Government Scraper
Spider read sec.gov in 156 ms without a browser and returned 28 lines of clean markdown.
Companies with names matching "APPLE"*Click on CIK to view company filings for form type 10-K*SIC: 3571 - ELECTRONIC COMPUTERSSIC: 7372 - SERVICES-PREPACKAGED SOFTWARESIC: 5271 - RETAIL-MOBILE HOME DEALERSSIC: 6798 - REAL ESTATE INVESTMENT TRUSTSSIC: 6411 - INSURANCE AGENTS BROKERS & SERVICESSIC: 8000 - SERVICES-HEALTH SERVICES 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 sec.gov.
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://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&company=apple&CIK=&type=10-K&dateb=&owner=include&count=10&search_text=&action=getcompany");
// 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://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&company=apple&CIK=&type=10-K&dateb=&owner=include&count=10&search_text=&action=getcompany");
await page.content();
const data = await page.evaluate(`(() => {
const filings = [];
document.querySelectorAll("table.tableFile2 tbody tr").forEach(el => {
const type = el.querySelector("td:nth-child(1)")?.textContent?.trim();
const date = el.querySelector("td:nth-child(4)")?.textContent?.trim();
const company = el.querySelector("td:nth-child(2) a")?.textContent?.trim();
const link = el.querySelector("td:nth-child(2) a")?.getAttribute("href");
if (type) filings.push({ type, date, company, link });
});
return JSON.stringify({ total: filings.length, filings: filings.slice(0, 10) });
})()`);
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 sec.gov costs to scrape.
The capture above cost $0.00003 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.
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.
Federal Register Scraper
Extract proposed rules, final rules, presidential documents, and agency notices from the Federal Register.
Start scraping sec.gov.
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.