Get leases
curl --request GET \
--url https://api.financialdatasets.ai/financials/leases \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/leases"
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/leases', 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/leases",
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/leases"
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/leases")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/leases")
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{
"leases": [
{
"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
Leases API
Leases as reported: lease cost, right-of-use assets and lease liabilities, the payments due in each coming year, the remaining lease term, and the discount rate, from 2016 onward.
GET
/
financials
/
leases
Get leases
curl --request GET \
--url https://api.financialdatasets.ai/financials/leases \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.financialdatasets.ai/financials/leases"
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/leases', 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/leases",
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/leases"
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/leases")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.financialdatasets.ai/financials/leases")
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{
"leases": [
{
"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 leases API returns a company’s leases as the company reported them in its annual and quarterly reports: the lease cost and its parts, the right-of-use assets and the lease liabilities, the payments due in each coming year, the weighted average remaining lease term and discount rate, and the cash paid for leases. It covers operating leases and finance leases, and the lease income of a company that leases out its own property. 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 does Nike pay on its leases in each of the next five years?
- What is Starbucks’ average remaining lease term, and at what rate does it discount its leases?
- How large are Home Depot’s finance lease liabilities?
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. Lease cost and the cash paid for leases are numbers for a span of time. A quarterly report can state those 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 company files no separate report for its fourth quarter, so the annual report stands in for it under quarterly, with its balances only. Nothing is calculated for the fourth quarter.
Operating and Finance Leases
A company states its operating leases and its finance leases apart, and the standard names keep the difference:Operating Lease, Liability and Finance Lease, Liability are two lines. The same holds for the payments due in each year, the lease term, and the discount rate.
Payments Due and the Liability
The payments due are not discounted. The lease liability is their present value. The difference is the interest part of the payments, underLessee, Operating Lease, Liability, Undiscounted Excess Amount. Nike’s report at May 31, 2026 states payments of $3,592 million, less interest of $501 million, for a liability of $3,091 million.
Reports before 2019
Most companies adopted today’s lease rule in 2019. A report before that has no right-of-use asset and no lease liability. It states the rent expense and the minimum payments due in each coming year, under names such asOperating Leases, Rent Expense, Net and Operating Leases, Future Minimum Payments Due.
Response
Each item underleases 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. Most lease lines are here. |
rows | The rows of the table. A row can be the shortest and the longest lease term (Minimum, Maximum), the leases that have not started yet, 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, 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 is a fraction with the unit
percent:0.036is 3.6%. - A lease term has the unit
duration:P7Y8M12Dis 7 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 |
|---|---|
Operating Lease, Right-of-Use Asset | The asset for the right to use what the company leases |
Operating Lease, Liability | The present value of the lease payments still due |
Operating Lease, Liability, Current | The part of the liability due within one year |
Operating Lease, Liability, Noncurrent | The part of the liability due after one year |
Lessee, Operating Lease, Liability, to be Paid | The total of the payments still due, not discounted |
Lessee, Operating Lease, Liability, to be Paid, Year One | The payments due in the next year. Year Two to Year Five and after Year Five follow |
Lessee, Operating Lease, Liability, Undiscounted Excess Amount | The interest part of the payments still due |
Operating Lease, Weighted Average Remaining Lease Term | The average time the leases still run |
Operating Lease, Weighted Average Discount Rate, Percent | The average rate used to discount the payments |
Operating Lease, Cost | The cost of operating leases in the period |
Variable Lease, Cost | Lease payments that change, such as a share of a store’s sales |
Short-Term Lease, Cost | The cost of leases of 12 months or less |
Lease, Cost | The total lease cost |
Operating Lease, Payments | The cash paid for operating leases |
Right-of-Use Asset Obtained in Exchange for Operating Lease Liability | The new leases of the period |
Finance Lease, Liability | The present value of the finance lease payments still due |
Example
Leases
import requests
# add your API key to the headers
headers = {
"X-API-KEY": "your_api_key_here"
}
# set your query params
params = {
"ticker": "NKE", # 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/leases"
response = requests.get(url, headers=headers, params=params)
# parse the leases from the response
leases = response.json().get("leases")
# 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 leases[0]["tables"]:
print(table["name"])
print_lines(table["line_items"], " ")
for row in table["rows"]:
print(" " + row["name"])
print_lines(row["line_items"], " ")
Response
{
"leases": [
{
"ticker": "NKE",
"report_period": "2026-05-31",
"fiscal_period": "FY2026",
"period": "annual",
"currency": "USD",
"accession_number": "0000320187-26-000088",
"filing_url": "https://www.sec.gov/Archives/edgar/data/320187/000032018726000088/nke-20260531.htm",
"tables": [
{
"name": "CONSOLIDATED BALANCE SHEETS",
"line_items": [
{
"label": "Operating lease right-of-use assets, net",
"standard_label": "Operating Lease, Right-of-Use Asset",
"value": 2838000000,
"unit": "USD"
},
{
"label": "Current portion of operating lease liabilities",
"standard_label": "Operating Lease, Liability, Current",
"value": 478000000,
"unit": "USD"
},
{
"label": "Operating lease liabilities",
"standard_label": "Operating Lease, Liability, Noncurrent",
"value": 2613000000,
"unit": "USD"
}
],
"rows": []
},
{
"name": "LEASES - Additional Information (Details)",
"line_items": [
{
"label": "Operating lease cost",
"standard_label": "Operating Lease, Cost",
"value": 693000000,
"unit": "USD"
},
{
"label": "Variable lease cost",
"standard_label": "Variable Lease, Cost",
"value": 453000000,
"unit": "USD"
}
],
"rows": []
},
{
"name": "LEASES - Maturities (Details)",
"line_items": [
{
"label": "Fiscal 2027",
"standard_label": "Lessee, Operating Lease, Liability, to be Paid, Year One",
"value": 564000000,
"unit": "USD"
},
{
"label": "Fiscal 2028",
"standard_label": "Lessee, Operating Lease, Liability, to be Paid, Year Two",
"value": 553000000,
"unit": "USD"
},
{
"label": "Fiscal 2029",
"standard_label": "Lessee, Operating Lease, Liability, to be Paid, Year Three",
"value": 512000000,
"unit": "USD"
},
{
"label": "Fiscal 2030",
"standard_label": "Lessee, Operating Lease, Liability, to be Paid, Year Four",
"value": 456000000,
"unit": "USD"
},
{
"label": "Fiscal 2031",
"standard_label": "Lessee, Operating Lease, Liability, to be Paid, Year Five",
"value": 361000000,
"unit": "USD"
},
{
"label": "Thereafter",
"standard_label": "Lessee, Operating Lease, Liability, to be Paid, after Year Five",
"value": 1146000000,
"unit": "USD"
},
{
"label": "Total undiscounted future cash flows related to lease payments",
"standard_label": "Lessee, Operating Lease, Liability, to be Paid",
"value": 3592000000,
"unit": "USD"
},
{
"label": "Less interest",
"standard_label": "Lessee, Operating Lease, Liability, Undiscounted Excess Amount",
"value": 501000000,
"unit": "USD"
},
{
"label": "Present value of lease liabilities",
"standard_label": "Operating Lease, Liability",
"value": 3091000000,
"unit": "USD"
},
{
"label": "Minimum lease payments, agreements signed but not yet commenced",
"standard_label": null,
"value": 77000000,
"unit": "USD"
}
],
"rows": []
},
{
"name": "LEASES - Lease Term and Discount Rate (Details)",
"line_items": [
{
"label": "Weighted-average remaining lease term (in years)",
"standard_label": "Operating Lease, Weighted Average Remaining Lease Term",
"value": "P7Y8M12D",
"unit": "duration"
},
{
"label": "Weighted-average discount rate",
"standard_label": "Operating Lease, Weighted Average Discount Rate, Percent",
"value": 0.036,
"unit": "percent"
}
],
"rows": []
},
{
"name": "LEASES - Supplemental Cash Flows (Details)",
"line_items": [
{
"label": "Operating cash flows from operating leases",
"standard_label": "Operating Lease, Payments",
"value": 668000000,
"unit": "USD"
},
{
"label": "Operating lease right-of-use assets obtained in exchange for operating lease liabilities",
"standard_label": "Right-of-Use Asset Obtained in Exchange for Operating Lease Liability",
"value": 849000000,
"unit": "USD"
}
],
"rows": []
}
]
}
]
}
FAQ
What is the difference between this dataset and the balance sheet?
The balance sheet shows the lease assets and the lease liabilities as a few numbers, often inside other lines. This dataset gives the detail: the payments due in each coming year, the interest part, the lease cost and its parts, the lease term, and the discount rate.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 the total of the payments due higher than the lease liability?
The payments due are not discounted, and the liability is their present value. See Payments Due and the Liability.How do I read a lease term such as P7Y8M12D?
It is a length of time: 7 years, 8 months, and 12 days, which is about 7.7 years.
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 leases: a standard lease line, or a line the company defined itself in a table of lease lines. A line the company defined itself in a table of several subjects is left out. The dataset 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 leases return?
An emptyleases 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 leases.
Related
Announcement
Introducing the Leases API, on the Financial Datasets news page.
MCP server
Use Leases 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