List raw SEC XBRL company facts
curl --request GET \
--url https://api.darvas.app/v1/financials/xbrl-facts \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/financials/xbrl-facts"
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.darvas.app/v1/financials/xbrl-facts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "AAPL",
"cik": "0000320193",
"facts": [
{
"cik": "0000320193",
"taxonomy": "us-gaap",
"tag": "LongTermDebtNoncurrent",
"unit": "USD",
"period_start": null,
"period_end": "2026-09-26",
"value": 68208000000,
"accession_number": "0000320193-26-000105",
"fiscal_year": 2026,
"fiscal_period": "FY",
"form": "10-K",
"filed": "2026-10-31",
"frame": "CY2026Q3I",
"filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
}
]
}{
"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"
}As-Reported & XBRL
SEC EDGAR XBRL Company Facts to JSON API
Query raw non-dimensional SEC EDGAR XBRL facts in the us-gaap, ifrs-full and dei taxonomies by ticker or CIK, with wildcard tag prefixes, forms and units.
List raw SEC XBRL company facts
curl --request GET \
--url https://api.darvas.app/v1/financials/xbrl-facts \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/financials/xbrl-facts"
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.darvas.app/v1/financials/xbrl-facts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "AAPL",
"cik": "0000320193",
"facts": [
{
"cik": "0000320193",
"taxonomy": "us-gaap",
"tag": "LongTermDebtNoncurrent",
"unit": "USD",
"period_start": null,
"period_end": "2026-09-26",
"value": 68208000000,
"accession_number": "0000320193-26-000105",
"fiscal_year": 2026,
"fiscal_period": "FY",
"form": "10-K",
"filed": "2026-10-31",
"frame": "CY2026Q3I",
"filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
}
]
}{
"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
This endpoint exposes raw, non-dimensional SEC EDGAR XBRL facts for one company across theus-gaap, ifrs-full, and dei taxonomies. Use it when standardized statements omit a footnote concept or when you want exact SEC concept tags, measurement units, calendar frames, and filing links before applying your own accounting rules.
| Coverage | Details |
|---|---|
| Company lookup | ticker (any case; ignored when cik is sent) or cik (with or without leading zeros); includes linked predecessor CIKs |
| Taxonomies | Optional taxonomy: us-gaap, ifrs-full, or dei |
| Tag matching | Optional exact concept tag (such as Revenues) or trailing wildcard prefix ending in * (such as LongTermDebt*) |
| Extra filters | Optional unit (USD, shares, USD/shares, pure), form (10-K, 10-Q, comma-separated or repeated), period_end_gte, and period_end_lte |
| Pagination | limit from 1 to 1000 facts per page (default 200), sorted newest period_end and filed first; paginate with next_page_url |
| MCP tool | list_xbrl_facts on the data API MCP server |
Fact fields, instants and pagination
Every row infacts preserves the SEC filing provenance alongside its accounting dates.
- Duration versus instant facts. Flow items from income and cash flow statements populate both
period_startandperiod_end. Balance-sheet and point-in-time disclosures setperiod_starttonulland record the balance date inperiod_end. - Wildcard concept search. Append
*totag(for exampletag=LongTermDebt*ortag=OperatingLease*) to pull every concept sharing a prefix in one query. Mid-string wildcards are rejected with400. - Restatements and comparative rows. A single fiscal period can appear in multiple filings (such as comparative columns in later
10-Kfilings or10-K/Aamendments). Inspectfiled,form,accession_number,frame(such asCY2026Q3I), andfiling_urlto choose point-in-time or latest restated values. - Cursor pagination. When more rows match,
next_page_urlcarries acursortoken that replaces all other query parameters. Passingperiod_end_lteearlier thanperiod_end_gtereturns400. - Related endpoints. For pre-built debt maturity ladders from these facts, see
/financials/debt-schedule. For standardized financial statements, see/financialsand/financials/as-reported. For dimensional segment breakdowns, see/financials/segments.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/financials/xbrl-facts",
headers=headers,
params={
"ticker": "AAPL",
"taxonomy": "us-gaap",
"tag": "LongTermDebt*",
"unit": "USD",
"form": "10-K",
"period_end_gte": "2024-01-01",
"limit": 100,
},
).json()
print(resp["ticker"], resp["cik"], "facts returned:", len(resp["facts"]))
for fact in resp["facts"][:5]:
print(fact["period_end"], fact["tag"], fact["value"], fact["form"], "filed:", fact["filed"])
# Pull all dei entity share count facts for Microsoft from 10-K and 10-Q filings
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/financials/xbrl-facts?ticker=MSFT&taxonomy=dei&tag=EntityCommonStockSharesOutstanding&form=10-K,10-Q&limit=20"
Authorizations
apiKeybearerKey
Query Parameters
Response
List raw SEC XBRL company facts: one page.
The answer of GET /financials/xbrl-facts.