Home / APIs / Screening
Screening

Stock Screener API: screen every SEC filer on XBRL fundamentals

One call finds the companies that meet up to five conditions on revenue, profit, assets, cash flow or a ratio of two of them.

curl -H "Authorization: Bearer $SECFEED_KEY" \
  "https://secfeedapi.com/v1/screener?conditions=Revenue%3E1e9,GrossProfit/Revenue%3E0.6&period=CY2025&size=3"
import os, requests

r = requests.get(
    "https://secfeedapi.com/v1/screener",
    params={'conditions': 'Revenue>1e9,GrossProfit/Revenue>0.6', 'period': 'CY2025', 'size': '3'},
    headers={"Authorization": f"Bearer {os.environ['SECFEED_KEY']}"},
)
print(r.json())

Overview

Most screeners start from market prices. This one starts from the filings. It holds the latest values of about 40 XBRL line items for every company that reports them, for the last four calendar years and eight quarters, and answers questions like "which filers had more than $1 billion revenue and a gross margin above 60% in 2025" in one request.

Every value in the answer carries the XBRL tag and the accession number of the filing it came from, so you can open the source. There are no prices, so no P/E or market cap. Source: U.S. Securities and Exchange Commission, XBRL frames.

What you get

Built for developers who would rather not parse EDGAR.

Up to five conditions

Greater, less, equal, with any of about 40 concepts. GET with a comma list, or POST a JSON body.

Ratios

Write A/B, for example NetIncomeLoss/Revenue, to screen on a ratio of two values from the same period.

Sorted and paged

Sort by any concept or ratio, up to 100 rows a page.

Source on every value

Tag, accession number, filing date and a link to the filing.

Endpoints

Authenticate with Authorization: Bearer YOUR_KEY. Responses are JSON.

GET/v1/screenerReference →

Screen every SEC filer on up to 5 XBRL conditions for a calendar year or quarter (also POST with a JSON body). Conditions are like Revenue>1e9 or GrossProfit/Revenue>0.5; each value comes with its tag and source accession. No prices.

Parameters: conditions (or POST conditions[] of concept, op, value), period (CY2025, CY2026Q2), sort, order, from, size (max 100)

GET/v1/screener/conceptsReference →

The XBRL concepts the screener accepts, with units, plus the Revenue and Debt aliases.

Response fields

The main fields in every result. The raw filing data is always one level down.

FieldMeaning
companies[].cik, ticker, companyThe filer as named in its XBRL data.
companies[].values.<condition>.valueThe value that was tested, in USD, shares or USD per share.
companies[].values.<condition>.from[]The XBRL tag, accession number, form, filing date and link of each input.
total, hasMoreHow many companies match and whether there are more pages.

Use cases

FAQ

Which periods can I screen?

The last four calendar years and the last eight quarters. The SEC calendarises fiscal periods, so a company with a September year end is matched to the nearest calendar period.

Why no P/E or market cap?

SecFeed has no price data. Every value comes from a filing.

Are restated numbers used?

The SEC publishes the latest filed value for each period, so a restated figure replaces the original. Use the point in time endpoints when you need what was known on a date.

Where does the data come from?

SEC EDGAR XBRL frames, public data. Source: U.S. Securities and Exchange Commission.

Try the Stock Screener API (SEC XBRL data) free

Free key, no card, no sales call.

Get free API key →