Repository avatar
Other Tools
v1.0.1
active

edgar-company-facts-filings

io.github.fairquery/edgar-company-facts-filings

SEC EDGAR 10-K/10-Q/8-K filings and XBRL company facts by ticker, CIK or company name.

Documentation

SEC EDGAR API: 10-K, 10-Q, 8-K Filings & XBRL Financials

What does it do?

This SEC EDGAR API turns the SEC's public EDGAR data into clean JSON rows. Look up a company by ticker, CIK or name and get its official entity data, recent 10-K, 10-Q and 8-K filings with document URLs, XBRL company facts (Assets, Revenues, NetIncomeLoss, diluted EPS and more) and, optionally, plain-text excerpts from the filing.

Every row carries the SEC source URL, a timestamp and a schema version, and errors come back as machine-readable codes. It reads only the SEC's own public endpoints (sec.gov, data.sec.gov), within the SEC's fair-access limit. Not investment advice.

How much does it cost?

Pay per event, no subscription. Prices per 1,000 rows:

EventFree planStarter (Bronze)Scale (Silver)Business (Gold)
company-resolved (primary)$1.50$1.35$1.20$1.05
filing$1.00$1.00$1.00$1.00
financial-fact$0.20$0.20$0.20$0.20
text-excerpt (optional)$2.00$2.00$2.00$2.00

The Apify Free plan includes $5 of usage every month, no credit card needed, and this Actor's event charges come out of that $5. A company with 5 filings and 16 fact rows costs $0.0097, so $5 covers about 500 companies like that a month. Error rows are never charged; each run also pays a $0.00005 start fee.

Example (Free-plan prices): Apple and Microsoft, 5 filings and 16 fact rows each: 2 × $0.0015 + 10 × $0.001 + 32 × $0.0002 = $0.0194, about $0.02.

Paid Apify plans get the Store discount automatically: Starter = Bronze, Scale = Silver, Business = Gold. Set a maximum cost per run in the run options and the Actor stops cleanly at that limit.

How to use it

  1. Enter Companies as tickers, CIKs or names (for example AAPL, 0000789019, Tesla).
  2. Pick a Mode: filings, facts or both. Choose form types, a start date and the XBRL metrics you want.
  3. Click Start and export the rows as JSON, CSV or Excel, or call it from an AI agent through Apify's MCP server.

Example input

{
  "companies": [
    "AAPL"
  ],
  "mode": "both",
  "formTypes": [
    "10-K"
  ],
  "maxFilingsPerCompany": 1,
  "metrics": [
    "Assets"
  ],
  "maxFactsPerMetric": 1
}

Example output (2 rows from a real run on 2026-10-19, shortened to the main fields):

[
  {
    "type": "filing",
    "ticker": "AAPL",
    "cik": "0000320193",
    "form": "10-K",
    "filing_date": "2025-10-31",
    "report_date": "2025-09-27",
    "accession_number": "0000320193-25-000079",
    "document_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm",
    "source_url": "https://data.sec.gov/submissions/CIK0000320193.json"
  },
  {
    "type": "fact",
    "ticker": "AAPL",
    "concept": "Assets",
    "unit": "USD",
    "value": 383266000000,
    "end": "2026-06-27",
    "form": "10-Q",
    "fy": 2026,
    "fp": "Q3",
    "source_url": "https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json"
  }
]

FAQ

Is there a free SEC EDGAR API?

Yes: the SEC publishes free JSON endpoints at data.sec.gov, with a fair-access limit and no API key. This Actor reads those endpoints and returns tidy rows, so you skip writing the ticker-to-CIK mapping, paging and XBRL parsing yourself. On Apify's Free plan, $5 of usage a month covers roughly 500 company lookups with filings and facts.

How do I get 10-K and 10-Q filings as JSON?

Enter the ticker, set formTypes to 10-K and 10-Q, and each filing comes back as one JSON row with its accession number, dates and document URL.

Can I get revenue, net income and EPS from XBRL?

Yes. Set metrics (for example Revenues, NetIncomeLoss, EarningsPerShareDiluted) and each reported value becomes a fact row with its period and unit.

Does it give stock prices or real-time quotes?

