Get stock-based compensation
curl --request GET \
--url https://api.financialdatasets.ai/financials/stock-based-compensation \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/stock-based-compensation"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.financialdatasets.ai/financials/stock-based-compensation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.financialdatasets.ai/financials/stock-based-compensation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.financialdatasets.ai/financials/stock-based-compensation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.financialdatasets.ai/financials/stock-based-compensation")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/stock-based-compensation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stock_based_compensation": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"period": "annual",
"currency": "<string>",
"accession_number": "<string>",
"filing_url": "<string>",
"tables": [
{
"name": "<string>",
"line_items": [
{
"label": "<string>",
"standard_label": "<string>",
"value": 123,
"unit": "<string>"
}
],
"rows": [
{
"name": "<string>",
"line_items": [
{
"label": "<string>",
"standard_label": "<string>",
"value": 123,
"unit": "<string>"
}
]
}
]
}
]
}
],
"next_page_url": "<string>"
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}Datasets
Stock-Based Compensation API
Stock-based compensation as reported: the awards granted, vested, and forfeited, the awards not yet vested, stock options with their prices and terms, and the cost not yet recognized, from 2016 onward.
GET
/
financials
/
stock-based-compensation
Get stock-based compensation
curl --request GET \
--url https://api.financialdatasets.ai/financials/stock-based-compensation \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/stock-based-compensation"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.financialdatasets.ai/financials/stock-based-compensation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.financialdatasets.ai/financials/stock-based-compensation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.financialdatasets.ai/financials/stock-based-compensation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.financialdatasets.ai/financials/stock-based-compensation")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/stock-based-compensation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stock_based_compensation": [
{
"ticker": "<string>",
"report_period": "2023-12-25",
"fiscal_period": "<string>",
"period": "annual",
"currency": "<string>",
"accession_number": "<string>",
"filing_url": "<string>",
"tables": [
{
"name": "<string>",
"line_items": [
{
"label": "<string>",
"standard_label": "<string>",
"value": 123,
"unit": "<string>"
}
],
"rows": [
{
"name": "<string>",
"line_items": [
{
"label": "<string>",
"standard_label": "<string>",
"value": 123,
"unit": "<string>"
}
]
}
]
}
]
}
],
"next_page_url": "<string>"
}{
"error": "Bad Request",
"message": "Invalid request parameters"
}{
"error": "Unauthorized",
"message": "Invalid API key provided"
}{
"error": "Payment Required",
"message": "This endpoint requires a paid subscription. Please upgrade your plan."
}Overview
The Financial Datasets stock-based compensation API returns the stock-based compensation footnote of a company’s annual and quarterly reports as the company reported it: 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. You can call it as a REST endpoint with an API key, or from Claude, ChatGPT, Cursor, and other AI apps through the MCP server, or pay per request with x402. Pricing starts at $20. Use it to answer questions like:- How many restricted stock units did Home Depot grant last year, and at what fair value?
- How much stock-based compensation cost has a company not yet recognized, and over how many years will it recognize it?
- How many stock options does a company have outstanding, and at what exercise price?
Coverage
| Companies | History | Updated |
|---|---|---|
| US companies | From 2016 | Within minutes of each new report |
Filtering the Data
tickerorcik: one is required.period(required):annual,quarterly,six_months_ytd, ornine_months_ytd. There is nottm.limit: the maximum number of report periods to return, newest first (default 4, maximum 20). Each page holds up to 10 periods, linked bynext_page_url.report_period,report_period_gte,report_period_lte,report_period_gt,report_period_lt: filter by report period date (YYYY-MM-DD).
Periods
period | Reports | Lines of each item | fiscal_period |
|---|---|---|---|
annual | Each annual report | All lines | FY2025 |
quarterly | Each quarterly report, and the annual report as the fourth quarter | The balances, and the numbers of the three months | 2025-Q3 |
six_months_ytd | Each second-quarter report | The balances, and the numbers of the first six months of the fiscal year | 2025-6M |
nine_months_ytd | Each third-quarter report | The balances, and the numbers of the first nine months of the fiscal year | 2025-9M |
six_months_ytd and nine_months_ytd to read them. A first-quarter report’s year so far is the quarter itself, so it is under quarterly.
A company files no separate report for its fourth quarter, so the annual report stands in for it under quarterly, 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.
Response
Each item understock_based_compensation is one report. It carries ticker, report_period, fiscal_period, period, currency, accession_number, and filing_url (a link to the report), and tables: the tables of the footnote, in the company’s own order.
A table:
| Field | Meaning |
|---|---|
name | The company’s own title of the table. |
line_items | The lines for the company as a whole. |
rows | The rows of the table. A row is usually one kind of award (restricted stock units, stock options, performance shares) or one stock plan. It can also be a vesting tranche, a group of employees, or another split the company reports. |
| Field | Meaning |
|---|---|
name | The company’s own words for the row. When the company names a row in two or more parts, the parts are joined with |. |
line_items | The lines of that row. |
| Field | Meaning |
|---|---|
label | The company’s own words for the line. |
standard_label | The standard accounting name of the line, the same at every company. null for a line the company defined itself. |
value | The value as the company filed it. |
unit | The unit of the value: a currency code such as USD, shares, USD/shares for a price or a fair value per share, percent, duration, date, pure for a plain number such as a ratio, or a unit the company defined itself. |
"rows": [], and a table with rows only has "line_items": [].
Every value is the number the company filed:
- Nothing is calculated. A total appears only when the company reported one.
- A sign is never changed.
- A rate of 4.1% is
0.041with the unitpercent. - A length of time is a string with the unit
duration:P3Yis 3 years, andP4Y8M12Dis 4 years, 8 months, and 12 days.
Standard Names
Usestandard_label to find the same line at every company. The most common names:
standard_label | What it is |
|---|---|
Share-Based Payment Arrangement, Expense | The stock-based compensation expense of the period |
Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount | The cost of awards not yet vested that the company has still to recognize |
Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition | The time over which the company will recognize that cost |
Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period | The stock awards granted, such as restricted stock units |
Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period | The stock awards vested |
Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number | The stock awards not yet vested |
Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value | The fair value per share of the stock awards granted |
Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Number | The stock options outstanding |
Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price | The exercise price of the stock options outstanding |
Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Available for Grant | The shares a plan can still grant |
Example
Stock-Based Compensation
import requests
# add your API key to the headers
headers = {
"X-API-KEY": "your_api_key_here"
}
# set your query params
params = {
"ticker": "HD", # stock ticker
"period": "annual", # annual, quarterly, six_months_ytd, or nine_months_ytd
"limit": 1, # number of report periods to return
}
# make API request
url = "https://api.financialdatasets.ai/financials/stock-based-compensation"
response = requests.get(url, headers=headers, params=params)
# parse the stock-based compensation from the response
stock_based_compensation = response.json().get("stock_based_compensation")
# print the latest report: each table, its lines, and its rows
def print_lines(line_items, indent):
for line in line_items:
print(f"{indent}{line['label']}: {line['value']} {line['unit']}")
for table in stock_based_compensation[0]["tables"]:
print(table["name"])
print_lines(table["line_items"], " ")
for row in table["rows"]:
print(" " + row["name"])
print_lines(row["line_items"], " ")
Response
{
"stock_based_compensation": [
{
"ticker": "HD",
"report_period": "2026-02-01",
"fiscal_period": "FY2025",
"period": "annual",
"currency": "USD",
"accession_number": "0001628280-26-019436",
"filing_url": "https://www.sec.gov/Archives/edgar/data/354950/000162828026019436/hd-20260201.htm",
"tables": [
{
"name": "STOCK-BASED COMPENSATION - Stock-based Compensation Expense (Details)",
"line_items": [
{
"label": "Pre-tax stock-based compensation expense",
"standard_label": "Share-Based Payment Arrangement, Expense",
"value": 524000000,
"unit": "USD"
},
{
"label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
"standard_label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
"value": 755000000,
"unit": "USD"
},
{
"label": "Weighted average period over which unrecognized compensation will be recognized",
"standard_label": "Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
"value": "P3Y",
"unit": "duration"
}
],
"rows": []
},
{
"name": "STOCK-BASED COMPENSATION - Restricted Stock and Performance Shares (Details)",
"line_items": [],
"rows": [
{
"name": "Restricted Stock Units (RSUs)",
"line_items": [
{
"label": "Granted (in shares)",
"standard_label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period",
"value": 1365000,
"unit": "shares"
},
{
"label": "Number of shares, ending balance (in shares)",
"standard_label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
"value": 3115000,
"unit": "shares"
},
{
"label": "Weighted average grant date fair value, granted (in dollars per share)",
"standard_label": "Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
"value": 365.48,
"unit": "USD/shares"
}
]
}
]
}
]
}
]
}
FAQ
What is the difference between this dataset and the income statement?
The income statement shows the stock-based compensation expense as one number, or not at all. This dataset gives the detail behind it: each kind of award with the number granted, vested, and forfeited, the awards not yet vested, the prices and terms of the stock options, and the cost the company has still to recognize.Is the data standardized?
No. The lines are the company’s own, in the company’s own order. Each standard line also carriesstandard_label, a name that is the same at every company, so you can find the same line across companies.
Why is a number from the report not in the response?
The dataset includes a line only when it is certain that the line is about stock-based compensation: a standard stock-based compensation line, or a line on the row of an award, a stock plan, or a vesting tranche. It includes only the amounts of the report’s own period, so an amount of an earlier year is in that year’s report.Why does a company return few quarterly reports?
Some companies give the stock-based compensation tables in the annual report only. For such a company,period=quarterly returns the annual reports as fourth quarters, with their balances.
What does a company with no stock-based compensation return?
An emptystock_based_compensation list. An empty response is not charged.
How far back does the data go?
To 2016.Which periods are available?
Annual, quarterly, the first six months, and the first nine months of the fiscal year. There is no TTM.Can an AI agent use this data?
Yes. Claude, ChatGPT, Cursor, and other MCP clients reach it through the Financial Datasets MCP server, with theget_financials tool and the dataset stock_based_compensation.Query Parameters
The kind of report. annual returns each annual report. quarterly returns each quarterly report, and the annual report as the fourth quarter with its balances only. six_months_ytd and nine_months_ytd return the second-quarter and third-quarter reports with the numbers of the fiscal year so far.
Available options:
annual, quarterly, six_months_ytd, nine_months_ytd