# SEC XBRL Reported Value Changes (`felixgoldwin/sec-xbrl-reported-value-changes`) Actor

Find changes between SEC filings for the same company, XBRL tag, unit and fiscal period. Get both reported values, their exact difference and the two filing links.

- **URL**: https://apify.com/felixgoldwin/sec-xbrl-reported-value-changes.md
- **Developed by:** [Felix GoldWin](https://apify.com/felixgoldwin) (community)
- **Categories:** 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 reported value changes

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

### Find financial amounts that changed between SEC filings

A company can show a different amount for the same fiscal period in a later filing. This Actor compares successive reported values from the SEC’s XBRL Company Concept API. Each changed value comes with its exact decimal difference and links to both filings. Use it to reconcile historical fundamentals, refresh financial models or check what changed in a new filing. [SEC API documentation](https://www.sec.gov/search-filings/edgar-application-programming-interfaces)

### Try a verified comparison

Paste this input into the Input tab and start the Actor. It checks Apple’s diluted earnings per share for its fiscal year ended September 28, 2019, as reported on October 30, 2020.

```json
{
  "ciks": ["0000320193"],
  "taxonomy": "us-gaap",
  "tag": "EarningsPerShareDiluted",
  "unit": "USD/shares",
  "periodStart": "2018-09-30",
  "periodEnd": "2019-09-28",
  "filedFrom": "2020-10-30",
  "asOf": "2020-10-30",
  "maxItems": 1
}
```

The SEC returned one change. Apple’s October 31, 2019 Form 10-K reported **11.89 USD/shares**. The October 30, 2020 Form 10-K reported **2.97 USD/shares** for the same dates. The row’s `delta` is **-8.92**. These are changes in how a historical period was presented. Determining the cause, including whether the filer formally restated its financial statements, requires checking the filings. [2019 filing](https://www.sec.gov/Archives/edgar/data/320193/000032019319000119/0000320193-19-000119-index.htm) · [2020 filing](https://www.sec.gov/Archives/edgar/data/320193/000032019320000096/0000320193-20-000096-index.htm)

### Schedule a portfolio check

This input checks assets for Apple and Microsoft. Save it as a task and schedule it daily. Each run checks filings dated on its UTC start day or the previous day. The earlier observation can predate the window. An overlap catches late-arriving data and can return a row again. Use `recordId` as the unique key in your downstream table. A new run with the same input saves and charges matching rows again.

```json
{
  "ciks": ["320193", "789019"],
  "taxonomy": "us-gaap",
  "tag": "Assets",
  "unit": "USD",
  "lookbackDays": 2,
  "maxItems": 25
}
```

The Console opens with a fixed historical example. For a rolling check, clear the example’s filing dates and fiscal period filters. For each newly filed observation, the Actor looks for a prior observation of the same fact and fiscal period. A first disclosure or an unchanged value produces zero change rows.

### Input

| Field | Meaning |
|---|---|
| `ciks` | 1–12 positive SEC company identifiers supplied as strings. Duplicate CIKs are fetched once. |
| `taxonomy`, `tag` | One case-sensitive standard concept per run. The defaults are `us-gaap` and `EarningsPerShareDiluted`. Other supported taxonomies are `ifrs-full`, `dei`, and `srt`. |
| `unit` | Optional exact unit, for example `USD`, `shares` or `USD/shares`. If empty, each unit is compared separately. |
| `periodStart`, `periodEnd` | Optional exact fiscal dates. For an instant fact such as assets, use `periodEnd` for its balance-sheet date and leave the start empty. |
| `filedFrom`, `asOf` | Inclusive filing-date window in YYYY-MM-DD. An omitted end defaults to the UTC run date. This is a filing-date filter on the SEC’s current extract. |
| `lookbackDays` | Rolling inclusive window length, 1–3,660 days, default 30. Use with an empty `filedFrom`. |
| `maxItems` | Global maximum saved changes, 1–1,000, default 100. |

### Output and coverage

The default dataset has one row per changed value. Export it as JSON or CSV, use the Actor’s API tab, or connect the dataset to a spreadsheet.

| Fields | What they mean |
|---|---|
| `cik`, `companyName`, `taxonomy`, `tag`, `unit` | The company, current SEC company name, financial concept and unit. |
| `periodStart`, `periodEnd` | Exact reporting dates. An instant fact has a null start. |
| `previousValue`, `value`, `delta`, `direction` | Previous value and newly reported value, their signed difference, and increase/decrease. Decimal strings preserve precision for large integers and fractional values. |
| `previousFiled`, `filed`, `previousForm`, `form` | Filing dates and form types. |
| `previousAccession`, `accession`, `previousFilingUrl`, `filingUrl`, `sourceUrl` | Filing identifiers, both SEC filing indexes and the concept endpoint used. |
| `recordId` | Stable identifier for this comparison and filing pair. |

Comparisons use entity-wide, standard-taxonomy facts in the SEC’s Company Concept API. Company-specific extension tags and segment-by-segment results are outside its coverage. A different period start, end, unit, tag or CIK creates a separate series. When a filing repeats the previous value, it becomes the latest baseline. Equal values on the same filing date collapse to one observation using the first accession in lexical order. Conflicting values on the same day, or the same accession dated twice for the same period, break the comparison chain. A later unambiguous day establishes a fresh baseline.

Companies run in input order. Within a company the newest changes come first, followed by stable comparison ID for ties. Earlier companies can fill the result cap. In **Output → Run coverage**, open `SUMMARY` for ambiguous dates, units observed, companies checked, omitted companies, HTTP request count, and the reason processing stopped. A missing concept is reported there. A failed source request creates no billable data row. If all attempted lookups yield source errors and no valid concept, the run fails after saving the summary.

### Pricing and access

At 256 MB the intended rate is **$0.001 per run start plus $2.00 per 1,000 saved changes**. A one-row check costs $0.003 at those rates. A successful zero-row check costs only the start charge. Set `maxItems` and Apify’s maximum charge per run to control spending. The Pricing tab shows the active rates.

The Actor needs no SEC API key or proxy. It identifies the creator in its HTTP User-Agent and requests each company serially, with a delay between requests. Each CIK uses one Company Concept lookup, with at most one retry on a network or temporary gateway error. A 403, 429 or long server-requested wait pauses the watchlist. The SEC permits reuse of public filing content. This independently developed Actor uses numeric observations and links to the original filings. [SEC fair-access guidance](https://www.sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data) · [SEC reuse FAQ](https://www.sec.gov/about/webmaster-frequently-asked-questions)

#### Overlapping scheduled runs

Cloud runs of **version 0.2 and later** coordinate SEC lookups using one expiring request-queue permit for this Actor and the same Apify account. Every holder waits 500 ms before its first SEC request. Every attempt, including a retry, checks the lease and reserves enough time for the 15-second request timeout. A normal run releases its permit. After an interrupted run the permit expires within 45 seconds of its last acquisition or renewal.

When a concurrent run holds the permit, a new run waits up to about eight seconds for acquisition (individual Apify API calls have a three-second timeout). If it remains busy, the new run saves no change rows for the deferred work and records `coordination_busy` in `SUMMARY`. A run that cannot verify the permit records `coordination_unavailable` and fails. A run-start charge can still apply. Unauthenticated local runs also fail closed before contacting the SEC.

Apify grants limited-permission runs access to a named queue first created by this Actor for that account. Leave the queue with prefix `sec-xbrl-fair-access-v1-` intact. The permit coordinates these cloud runs across machines. Runs by other Apify accounts, other Actors, older pinned builds and callers that delete or modify the queue are outside its scope. A container suspended by the operating system at the instant of HTTP dispatch can outlive a lease. The SEC endpoint does not validate Apify lock ownership. The queue stores one fixed marker with no financial data or credentials. [Named storage permissions](https://docs.apify.com/actors/development/permissions/migration-guide#the-actor-accesses-named-storages) · [Atomic queue locks](https://docs.apify.com/api/v2/request-queue-head-lock-post)

# Actor input Schema

## `ciks` (type: `array`):

Enter up to 12 positive SEC Central Index Keys as strings. Short forms are zero-padded. Duplicates are checked once.

## `taxonomy` (type: `string`):

Standard SEC XBRL taxonomy for the concept.

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

Case-sensitive concept name such as EarningsPerShareDiluted or Assets.

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

Optional exact SEC unit. Leave empty to compare each available unit separately.

## `periodStart` (type: `string`):

Optional exact start date, YYYY-MM-DD. Specifying a start excludes instant facts.

## `periodEnd` (type: `string`):

Optional exact period end or instant date, YYYY-MM-DD.

## `filedFrom` (type: `string`):

Optional inclusive filing date, YYYY-MM-DD. Leave empty to use lookback days. Prior observations can come from before the window.

## `asOf` (type: `string`):

Optional inclusive filing date, YYYY-MM-DD. Defaults to the run start date in UTC. Clear this for a rolling schedule.

## `lookbackDays` (type: `integer`):

Defaults to 30 when the filing window start is empty. Includes the filing window end day.

## `maxItems` (type: `integer`):

Global maximum number of saved changes across the CIKs.

## Actor input object example

```json
{
  "ciks": [
    "0000320193"
  ],
  "taxonomy": "us-gaap",
  "tag": "EarningsPerShareDiluted",
  "unit": "USD/shares",
  "periodStart": "2018-09-30",
  "periodEnd": "2019-09-28",
  "filedFrom": "2020-10-30",
  "asOf": "2020-10-30",
  "maxItems": 100
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per changed period and unit.

## `summary` (type: `string`):

Source coverage, ambiguities, caps and request errors.

# 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 = {
    "ciks": [
        "0000320193"
    ],
    "unit": "USD/shares",
    "periodStart": "2018-09-30",
    "periodEnd": "2019-09-28",
    "filedFrom": "2020-10-30",
    "asOf": "2020-10-30"
};

// Run the Actor and wait for it to finish
const run = await client.actor("felixgoldwin/sec-xbrl-reported-value-changes").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 = {
    "ciks": ["0000320193"],
    "unit": "USD/shares",
    "periodStart": "2018-09-30",
    "periodEnd": "2019-09-28",
    "filedFrom": "2020-10-30",
    "asOf": "2020-10-30",
}

# Run the Actor and wait for it to finish
run = client.actor("felixgoldwin/sec-xbrl-reported-value-changes").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 '{
  "ciks": [
    "0000320193"
  ],
  "unit": "USD/shares",
  "periodStart": "2018-09-30",
  "periodEnd": "2019-09-28",
  "filedFrom": "2020-10-30",
  "asOf": "2020-10-30"
}' |
apify call felixgoldwin/sec-xbrl-reported-value-changes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,felixgoldwin/sec-xbrl-reported-value-changes"
        }
    }
}
```

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/ZhxA9OGnb709fbfUI/builds/3wKfepcL2oQ6EgLxb/openapi.json
