# SEC EDGAR Financials for AI Agents (`accquantic/edgar-financials-for-agents`) Actor

Ticker in, clean JSON out: multi-year revenue, profit, margins, cash flow, balance sheet and recent filings from official SEC EDGAR data. One flat price per company. Built for MCP and AI agents.

- **URL**: https://apify.com/accquantic/edgar-financials-for-agents.md
- **Developed by:** [accquantic](https://apify.com/accquantic) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 company packs

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 EDGAR Financials for AI Agents

**Ticker in, clean financials out.** Give a US ticker (`AAPL`) or SEC CIK (`320193`) and get back one compact JSON "company pack" built from official SEC EDGAR data:

- Multi-year **annual** figures (10-K / 20-F) and recent **quarters** (10-Q): revenue, cost of revenue, gross profit, operating income, net income, diluted EPS, operating cash flow, capex, **free cash flow**, total assets and liabilities, equity, cash, long-term debt
- Ready-made **ratios**: gross, operating and net margin, debt-to-equity, year-over-year revenue growth
- A one-line plain-English **summary** an agent can quote directly
- **Recent filings** with direct links (filter by 10-K, 10-Q, 8-K, Form 4, DEF 14A…)
- The XBRL concept used for each metric, so every number is traceable

**One flat price per company. Unknown tickers and duplicates are never charged as packs.**

### Why this Actor

- **Built for AI agents and MCP.** Small, predictable output (about 6 KB per company), not thousands of raw XBRL facts. Works through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) in Claude, Cursor, VS Code / GitHub Copilot and any MCP client.
- **Handles the messy parts of XBRL.** It merges concepts when companies switch tags (for example `Revenues` to `RevenueFromContractWithCustomer…`), uses the latest restated value, keeps the original fiscal-year labels, and excludes year-to-date figures from quarterly series.
- **Official source, no scraping.** Uses the SEC's public `data.sec.gov` APIs with a compliant User-Agent and rate limit.
- **Simple pricing.** One event per company. No per-fact or per-filing metering to puzzle over.

### Input

```json
{
  "companies": ["AAPL", "MSFT", "BRK.B", "320193"],
  "annualPeriods": 5,
  "quarterlyPeriods": 4,
  "filingsLimit": 10,
  "filingForms": ["10-K", "10-Q", "8-K"]
}
```

| Field | Default | Notes |
|---|---|---|
| `companies` | required | Tickers or CIKs, up to 50 per run. Case-insensitive. A company given twice is charged once. |
| `annualPeriods` | 5 | 1–15 fiscal years, newest first |
| `quarterlyPeriods` | 4 | 0–12 quarters from 10-Q filings. The fiscal Q4 is not filed as a 10-Q, so it appears only in the annual figures. |
| `filingsLimit` | 10 | 0–50 recent filings with links |
| `filingForms` | all | Form types to list |

### Output (one dataset item per company, shortened)

```json
{
  "ticker": "AAPL",
  "name": "Apple Inc.",
  "industry": "Electronic Computers",
  "summary": "Apple Inc.: FY2026 (ended 2026-09-26) revenue $478.83B, net income $132.18B, revenue growth 15.1% YoY.",
  "annual": [
    { "fiscalYear": 2026, "periodEnd": "2026-09-26", "revenue": 478834000000, "netIncome": 132175000000,
      "freeCashFlow": 136056000000, "grossMargin": 0.4879, "netMargin": 0.276, "revenueGrowthYoY": 0.1506, "...": "..." }
  ],
  "quarterly": [ { "fiscalPeriod": "Q3", "fiscalYear": 2026, "periodEnd": "2026-06-27", "revenue": 109417000000, "...": "..." } ],
  "recentFilings": [ { "form": "10-K", "filed": "2026-11-03", "url": "https://www.sec.gov/Archives/edgar/data/320193/..." } ],
  "conceptsUsed": { "revenue": "RevenueFromContractWithCustomerExcludingAssessedTax" },
  "source": "SEC EDGAR (data.sec.gov). Figures as reported in XBRL; not investment advice."
}
```

Values are in US dollars as reported (EPS in USD per share). A metric is `null` when the company does not report it. Not-found inputs return `{ "error": "NOT_FOUND" }` and are not charged as packs.

### Use it from an AI agent (MCP)

Add the Apify MCP server to your client with this Actor as a tool:

```
https://mcp.apify.com?tools=accquantic/edgar-financials-for-agents
```

Then ask, for example: *"Compare NVIDIA's and AMD's gross margin and free cash flow over the last 3 years."*

### Pricing

Pay per event: **$0.01 per company pack returned**, plus Apify's standard $0.00005 run-start fee. Not-found tickers and duplicates are not charged as packs. The run stops cleanly at your spending limit and never returns results you did not pay for.

### Coverage and limits

- US SEC registrants that file XBRL financial statements: most US-listed companies, plus many foreign filers that file 20-F or 40-F in US-GAAP. IFRS filers return company info and filings but may have empty financials.
- Banks and insurers report revenue differently, so some fields such as gross profit may be `null`.
- Data is as fresh as EDGAR, which usually updates within minutes of a filing.

### FAQ

**Is this investment advice?** No. It returns figures exactly as companies reported them to the SEC.

**Do I need an SEC API key?** No. EDGAR's APIs are free and public.

**Something looks wrong?** Open an issue on the Actor's Issues tab with the ticker and field. Each value includes the filing accession number so it can be checked.

# Actor input Schema

## `companies` (type: `array`):

US-listed companies as tickers (AAPL, MSFT, BRK-B) or SEC CIK numbers (320193). Up to 50 per run. You pay once per company found; not-found inputs are free.

## `annualPeriods` (type: `integer`):

How many fiscal years to return, newest first (1-15).

## `quarterlyPeriods` (type: `integer`):

How many recent quarters (from 10-Q filings) to return, newest first. 0 to skip.

## `filingsLimit` (type: `integer`):

How many recent filings to list with direct links (0-50).

## `filingForms` (type: `array`):

Only list these form types, e.g. 10-K, 10-Q, 8-K, 4, DEF 14A. Empty means all.

## Actor input object example

```json
{
  "companies": [
    "AAPL"
  ],
  "annualPeriods": 5,
  "quarterlyPeriods": 4,
  "filingsLimit": 10,
  "filingForms": []
}
```

# Actor output Schema

## `companyPacks` (type: `string`):

All company packs from this run as JSON (one item per company).

## `overview` (type: `string`):

Short table view: ticker, name, industry and the one-line summary.

# 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 = {
    "companies": [
        "AAPL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("accquantic/edgar-financials-for-agents").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 = { "companies": ["AAPL"] }

# Run the Actor and wait for it to finish
run = client.actor("accquantic/edgar-financials-for-agents").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 '{
  "companies": [
    "AAPL"
  ]
}' |
apify call accquantic/edgar-financials-for-agents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,accquantic/edgar-financials-for-agents"
        }
    }
}
```

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/fq494YjzJLIfOZA5x/builds/fczaQpf6HN3BYObnL/openapi.json
