# SEC Industry Financial Frames (`zinin/sec-industry-financial-frames`) Actor

Benchmark one US GAAP concept across companies using the official SEC EDGAR XBRL Frames API.

- **URL**: https://apify.com/zinin/sec-industry-financial-frames.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Industry Financial Frames

Compare one **US GAAP concept across companies for one period** with the official SEC EDGAR XBRL Frames API. It is built for industry benchmarking analysts who need ranked, source-linked facts without collecting filings company by company.

### Use cases

- Rank revenue, assets, income, or another US GAAP concept across issuers.
- Build comparable-company benchmarks and minimum-value screens.
- Export CIK and accession identifiers for audit trails and later EDGAR joins.

### Input

| Field | Meaning | Default / cap |
|---|---|---|
| `tag` | us-gaap concept | `Revenues`; 100 chars |
| `unit` | SEC unit token | `USD`; 100 chars |
| `period` | SEC period | `CY2024`; 100 chars |
| `contact` | Required identifying User-Agent contact | required; 200 chars |
| `minValue` | Inclusive numeric threshold | `0` |
| `topN` | Rows after descending sort | `100`; max 1,000 |

No API key is needed. Prefill:

```json
{"tag":"Revenues","unit":"USD","period":"CY2024","contact":"https://apify.com/zinin","minValue":0,"topN":100}
```

### Output example

```json
{"found":true,"taxonomy":"us-gaap","tag":"Revenues","cik":"0000002098","entityName":"ACME UNITED CORP","accession":"0001193125-26-102079","filedDate":null,"start":"2024-01-01","end":"2024-12-31","value":194489991,"unit":"USD","period":"CY2024","sourceUrl":"https://data.sec.gov/api/xbrl/frames/us-gaap/Revenues/USD/CY2024.json","source":"U.S. Securities and Exchange Commission, EDGAR XBRL Frames API","retrievedAt":"2026-11-10T19:49:50.000Z"}
```

Successful facts are billed atomically as `result-found`; `found:false` source/no-match status rows are free.

### Pricing

**$0.0025 per company frame value (`result-found`) on the Free plan, with automatic discounts on paid Apify plans: Bronze −5%, Silver −10%, Gold −15%, Platinum −18%, Diamond −20%. A small Actor start event ($0.002) applies per run** — includes the Actor start and each successful `result-found` fact.

### Limitations

- One sequential official JSON request per run; no HTML scraping or proxies.
- SEC determines tag/unit/period coverage. Reported facts are not normalized estimates, so analysts must assess comparability.
- The current Frames response has accession, CIK, entity, location, period dates, and value but no filing date. `filedDate` is `null`, never guessed; join by accession when needed.
- Ranking is numeric value descending after `minValue`; upstream duplicate facts are preserved.

### Source, terms, and attribution

Every row names the U.S. Securities and Exchange Commission, exact [SEC EDGAR XBRL Frames API](https://www.sec.gov/edgar/sec-api-documentation) URL, and retrieval time. A contact is required for the identifying User-Agent. Requests are sequential, time-limited, and use bounded retry only for 429/5xx responses.

Use remains subject to the SEC's [Privacy and Security Policy and fair-access guidance](https://www.sec.gov/about/privacy-information). SEC data is public; the SEC does not endorse this Actor. Preserve attribution, do not overload the service, and do not treat facts as investment advice.

### Related Actors

- [sec-edgar-watcher](https://apify.com/zinin/sec-edgar-watcher)
- [gaming-company-sec-filings-financial-monitor](https://apify.com/zinin/gaming-company-sec-filings-financial-monitor)
- [thirteen-f-tracker](https://apify.com/zinin/thirteen-f-tracker)
- [sec-filing-cik-timeline-reconciler](https://apify.com/zinin/sec-filing-cik-timeline-reconciler)

# Actor input Schema

## `tag` (type: `string`):

A us-gaap tag, such as Revenues.

## `unit` (type: `string`):

SEC frame unit token.

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

SEC frame period, such as CY2024.

## `contact` (type: `string`):

Required contact sent in the User-Agent under SEC fair-access guidance.

## `minValue` (type: `number`):

Inclusive minimum fact value.

## `topN` (type: `integer`):

Maximum facts, ordered by value descending.

## Actor input object example

```json
{
  "tag": "Revenues",
  "unit": "USD",
  "period": "CY2024",
  "contact": "https://apify.com/zinin",
  "minValue": 0,
  "topN": 100
}
```

# Actor output Schema

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

API URL for default dataset items.

# 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 = {
    "tag": "Revenues",
    "unit": "USD",
    "period": "CY2024",
    "contact": "https://apify.com/zinin",
    "minValue": 0,
    "topN": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/sec-industry-financial-frames").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 = {
    "tag": "Revenues",
    "unit": "USD",
    "period": "CY2024",
    "contact": "https://apify.com/zinin",
    "minValue": 0,
    "topN": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/sec-industry-financial-frames").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 '{
  "tag": "Revenues",
  "unit": "USD",
  "period": "CY2024",
  "contact": "https://apify.com/zinin",
  "minValue": 0,
  "topN": 100
}' |
apify call zinin/sec-industry-financial-frames --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinin/sec-industry-financial-frames"
        }
    }
}
```

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/AA152GPqQbwaT15Ek/builds/kSaf7YNIYeRAoMsQ3/openapi.json
