Get deferred revenue
curl --request GET \
--url https://api.financialdatasets.ai/financials/deferred-revenue \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/deferred-revenue"
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/deferred-revenue', 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/deferred-revenue",
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/deferred-revenue"
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/deferred-revenue")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/deferred-revenue")
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{
"deferred_revenue": [
{
"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
Deferred Revenue API
Deferred revenue and revenue under contract (remaining performance obligations) as reported: the balances, the revenue recognized from them, and the time bands in which the company expects to earn the rest, from 2016 onward.
GET
/
financials
/
deferred-revenue
Get deferred revenue
curl --request GET \
--url https://api.financialdatasets.ai/financials/deferred-revenue \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/deferred-revenue"
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/deferred-revenue', 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/deferred-revenue",
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/deferred-revenue"
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/deferred-revenue")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/deferred-revenue")
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{
"deferred_revenue": [
{
"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 deferred revenue API returns a company’s deferred revenue and the revenue it has under contract as the company reported them in its annual and quarterly reports: the deferred revenue balances, the revenue recognized from them in the period, the revenue under contract that is not earned yet (remaining performance obligations, often called RPO or backlog), and the time bands in which the company expects to earn it. 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 much revenue does Oracle have under contract, and how much of it does Oracle expect to earn in the next 12 months?
- How much deferred revenue does Microsoft hold in each segment?
- How much revenue did a company recognize from the deferred revenue it held at the start of the year?
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 |
period returns them. The revenue recognized from deferred revenue is a number for a span of time. A quarterly report can state it for the three months, for the fiscal year so far, or both. Use quarterly to read the three months, and six_months_ytd or nine_months_ytd to read the fiscal year so far. 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 deferred revenue, the revenue under contract, and its time bands at year end. Nothing is calculated for the fourth quarter.
Time Bands
A company states the revenue it has under contract and has not earned yet, and when it expects to earn it. Each span of time is one row of a table: a time band.| Part of the row | Meaning |
|---|---|
name | The first day of the band, such as 2026-06-01. |
A line with the unit percent | The share of the revenue under contract that the company expects to earn in the band: 0.12 is 12%. |
A line with the unit USD | The dollars the company expects to earn in the band. |
A line with the unit duration | The length of the band: P12M is 12 months, and P2Y is 2 years. |
Row name | Share | Length | In words |
|---|---|---|---|
2026-06-01 | 0.12 | P12M | 12% in the 12 months from June 1, 2026 |
2027-06-01 | 0.34 | P2Y | 34% in the 2 years from June 1, 2027 |
2029-06-01 | 0.34 | P2Y | 34% in the 2 years from June 1, 2029 |
2026-07-01 | Commercial Customers.
Response
Each item underdeferred_revenue is one report. It carries ticker, report_period, fiscal_period, period, currency, accession_number, and filing_url (a link to the report), and tables, 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 time band of the revenue under contract. It can also be a segment, a product line, a kind of customer, or another split the company reports. |
| Field | Meaning |
|---|---|
name | The company’s own words for the row, or the first day of a time band. 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, 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. The dollars of a time band appear only when the company reported them.
- A sign is never changed.
- A percentage is a fraction with the unit
percent:0.12is 12%. - A length of time is a string with the unit
duration:P12Mis 12 months.
Standard Names
Usestandard_label to find the same line at every company. The most common names:
standard_label | What it is |
|---|---|
Contract with Customer, Liability, Current | Deferred revenue that the company expects to earn within a year |
Contract with Customer, Liability, Noncurrent | Deferred revenue that the company expects to earn after a year |
Contract with Customer, Liability | Total deferred revenue |
Contract with Customer, Liability, Revenue Recognized | Revenue recognized in the period from the deferred revenue held at the start of the period |
Deferred Revenue, Current | Deferred revenue within a year, under the second standard name |
Deferred Revenue, Noncurrent | Deferred revenue after a year, under the second standard name |
Deferred Revenue | Total deferred revenue, under the second standard name |
Revenue, Remaining Performance Obligation, Amount | The revenue under contract that the company has not earned yet (RPO) |
Revenue, Remaining Performance Obligation, Percentage | The share of the revenue under contract in one time band |
Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period | The length of one time band |
Contract with Customer, Asset, after Allowance for Credit Loss | Contract assets: revenue the company earned and cannot bill yet |
Contract with Customer, Performance Obligation Satisfied in Previous Period | Revenue recognized in the period for work done in earlier periods |
Contract with Customer, Liability and Deferred Revenue. A company uses one or the other, and some use both, so match on both.
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.
Example
Deferred Revenue
import requests
# add your API key to the headers
headers = {
"X-API-KEY": "your_api_key_here"
}
# set your query params
params = {
"ticker": "MSFT", # 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/deferred-revenue"
response = requests.get(url, headers=headers, params=params)
# parse the deferred revenue from the response
deferred_revenue = response.json().get("deferred_revenue")
# 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 deferred_revenue[0]["tables"]:
print(table["name"])
print_lines(table["line_items"], " ")
for row in table["rows"]:
print(" " + row["name"])
print_lines(row["line_items"], " ")
Response
{
"deferred_revenue": [
{
"ticker": "MSFT",
"report_period": "2026-06-30",
"fiscal_period": "FY2026",
"period": "annual",
"currency": "USD",
"accession_number": "0001193125-26-323660",
"filing_url": "https://www.sec.gov/Archives/edgar/data/789019/000119312526323660/msft-20260630.htm",
"tables": [
{
"name": "BALANCE SHEETS",
"line_items": [
{
"label": "Short-term unearned revenue",
"standard_label": "Contract with Customer, Liability, Current",
"value": 72965000000,
"unit": "USD"
},
{
"label": "Long-term unearned revenue",
"standard_label": "Contract with Customer, Liability, Noncurrent",
"value": 2747000000,
"unit": "USD"
}
],
"rows": []
},
{
"name": "Unearned Revenue by Segment (Detail)",
"line_items": [
{
"label": "Unearned revenue",
"standard_label": "Contract with Customer, Liability",
"value": 75712000000,
"unit": "USD"
}
],
"rows": [
{
"name": "Productivity and Business Processes",
"line_items": [
{
"label": "Unearned revenue",
"standard_label": "Contract with Customer, Liability",
"value": 57936000000,
"unit": "USD"
}
]
},
{
"name": "Intelligent Cloud",
"line_items": [
{
"label": "Unearned revenue",
"standard_label": "Contract with Customer, Liability",
"value": 14942000000,
"unit": "USD"
}
]
},
{
"name": "More Personal Computing",
"line_items": [
{
"label": "Unearned revenue",
"standard_label": "Contract with Customer, Liability",
"value": 2834000000,
"unit": "USD"
}
]
}
]
},
{
"name": "Unearned Revenue - Additional Information (Detail)",
"line_items": [
{
"label": "Revenue allocated to remaining performance obligations",
"standard_label": "Revenue, Remaining Performance Obligation, Amount",
"value": 684000000000,
"unit": "USD"
}
],
"rows": [
{
"name": "Commercial Customers",
"line_items": [
{
"label": "Revenue allocated to remaining performance obligations",
"standard_label": "Revenue, Remaining Performance Obligation, Amount",
"value": 678000000000,
"unit": "USD"
}
]
}
]
},
{
"name": "Unearned Revenue - Remaining Performance Obligation - Additional Information (Detail)",
"line_items": [],
"rows": [
{
"name": "2026-07-01",
"line_items": [
{
"label": "Revenue allocated to remaining performance obligations, percentage of revenue expected to be recognized",
"standard_label": "Revenue, Remaining Performance Obligation, Percentage",
"value": 0.3,
"unit": "percent"
},
{
"label": "Revenue allocated to remaining performance obligations, expected timing of satisfaction",
"standard_label": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period",
"value": "P12M",
"unit": "duration"
}
]
},
{
"name": "2026-07-01 | Commercial Customers",
"line_items": [
{
"label": "Revenue allocated to remaining performance obligations, percentage of revenue expected to be recognized",
"standard_label": "Revenue, Remaining Performance Obligation, Percentage",
"value": 0.3,
"unit": "percent"
},
{
"label": "Revenue allocated to remaining performance obligations, expected timing of satisfaction",
"standard_label": "Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period",
"value": "P12M",
"unit": "duration"
}
]
}
]
}
]
}
]
}
FAQ
What is the difference between this dataset and the balance sheet?
The balance sheet shows deferred revenue as one or two balances. This dataset adds the detail around them: the revenue recognized from deferred revenue in the period, the balances by segment or product when the company reports them, the revenue under contract that is not on the balance sheet, and when the company expects to earn it.What is revenue under contract?
Revenue that customers have signed contracts for and that the company has not earned yet. Companies call it remaining performance obligations, RPO, or backlog. It holds the deferred revenue, and also the amounts under contract that the company has not billed yet, so it is usually the larger number.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.
Are the dollars of a time band calculated?
No. A band carries dollars only when the company states them. When the company states a share, multiply the share by the revenue under contract yourself.Why do the shares of the time bands not add up to 100%?
A company can report bands for only a part of its revenue under contract. The API returns the bands the company reported and adds none.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 deferred revenue or revenue under contract: a standard line for deferred revenue, contract balances, or remaining performance obligations, or a line on the row of a time band. It includes only the amounts of the report’s own period, so an amount of an earlier year is in that year’s report.What does a company with no deferred revenue return?
An emptydeferred_revenue list. An empty response is not charged.
How far back does the data go?
To 2016. Most companies report their revenue under contract and its time bands from 2018 onward, when the accounting rule that requires them took effect.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 deferred_revenue.
Related
Announcement
Introducing the Deferred Revenue API, on the Financial Datasets news page.
MCP server
Use Deferred Revenue from Claude, ChatGPT, Cursor, and other AI apps.
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