Screen companies
curl --request POST \
--url https://api.darvas.app/v1/financials/search/screener \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"filters": [
{
"field": "gross_margin",
"operator": "gte",
"value": 0.6
},
{
"field": "revenue",
"operator": "gt",
"value": 100000000000
}
]
}
'import requests
url = "https://api.darvas.app/v1/financials/search/screener"
payload = { "filters": [
{
"field": "gross_margin",
"operator": "gte",
"value": 0.6
},
{
"field": "revenue",
"operator": "gt",
"value": 100000000000
}
] }
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({
filters: [
{field: 'gross_margin', operator: 'gte', value: 0.6},
{field: 'revenue', operator: 'gt', value: 100000000000}
]
})
};
fetch('https://api.darvas.app/v1/financials/search/screener', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"results": [
{
"ticker": "MSFT",
"report_period": "2026-09-30",
"currency": "USD",
"sector": "Technology",
"industry": "Services-Prepackaged Software",
"gross_margin": 0.68,
"revenue": 331840000000
}
]
}{
"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
Fundamental Stock Screener API with Filters
Screen stocks over POST on the statement fields and ratios of their newest trailing twelve months, sorted and filtered, today or as known on a past day.
Screen companies
curl --request POST \
--url https://api.darvas.app/v1/financials/search/screener \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"filters": [
{
"field": "gross_margin",
"operator": "gte",
"value": 0.6
},
{
"field": "revenue",
"operator": "gt",
"value": 100000000000
}
]
}
'import requests
url = "https://api.darvas.app/v1/financials/search/screener"
payload = { "filters": [
{
"field": "gross_margin",
"operator": "gte",
"value": 0.6
},
{
"field": "revenue",
"operator": "gt",
"value": 100000000000
}
] }
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({
filters: [
{field: 'gross_margin', operator: 'gte', value: 0.6},
{field: 'revenue', operator: 'gt', value: 100000000000}
]
})
};
fetch('https://api.darvas.app/v1/financials/search/screener', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"results": [
{
"ticker": "MSFT",
"report_period": "2026-09-30",
"currency": "USD",
"sector": "Technology",
"industry": "Services-Prepackaged Software",
"gross_margin": 0.68,
"revenue": 331840000000
}
]
}{
"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
A screen reads each company’s newest trailing twelve months incurrency and keeps those that match every filter. Companies whose newest period ends more than 180 days before the screen date are left out.
MCP tool: screen_companies on the data API MCP server.
- Fields: every statement field, the ratios one period gives alone (margins, returns, liquidity, leverage, per share), and
sector,industryandticker. Screener fields lists them. - Operators:
gt,lt,gte,lteandeqon numbers;eqandinon text, in any case;intakes a list. order_bysorts on a numeric field beforelimitapplies; without it, results come sorted by ticker. Companies without a value come last.as_ofscreens what was public on that day: each company’s newest filing accepted by then. It reaches back to 2010.
sector is the SEC office that reviews the company’s filings and industry its SIC industry, as company facts gives them. They are not GICS classes, which are licensed.
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
body = requests.post(
"https://api.darvas.app/v1/financials/search/screener",
headers=headers,
json={
"filters": [
{"field": "gross_margin", "operator": "gte", "value": 0.5},
{"field": "revenue", "operator": "gt", "value": 10_000_000_000},
{"field": "debt_to_equity", "operator": "lt", "value": 1},
],
"order_by": {"field": "revenue", "direction": "desc"},
"limit": 25,
},
).json()
for company in body["results"]:
print(company["ticker"], company["revenue"], company["gross_margin"])
Authorizations
apiKeybearerKey
Body
application/json
The query of screen companies.
The filters and order of a screen.
Response
Screen companies: one page.
The answer of POST /financials/search/screener.