No. It covers SEC filings and XBRL facts only, not market data, options or non-US registries.

Limits

Data comes from SEC EDGAR as published, with no warranty of completeness. Not investment advice.

When to use this (LLM / tool selection)

Use this Actor when an agent needs:

  • Map a ticker, CIK, or company name → official SEC CIK / entity metadata
  • Recent SEC filings (10-K, 10-Q, 8-K, …) with document URLs
  • XBRL company facts (Assets, NetIncomeLoss, EPS, …) from companyfacts
  • Optional plain-text excerpts from primary filing documents

Do not use it for realtime quotes, options chains, insider Form 4 parsing beyond what submissions expose, or non-US registries.

MCP connection (Apify hosted)

Connect any MCP client to Apify’s MCP server with this Actor scoped in:

{
  "mcpServers": {
    "fairquery-edgar": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=fetch-actor-details,fairquery/edgar-company-facts-filings"
    }
  }
}

Clients without OAuth can add "headers": {"Authorization": "Bearer <APIFY_TOKEN>"}.

MCP URL: https://mcp.apify.com/?tools=fetch-actor-details,fairquery/edgar-company-facts-filings

Actor id: fairquery/edgar-company-facts-filings (lowercase).

Example agent prompts

  • "Using the EDGAR tool, get Apple's and Microsoft's 10-K and 10-Q filings since 2023 and their latest Assets, NetIncomeLoss and diluted EPS."
  • "Find the CIK for Nvidia and list its last five 8-K filings with links."

Data sources (SEC fair access)

ResourceURL
Tickers maphttps://www.sec.gov/files/company_tickers.json
Submissionshttps://data.sec.gov/submissions/CIK##########.json
Company factshttps://data.sec.gov/api/xbrl/companyfacts/CIK##########.json

The Actor sends User-Agent: Fairquery info@getfairquery.com and throttles to ≤ 5 requests/second.

Input

FieldTypeDefaultDescription
companiesstring[]—Tickers (AAPL), CIKs (320193), or name fragments (Apple)
modefilings | facts | bothbothWhich row types to emit (always emits company when resolved)
formTypesstring[]["10-K","10-Q","8-K"]Form filter (case-insensitive); pass [] for all forms
sinceYYYY-MM-DD—Keep filings with filingDate >= since
maxFilingsPerCompanyint (1–200)5Cap filing rows per company
metricsstring[]["Assets","NetIncomeLoss","EarningsPerShareDiluted","Revenues"]XBRL concept names (case-insensitive); [] uses a curated 10-concept us-gaap set
maxFactsPerMetricint (1–50)4Most-recent values per concept/unit
includeTextExcerptboolfalseFetch primary document text
excerptMaxCharsint (200–20,000)2000Excerpt length cap in characters

Example input

{
  "companies": ["AAPL", "MSFT"],
  "mode": "both",
  "formTypes": ["10-K", "10-Q"],
  "since": "2023-01-01",
  "maxFilingsPerCompany": 5,
  "metrics": ["Assets", "NetIncomeLoss", "EarningsPerShareDiluted"],
  "includeTextExcerpt": false
}

Minimal:

{"companies":["AAPL"],"mode":"both","formTypes":["10-K"],"metrics":["Assets","NetIncomeLoss"]}

Output

One dataset row per company, filing, fact, text excerpt, or error. Every row includes:

  • schema_version — currently 1.0.0
  • type — company | filing | fact | text_excerpt | error
  • source_url — SEC URL the row came from
  • scraped_at — ISO timestamp

Error rows (machine-readable)

{
  "schema_version": "1.0.0",
  "type": "error",
  "code": "COMPANY_NOT_FOUND",
  "message": "Could not resolve company query: ZZNOTREAL",
  "retryable": false,
  "query": "ZZNOTREAL",
  "source_url": "https://data.sec.gov/"
}

Codes include: INPUT_EMPTY, COMPANY_NOT_FOUND, RESOLVE_FAILED, SUBMISSIONS_FETCH_FAILED, FACTS_FETCH_FAILED, EXCERPT_FETCH_FAILED.

Run summary

Key-value store record RUN_SUMMARY with counts, SEC request total, and echoed input.

