DEV Community

Donny Nguyen
Donny Nguyen

Posted on

How to Search SEC EDGAR Filings Programmatically with a Simple API

Why SEC Filings Matter for Developers

If you're building anything in fintech, investment research, or compliance tooling, you've probably run into SEC EDGAR — the SEC's public database of corporate filings. It's an incredible resource, but parsing EDGAR directly is a headache. The search interface is clunky, the data formats vary wildly, and building a reliable scraper takes serious effort.

The SEC EDGAR Filings API solves this by giving you a clean REST endpoint to search for company filings — 10-Ks, 10-Qs, 8-Ks, and more — using just a company name or CIK number.

What You Can Do With It

  • Search filings by company name — no need to look up CIK numbers first
  • Access 10-K annual reports for fundamental analysis
  • Pull 10-Q quarterly filings to track performance over time
  • Monitor 8-K filings for material events and breaking corporate news
  • Build automated pipelines that feed filing data into dashboards, alerts, or ML models

Quick Start: Fetching Filings in JavaScript

Here's how to search for Apple's SEC filings with a single API call:

const response = await fetch(
  'https://sec-edgar-filings.p.rapidapi.com/api/search?company=Apple',
  {
    method: 'GET',
    headers: {
      'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
      'x-rapidapi-host': 'sec-edgar-filings.p.rapidapi.com'
    }
  }
);

const data = await response.json();
console.log(data);
Enter fullscreen mode Exit fullscreen mode

That's it. One request, structured filing data back. No XML parsing, no pagination headaches, no EDGAR rate-limit juggling.

Use Cases

Investment research platforms can surface the latest 10-K data for any public company on demand. Compliance teams can monitor 8-K filings for clients and flag material events automatically. Data journalists can build stories around filing trends without manually digging through EDGAR's interface.

If you're training models on financial data, this API gives you a clean feed of structured filings to work with — far easier than scraping EDGAR yourself.

Try It Out

The API is available on RapidAPI with a free tier so you can test it immediately:

SEC EDGAR Filings on RapidAPI →

Subscribe, grab your API key, and start pulling filings in minutes. Whether you're building a stock screener, a compliance dashboard, or just exploring public company data — this API takes the pain out of working with EDGAR.

Top comments (0)