Stock-Based Compensation API: 6.9 million reported lines from 8,600+ companies
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.
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"])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.
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)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=AAPLorcik=0000320193: one company. One of the two is required.period=annual,quarterly,six_months_ytd, ornine_months_ytd: required. There is nottm.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_periodalso takes the_lte,_gt, and_ltforms.
The stock-based compensation API docs 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.
- A report has
tables. Each table has aname, which is the company's own title. - A table has
line_itemsandrows. Theline_itemsare 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 anameand its ownline_items. - A line has
label,standard_label,value, andunit. Thelabelis the company's own words. Thestandard_labelis the standard accounting name of the line, the same at every company. It isnullfor 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% is0.041with the unitpercent. - Lengths of time. A length of time is a string with the unit
duration:P3Yis 3 years, andP4Y8M12Dis 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_ytdandperiod=nine_months_ytdreturn 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 unitdurationare also new on 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 with the
get_financialstool anddatasetset tostock_based_compensation, or pay per request with x402 and no account.
