# US Stock Screener API: SEC financial data, revenue, net margin (`bosco_labs/sec-company-screen`) Actor

Find US companies by financials, e.g. revenue over $1B and net margin above 20% last year: screens every SEC filer on revenue, net income, margins, cash flow, assets and 30 more metrics (SEC XBRL) for one year or quarter, sorted. Each value cites its SEC filing. $0.002 per company.

- **URL**: https://apify.com/bosco_labs/sec-company-screen.md
- **Developed by:** [Bosco Labs](https://apify.com/bosco_labs) (community)
- **Categories:** Business, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 screen rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SEC Company Screener API: filter all US filers by financials

**Screen every US company that files with the SEC** by revenue, profit, margins, cash flow and
balance sheet for one calendar year or quarter: "revenue over $10B and net margin above 20% in
2025", "top 20 by operating cash flow". For analysts, finance apps and AI agents. Every value
cites **the XBRL tag and the SEC filing it came from**.

**Pricing (pay per event):** $0.002 per company returned ($2 per 1,000). A top 20 costs $0.04,
the default 50 rows $0.10. `maxResults` caps the cost; screens that match nothing or fail are
free.

Data comes straight from the SEC's XBRL frames API (`data.sec.gov/api/xbrl/frames`): one value
per company per tag and period, from every 10-K, 10-Q and other XBRL filing since 2009. No
scraping, no logins, no third-party data. A screen takes a few seconds.

### What you get

One row per matching company, sorted. Real output of the screen in the Input section below
(CY2025, revenue over $10B and net margin above 20%; 50 of 72 matching companies returned,
rows 1 and 6 shown):

```json
[
  {
    "schema_version": "1",
    "ticker": "AAPL",
    "cik": "0000320193",
    "company_name": "Apple Inc.",
    "period": "CY2025",
    "period_start": "2024-09-29",
    "period_end": "2025-09-27",
    "currency": "USD",
    "revenue": 416161000000,
    "net_margin": 0.2692,
    "net_income": 112010000000,
    "sources": {
      "revenue": {
        "tag": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
        "accession": "0000320193-26-000026",
        "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
      },
      "net_income": {
        "tag": "us-gaap:NetIncomeLoss",
        "accession": "0000320193-26-000026",
        "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
      },
      "net_margin": {
        "derived": "net_income / revenue"
      }
    },
    "warnings": [],
    "retrieved_at": "2026-11-05T22:18:21+00:00"
  },
  {
    "schema_version": "1",
    "ticker": "JPM",
    "cik": "0000019617",
    "company_name": "JPMorgan Chase & Co",
    "period": "CY2025",
    "period_start": "2025-01-01",
    "period_end": "2025-12-31",
    "currency": "USD",
    "revenue": 182447000000,
    "net_margin": 0.3127,
    "net_income": 57048000000,
    "sources": {
      "revenue": {
        "tag": "us-gaap:Revenues",
        "accession": "0001628280-26-008131",
        "url": "https://www.sec.gov/Archives/edgar/data/19617/000162828026008131/0001628280-26-008131-index.htm"
      },
      "net_income": {
        "tag": "us-gaap:NetIncomeLoss",
        "accession": "0001628280-26-008131",
        "url": "https://www.sec.gov/Archives/edgar/data/19617/000162828026008131/0001628280-26-008131-index.htm"
      },
      "net_margin": {
        "derived": "net_income / revenue"
      }
    },
    "warnings": [
      "net_income: 57000000000 from filing 0000019617-26-000096 (not a 10-K/10-Q) replaced by 57048000000 from 0001628280-26-008131"
    ],
    "retrieved_at": "2026-11-05T22:18:21+00:00"
  }
]
```

All money values are in full US dollars (not thousands), EPS in USD per share, ratios are
fractions (0.25 = 25%). `null` means the company didn't report it; nothing is guessed. A row has
the `sortBy`, filter and `metrics` fields, plus the inputs of derived ones (`net_margin` brings
`net_income` and `revenue`). `sources` names the tag and filing behind each value, or the formula
of a derived one.

### Periods: calendar-aligned frames

The SEC's frames are **calendar periods**, not fiscal years. `CY2025` holds, per company, the
annual figures whose period best fits calendar 2025, and **each company keeps its own fiscal
period**, shown in `period_start` / `period_end`:

| Company | Fiscal year in `CY2025` |
|---|---|
| Alphabet, JPMorgan | 2025-01-01 to 2025-12-31 |
| Apple | 2024-09-29 to 2025-09-27 (Apple's fiscal 2025) |
| Microsoft | 2024-07-01 to 2025-06-30 (Microsoft's fiscal 2025) |
| Walmart | 2025-02-01 to 2026-01-31 (Walmart's fiscal 2026) |
| Nvidia | 2025-01-27 to 2026-01-25 (Nvidia's fiscal 2026) |

`CY2025Q3` holds each company's 3-month quarter that best fits July-September 2025.
Balance-sheet values (assets, equity, debt, cash, shares) are taken **at each company's own
period end** (Apple: 27 September 2025), as in its annual report. So a screen compares companies'
latest comparable years, not identical date ranges: check `period_end` when that matters.

### Input

```json
{
  "period": "CY2025",
  "filters": [
    { "metric": "revenue", "min": 10000000000 },
    { "metric": "net_margin", "min": 0.2 }
  ],
  "sortBy": "revenue",
  "maxResults": 50
}
```

| Field | Meaning |
|---|---|
| `period` | `CY2025` (calendar year) or `CY2025Q3` (calendar quarter), 2009 to now. Required |
| `filters` | List of `{metric, min, max}`, bounds inclusive and optional. Money in full USD (`10000000000` = $10B), ratios as fractions (`0.2` = 20%). A company without a value for a filter metric is left out |
| `sortBy` | Metric to rank by. Default: the first filter's metric, else `revenue`. Companies without it are left out |
| `sortOrder` | `desc` (largest first, default) or `asc` |
| `maxResults` | Most companies returned and charged, default 50, max 1000. The status message says how many matched |
| `metrics` | Extra fields per company, e.g. `["operating_cash_flow", "total_assets"]` |
| `tickersOnly` | Only companies with a ticker in the SEC's ticker list (default `false`) |
| `includeSources` | Tag, accession and URL per value (default `true`); `false` makes rows about 3x smaller |

A bad input fails in seconds with a valid example (an unknown metric lists all valid ones;
`"min": 20` on a margin says to use `0.2`).

### Metrics

The same names and the same tag mapping as our
[SEC Company Financials Actor](https://apify.com/bosco_labs/sec-company-financials), so a screen
and a follow-up deep dive agree. Each metric has an ordered list of candidate XBRL tags (revenue:
`Revenues`, then `RevenueFromContractWithCustomerExcludingAssessedTax`, and so on); per company
the first tag with a value wins, and `sources` names it. Checked against that Actor for Apple and
Microsoft (fiscal 2025), Walmart (fiscal 2026) and JPMorgan (2025): 36 of 36 values equal
(revenue, net income, operating profit, EPS, operating cash flow, capex, total assets, equity,
long-term debt), with the same tags.

**Reported:** `revenue`, `cost_of_revenue`, `gross_profit`, `research_and_development`,
`selling_general_and_administrative`, `operating_profit`, `profit_before_tax`, `net_income`,
`net_income_attributable_to_parent`, `eps_basic`, `eps_diluted`,
`weighted_average_shares_basic`, `weighted_average_shares_diluted`, `depreciation_amortisation`,
`total_assets`, `current_assets`, `cash_and_equivalents`, `total_liabilities`,
`current_liabilities`, `noncurrent_liabilities`, `long_term_debt`, `total_equity`,
`equity_attributable_to_parent`, `shares_outstanding`, `operating_cash_flow`,
`investing_cash_flow`, `financing_cash_flow`, `capex`, `dividends_paid`.

**Derived** (from two reported values of the same company and period, marked `derived` in
`sources`): `free_cash_flow` (operating cash flow - capex), `ebitda` (operating profit + D\&A),
`gross_margin`, `operating_margin`, `net_margin`, `return_on_equity` (calendar years only),
`equity_ratio`. `gross_profit` and `total_liabilities` fall back to revenue - cost of revenue and
assets - equity when a company doesn't tag them.

**Proxy-statement values are re-checked.** A frame takes each company's latest filed value, and
for net income (sometimes revenue) that is often the proxy statement's pay-versus-performance
table, which may round it or even get scale and sign wrong (TheRealReal's 2025 net income is
+41,799m in its proxy and -41.8m in its 10-K; JPMorgan's 57.0bn there is 57,048m in the 10-K).
Proxies never show EPS, so every income or cash-flow value in the results that cites a different
filing than the company's EPS (or, for companies without EPS, is a round multiple of $100m) is
re-read from the company's own 10-K/10-Q facts, the screen is redone, and `warnings` says what was
replaced (FedEx's proxy shows fiscal 2026 net income as 4,433 dollars; the 10-K: 4,433m). When no
10-K/10-Q tags the value, it stays with a warning.

### Use cases

- **Idea generation:** profitable large caps, high-margin mid caps, cash-rich companies.
- **Peer and market maps:** the top N of a metric in a year or quarter, with each company's
  fiscal period.
- **Prospect and counterparty lists:** companies above a revenue or asset size, with CIK and
  ticker to look them up further.
- **AI agents:** one call answers "which companies ..." questions with sourced numbers, then the
  SEC Company Financials Actor gives the full statements of the ones that matter.

### Use from an AI agent (MCP)

Agents can call this Actor as a tool through the
[Apify MCP server](https://github.com/apify/apify-mcp-server). Add this server URL to your MCP
client (Claude, Cursor, VS Code, ...):

```text
https://mcp.apify.com?tools=bosco_labs/sec-company-screen
```

It loads this Actor as a tool, plus the tools that read its results (`get-actor-run`,
`get-dataset-items`). The hosted server signs you in with OAuth, or accepts your Apify token as
`Authorization: Bearer <APIFY_TOKEN>`. On the default server (`https://mcp.apify.com`), agents
can also find this Actor with `search-actors` and run it with `call-actor`.

Example prompts this Actor answers:

- *"Which US companies had revenue over $10B and net margin above 20% in fiscal 2025?"*
- *"Top 20 US companies by operating cash flow in 2025."*
- *"Which companies with a ticker had an operating margin above 30% in Q3 2025?"*

For the second one, the agent passes:

```json
{"period": "CY2025", "sortBy": "operating_cash_flow", "maxResults": 20, "tickersOnly": true}
```

**Output for agents:** stable, typed JSON, one row per company, in rank order, each with
`schema_version`, the company's own `period_start`/`period_end`, and per value the XBRL tag and
SEC filing URL to cite. A top 20 is about 11 KB with sources; 50 rows about 40 KB.

**Cost:** $0.002 per company returned, billed to the Apify account the MCP server is signed in
with.

### FAQ

**Which companies?** Every SEC filer whose XBRL facts are in the frames: about 6,000 companies
with annual revenue or net income for 2025, including some without a ticker (delisted companies,
private issuers of public debt); `tickersOnly` drops those. Values are in USD only: companies
reporting in another currency (many 20-F filers, e.g. in EUR or DKK) are not in USD frames, and
the SEC publishes no frames for IFRS tags, so most IFRS filers are missing. Use the SEC Company
Financials Actor for them.

**How fresh?** The SEC updates frames shortly after filings. A calendar year fills up as annual
reports come in, up to about three months after each company's year end (and later for
fiscal years ending early the next year), so screens of the latest year miss late filers.

**Why is a company missing?** It didn't tag the metric with one of the standard candidate tags,
reported it for a period that doesn't fit the calendar period, has no value for a filter or the
sort metric, or reports in another currency. Banks have no gross profit, operating profit or
current assets; most companies report quarterly cash flow only year to date, so quarterly
(`CY2025Q3`) cash-flow fields are usually `null` except for a company's first fiscal quarter.
Calendar-year companies report no separate fourth quarter (the 10-K has only the full year), so
a `Q4` period (`CY2025Q4`) holds mostly companies with other fiscal years: use `CY2025` instead.

**Fiscal year or calendar year?** Calendar-aligned, see above: each company appears with the
fiscal period that best fits the calendar period. For exact fiscal years and quarters of a given
company, use the SEC Company Financials Actor.

**What is not included?** Market data (prices, market cap, P/E), revenue growth, segment
figures, non-GAAP figures, forecasts, and anything before 2009.

**Legal basis?** SEC filings are US government public records. See LEGAL.md.

# Actor input Schema

## `period` (type: `string`):

Calendar period in SEC frames format: "CY2025" = annual figures, "CY2025Q3" = 3-month quarter figures. Required, 2009 to the current year. Calendar-aligned: each company comes with its own fiscal period that best fits it (e.g. CY2025 holds Apple's fiscal year to Sep 2025, Microsoft's to Jun 2025, Walmart's to Jan 2026), shown in period_start/period_end. Balance-sheet metrics are taken at each company's period end.

## `filters` (type: `array`):

Conditions every company must meet, as a list of {metric, min, max} (either bound optional, both inclusive), e.g. \[{"metric": "revenue", "min": 10000000000}, {"metric": "net_margin", "min": 0.2}] = revenue of at least $10B and net margin of at least 20%. Money in full USD (10000000000 = $10B), ratios as fractions (0.2 = 20%), EPS in USD per share. A company without a value for a filter metric is left out. Metrics: see sortBy. Empty = no filter (all companies with a sortBy value).

## `sortBy` (type: `string`):

Metric to rank by, e.g. "operating_cash_flow". Same names as the SEC Company Financials Actor; the last seven (free_cash_flow to equity_ratio) are derived from two reported metrics. Companies without a value for it are left out. Empty = the first filter's metric, else revenue.

## `sortOrder` (type: `string`):

"desc" = largest first (top N), "asc" = smallest first (e.g. the lowest net margin). Default "desc".

## `maxResults` (type: `integer`):

Most companies to return (and charge for), e.g. 20 for a top 20. The status message says how many matched in total. Default 50, max 1000.

## `metrics` (type: `array`):

More fields to show per company besides the sortBy and filter metrics, e.g. \["operating_cash_flow", "total_assets"]. Same names as sortBy. Each adds a few SEC requests. Empty = only the sortBy and filter metrics (plus the inputs of derived ones).

## `tickersOnly` (type: `boolean`):

true = skip companies without a ticker in the SEC's company_tickers.json (delisted companies, private issuers of public debt, subsidiaries). Default false. E.g. `true`.

## `includeSources` (type: `boolean`):

true = each row has `sources`: per value the XBRL tag, the SEC accession number and the filing URL (or the formula for derived values). false = values only, about 3x smaller rows. Default true.

## Actor input object example

```json
{
  "period": "CY2025",
  "filters": [
    {
      "metric": "revenue",
      "min": 10000000000
    },
    {
      "metric": "net_margin",
      "min": 0.2
    }
  ],
  "sortOrder": "desc",
  "maxResults": 20,
  "tickersOnly": false,
  "includeSources": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "period": "CY2025",
    "filters": [
        {
            "metric": "revenue",
            "min": 10000000000
        },
        {
            "metric": "net_margin",
            "min": 0.2
        }
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("bosco_labs/sec-company-screen").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "period": "CY2025",
    "filters": [
        {
            "metric": "revenue",
            "min": 10000000000,
        },
        {
            "metric": "net_margin",
            "min": 0.2,
        },
    ],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("bosco_labs/sec-company-screen").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "period": "CY2025",
  "filters": [
    {
      "metric": "revenue",
      "min": 10000000000
    },
    {
      "metric": "net_margin",
      "min": 0.2
    }
  ],
  "maxResults": 20
}' |
apify call bosco_labs/sec-company-screen --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bosco_labs/sec-company-screen"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HGlLgj3gmmcGRap8M/builds/QvqJJn3YlTJlIomgm/openapi.json
