Introducing EarningsBench: we tested 6 LLMs on SEC filing extraction. [Learn more.](https://www.financialdatasets.ai/news/earningsbench)

FINANCIAL DATASETS
Products:
  [Financial Statements](https://docs.financialdatasets.ai/api/financials/income-statements)
  [Stock Prices](https://docs.financialdatasets.ai/api/prices/historical)
  [SEC Filings](https://docs.financialdatasets.ai/api/filings/ticker)
  [Insider Trades](https://docs.financialdatasets.ai/api/insider-trades/insider-trades)
  [Institutional Holdings](https://docs.financialdatasets.ai/api/institutional-holdings/ticker)
  [Earnings](https://docs.financialdatasets.ai/api/earnings/earnings)
Developers:
  [Docs](https://docs.financialdatasets.ai/introduction)
  [Quickstart](https://docs.financialdatasets.ai/quickstart)
  [MCP Server](https://docs.financialdatasets.ai/mcp-server)
  [agents.md](https://www.financialdatasets.ai/agents.md)
  [OpenAPI Spec](https://www.financialdatasets.ai/openapi.json)
  [llms.txt](https://www.financialdatasets.ai/llms.txt)
  [Support](mailto:support@financialdatasets.ai)
Resources:
  [News](https://www.financialdatasets.ai/news)
  [Pricing](https://www.financialdatasets.ai/pricing)
  [Enterprise](https://www.financialdatasets.ai/enterprise)
  [Contact](https://www.financialdatasets.ai/contact)
[LOG IN](https://www.financialdatasets.ai/login)
[SIGN UP](https://www.financialdatasets.ai/register)

# Stock-Based Compensation API: 6.9 million reported lines from 8,600+ companies
2026-12-01 · 4 min read

Financial Datasets now serves stock-based compensation. A company's stock-based compensation is available at `/financials/stock-based-compensation`, as the company reported it in its annual and quarterly reports: the awards granted, vested, and forfeited, the awards not yet vested, stock options with their prices and terms, the expense, and the cost not yet recognized. The data covers 8,600+ US companies from 2016, with 6.9 million reported lines.

## Why

An income statement shows stock-based compensation as one expense number, or not at all. A cash flow statement adds it back as one number. One number does not say how many awards the company granted, at what fair value, or how much cost the company has still to recognize.

The answers are in the company's reports. Apple's latest annual report says that it granted 75.5 million restricted stock units in fiscal 2026 at an average fair value of $260.81, that 142.4 million units are not yet vested, and that $24.1 billion of cost is not yet recognized. That is future dilution and future expense. None of those numbers is on the income statement.

An analyst reads those numbers by hand, one report at a time. An AI agent that studies a company's dilution needs them as data. Each report is now one structured record.

## How to pull stock-based compensation

Pass a ticker and a period. This call returns Apple's restricted stock units from its latest annual report: the units granted, vested, forfeited, and not yet vested, and the cost not yet recognized.

```python
import requests

headers = {"X-API-KEY": "your_api_key_here"}

url = "https://api.financialdatasets.ai/financials/stock-based-compensation?ticker=AAPL&period=annual&limit=1"

wanted = (
    "Grants in Period",
    "Vested in Period",
    "Forfeited in Period",
    "Nonvested, Number",
    "Cost Not yet Recognized, Amount",
)

report = requests.get(url, headers=headers).json()["stock_based_compensation"][0]
print(report["ticker"], report["fiscal_period"], report["report_period"])
for table in report["tables"]:
    for group in [table] + table["rows"]:
        for line in group["line_items"]:
            if (line["standard_label"] or "").endswith(wanted):
                print(line["label"], line["value"])
```

```text
AAPL FY2026 2026-09-26
Total unrecognized compensation cost related to outstanding RSUs 24100000000
RSUs granted (in RSUs) 75538000
RSUs vested (in RSUs) 73529000
RSUs forfeited (in RSUs) 11178000
Ending balance (in RSUs) 142405000
```

A table also has rows. A row is usually one kind of award or one stock plan. This call lists Home Depot's kinds of award, each with the number granted and the fair value per share.

```python
url = "https://api.financialdatasets.ai/financials/stock-based-compensation?ticker=HD&period=annual&limit=1"

award = "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, "

report = requests.get(url, headers=headers).json()["stock_based_compensation"][0]
for table in report["tables"]:
    for row in table["rows"]:
        values = {line["standard_label"]: line["value"] for line in row["line_items"]}
        granted = values.get(award + "Grants in Period")
        fair_value = values.get(award + "Grants in Period, Weighted Average Grant Date Fair Value")
        if granted and fair_value:
            print(row["name"], granted, fair_value)
```

```text
Restricted Stock Units (RSUs) 1365000 365.48
Performance Share Awards 384000 315.42
```

Home Depot's latest annual report has 7 tables with 13 rows. The same report gives its stock options: 249,000 granted at an average exercise price of $364.09.

The filters:

- `ticker=AAPL` or `cik=0000320193`: one company. One of the two is required.
- `period=annual`, `quarterly`, `six_months_ytd`, or `nine_months_ytd`: required. There is no `ttm`.
- `limit=20`: up to 20 report periods in one request, newest first, 4 by default.
- `report_period_gte=2020-01-01`: reports from a date onward. `report_period` also takes the `_lte`, `_gt`, and `_lt` forms.

The [stock-based compensation API docs](https://docs.financialdatasets.ai/api/financials/stock-based-compensation) describe every filter and field.

## How the response is built

The response has three levels, and each level has the same fields at every company. It is the same shape as Debt Schedules.

1. **A report has `tables`.** Each table has a `name`, which is the company's own title.
2. **A table has `line_items` and `rows`.** The `line_items` are the lines for the company as a whole, such as the expense of the year. A row is usually one kind of award (restricted stock units, stock options, performance shares) or one stock plan. A row has a `name` and its own `line_items`.
3. **A line has `label`, `standard_label`, `value`, and `unit`.** The `label` is the company's own words. The `standard_label` is the standard accounting name of the line, the same at every company. It is `null` for a line the company defined itself.

Use `standard_label` to find the same line at every company. "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount" is the cost not yet recognized at Apple, at Home Depot, at Nvidia, and at every other company that reports it.

Standard names change a little over the years. Each report carries the names that were in use when it was filed, so a 2018 report can name a line differently than a 2025 report.

## Read stock-based compensation right

- **As reported.** Nothing is calculated. A total appears only when the company reported one.
- **Signs stay.** A sign is never changed. A value is the number the company filed.
- **Prices and percents.** A price or a fair value per share has the unit `USD/shares`. A rate of 4.1% is `0.041` with the unit `percent`.
- **Lengths of time.** A length of time is a string with the unit `duration`: `P3Y` is 3 years, and `P4Y8M12D` is 4 years, 8 months, and 12 days.
- **The fourth quarter.** A company files no separate report for its fourth quarter. With `period=quarterly`, the annual report stands in for it, with its balances only: the awards not yet vested, the options outstanding, and the cost not yet recognized at year end. Nothing is calculated for the fourth quarter.
- **The year so far.** A quarterly report states most award numbers for the fiscal year so far. `period=six_months_ytd` and `period=nine_months_ytd` return the second-quarter and third-quarter reports with those numbers. Apple granted 72.4 million restricted stock units in the first nine months of fiscal 2026. These two periods and the unit `duration` are also new on [Debt Schedules](https://www.financialdatasets.ai/news/debt-schedules).
- **Corrections.** A corrected report replaces the report it corrects.

## What is covered

- 8,600+ US companies, and 207,000+ reports from 2016: 54,000+ annual reports and 152,000+ quarterly reports.
- 6.9 million reported lines, each with a value and a unit.
- New reports within minutes of each filing.
- We checked 1,036 random lines from reports of 2016 to 2026 against the filed reports. All 1,036 match.
- AI agents reach the same data through the [MCP server](https://docs.financialdatasets.ai/mcp-server) with the `get_financials` tool and `dataset` set to `stock_based_compensation`, or pay per request with [x402](https://docs.financialdatasets.ai/x402) and no account.
Latest updates

December 1
[STOCK-BASED COMPENSATION API: 6.9 MILLION REPORTED LINES FROM 8,600+ COMPANIES](https://www.financialdatasets.ai/news/stock-based-compensation)

November 30
[DEBT SCHEDULES API: 5.2 MILLION DEBT LINES FROM 8,700+ COMPANIES](https://www.financialdatasets.ai/news/debt-schedules)

November 19
[TOKENIZED STOCK DATA FOR COINBASE AND BASE](https://www.financialdatasets.ai/news/tokenized-stocks)

November 19
[ANNOUNCING OUR PARTNERSHIP WITH TASKFUEL](https://www.financialdatasets.ai/news/taskfuel-partnership)

CONTACT
  [support@financialdatasets.ai](mailto:support@financialdatasets.ai)

LEGAL
  [Terms of Service](https://www.financialdatasets.ai/terms-of-use)
  [Privacy Policy](https://www.financialdatasets.ai/privacy-policy)
  [Subprocessors](https://www.financialdatasets.ai/subprocessors)

[X / TWITTER](https://x.com/findatasets)

Financial Datasets, Inc. 2026