Search line items
curl --request POST \
--url https://api.darvas.app/v1/financials/search/line-items \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"line_items": [
"revenue",
"net_income"
],
"tickers": [
"AAPL",
"MSFT"
]
}
'import requests
url = "https://api.darvas.app/v1/financials/search/line-items"
payload = {
"line_items": ["revenue", "net_income"],
"tickers": ["AAPL", "MSFT"]
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({line_items: ['revenue', 'net_income'], tickers: ['AAPL', 'MSFT']})
};
fetch('https://api.darvas.app/v1/financials/search/line-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"search_results": [
{
"ticker": "AAPL",
"report_period": "2026-09-26",
"period": "ttm",
"currency": "USD",
"revenue": 478834000000,
"net_income": 132180000000
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Financial Statements
Financial Line Items Multi-Ticker Query API
Pull specific standardized income, balance sheet or cash flow line items across multiple tickers and fiscal periods in a single POST request.
Search line items
curl --request POST \
--url https://api.darvas.app/v1/financials/search/line-items \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"line_items": [
"revenue",
"net_income"
],
"tickers": [
"AAPL",
"MSFT"
]
}
'import requests
url = "https://api.darvas.app/v1/financials/search/line-items"
payload = {
"line_items": ["revenue", "net_income"],
"tickers": ["AAPL", "MSFT"]
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({line_items: ['revenue', 'net_income'], tickers: ['AAPL', 'MSFT']})
};
fetch('https://api.darvas.app/v1/financials/search/line-items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"search_results": [
{
"ticker": "AAPL",
"report_period": "2026-09-26",
"period": "ttm",
"currency": "USD",
"revenue": 478834000000,
"net_income": 132180000000
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
Send the statement fields you need and the companies, and get the newestlimit periods of each, in the order of the tickers. Any field of the income statement, balance sheet or cash flow statement works; net_income is the income statement’s. A ticker Darvas does not know returns no rows.
MCP tool: search_line_items on the data API MCP server.
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
body = requests.post(
"https://api.darvas.app/v1/financials/search/line-items",
headers=headers,
json={"line_items": ["revenue", "free_cash_flow", "total_debt"], "tickers": ["AAPL", "MSFT", "NVDA"], "period": "ttm"},
).json()
for row in body["search_results"]:
print(row["ticker"], row["report_period"], row["revenue"], row["free_cash_flow"])
Authorizations
apiKeybearerKey
Body
application/json
The query of search line items.
The fields and companies of a line item search.