Fact order: for each concept and unit, fact rows are sorted by period end date (newest first), then by filing date. A value that later filings re-report (for example the prior-year column of a 10-Q) is returned once, from the latest filing, so maxFactsPerMetric gives you the most recent periods.

Pricing

No subscription. You pay for these events:

EventPriceWhen
company-resolved$0.0015Each successfully resolved company row
filing$0.001Each filing row
financial-fact$0.0002Each XBRL fact row
text-excerpt$0.002Each primary-document text excerpt row
apify-actor-start$0.00005Once per run, per GB of memory (Apify default event)

Error rows (COMPANY_NOT_FOUND, FACTS_FETCH_FAILED, …) are not charged.

Worked example: {"companies": ["AAPL", "MSFT"], "mode": "both", "maxFilingsPerCompany": 5, "metrics": ["Assets", "NetIncomeLoss", "EarningsPerShareDiluted", "Revenues"], "maxFactsPerMetric": 4} returns 2 company rows, up to 10 filing rows and up to 32 fact rows: 2 × $0.0015 + 10 × $0.001 + 32 × $0.0002 = $0.02 at most, plus $0.00005. Turning on includeTextExcerpt adds $0.002 per filing.

To cap spend, use mode: "facts" or "filings", lower maxFilingsPerCompany / maxFactsPerMetric, or set a maximum cost per run in the run options (the Actor stops cleanly at the limit). Prices are from the Store pricing tab (October 2026).

Memory / runtime

Default 256 MB, timeout 300s. HTTP-only (no browser).

Troubleshooting

SymptomCause and fix
API call rejected: companies is requiredThe input had no companies. The sample tickers in the Console form are prefill only and are not sent with API calls.
COMPANY_NOT_FOUNDThe ticker, CIK or name fragment is not in the SEC ticker map (for example a non-US or delisted company). Try the CIK. These rows are free.
Fewer filings than expectedformTypes defaults to 10-K, 10-Q and 8-K. Pass [] for all forms, and check since and maxFilingsPerCompany.
A metric is missing from the factsThe company does not report that us-gaap concept (for example Revenues vs RevenueFromContractWithCustomerExcludingAssessedTax). Use the exact XBRL concept name. Some concepts stop being reported: Apple's Revenues values end in 2018, while RevenueFromContractWithCustomerExcludingAssessedTax is current.
SUBMISSIONS_FETCH_FAILED / FACTS_FETCH_FAILEDSEC servers were slow or rate-limiting (retryable: true). The Actor stays at or below 5 requests/second; re-run later.

FAQ

Where does the data come from?

From the SEC's public EDGAR JSON endpoints (ticker map, submissions, companyfacts), fetched with a declared User-Agent under SEC fair-access rules.

Is this investment advice?

No. It is a structured mirror of public SEC data for research and tooling.

Does it include real-time prices or non-US companies?

No. It covers SEC registrants only, with no market data.

How much does a run cost?

$0.0015 per resolved company on the free plan (lower on paid Apify plans), plus $0.001 per filing row, $0.0002 per fact row and $0.002 per excerpt. A two-company example with filings and facts costs about $0.02.

Can an AI agent call it?

Yes, through Apify MCP (see the scoped URL in the MCP section above).

Fairquery family

Other Fairquery tools on the Apify Store. Each one returns structured rows with machine-readable error codes, and error rows are never charged:

All Fairquery Actors: https://apify.com/fairquery

Data handling, security and support

  • Data retention: Each run keeps only its own storages in your Apify account (INPUT, the results dataset and a counts-only RUN_SUMMARY), under your Apify plan's retention. It queries only the SEC's public endpoints. You can delete run storages and named stores at any time in Apify Console or through the API. Fairquery's code sends nothing to Fairquery.
  • Security reports: email info@getfairquery.com.
  • Support: the Issues tab on this page or info@getfairquery.com. We aim to reply within 3 business days (a target, not an SLA).

Disclaimer

Data originates from the U.S. Securities and Exchange Commission EDGAR system. Fairquery and this Actor provide no warranty of completeness or fitness for trading decisions. This is not investment advice.

Links