EDGAR Company Facts & Filings for Agents avatar

EDGAR Company Facts & Filings for Agents

Pricing

from $2.00 / 1,000 company resolveds

Go to Apify Store
EDGAR Company Facts & Filings for Agents

EDGAR Company Facts & Filings for Agents

Resolve US tickers, CIKs, or company names via SEC EDGAR and return structured filings and XBRL company facts for AI agents and MCP tools. Not investment advice.

Pricing

from $2.00 / 1,000 company resolveds

Rating

0.0

(0)

Developer

Fairquery

Fairquery

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 hours ago

Last modified

Share

Fairquery public Apify Store Actor that turns SEC EDGAR public JSON into agent-ready dataset rows for AI agents and MCP tools.

Not investment advice. Output is a structured mirror of public SEC EDGAR data for research and tooling. It is not a recommendation to buy, sell, or hold any security.

When to use this Actor (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.

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 fairquery@proton.me 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[][]Form filter; empty = all
sinceYYYY-MM-DD—Keep filings with filingDate >= since
maxFilingsPerCompanyint10Cap filing rows per company
metricsstring[]defaultsXBRL concept names; empty uses a curated us-gaap set
maxFactsPerMetricint8Most-recent values per concept/unit
includeTextExcerptboolfalseFetch primary document text
excerptMaxCharsint2000Excerpt length cap

Example input

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

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.

Pay-per-event (live)

Users are charged for these events (plus Apify’s default apify-actor-start):

EventPriceWhen
apify-actor-start$0.00005Once when the run starts (Apify default)
company-resolved$0.002Each successfully resolved company row
filing$0.002Each filing row
financial-fact$0.0005Each XBRL fact row
text-excerpt$0.003Each primary-document text excerpt row

Primary event for Store display: company-resolved.

Memory / runtime

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

MCP / Apify tools

Call this public Actor from agents via Apify MCP:

MCP server URL (scoped tools):

https://mcp.apify.com/?tools=fetch-actor-details,fairquery/edgar-company-facts-filings
  1. Connect your MCP client to that URL (or https://mcp.apify.com) with an Apify token.
  2. Use Actor id fairquery/edgar-company-facts-filings (lowercase username).
  3. Pass JSON input as below; read the default dataset items and RUN_SUMMARY.

Example conceptual MCP / Actor call:

{
"actor": "fairquery/edgar-company-facts-filings",
"input": {
"companies": ["AAPL"],
"mode": "facts",
"metrics": ["Assets", "NetIncomeLoss"]
}
}

Local development

npm install
# put input in storage/key_value_stores/default/INPUT.json
npx apify run
npm test

Optional local PPE dry-run: ACTOR_TEST_PAY_PER_EVENT=1 npx apify run.

Kits & templates

Optional guides from Fairquery for wiring this Actor into agents and automations (the Actor works fine without them):

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.