Home / Tutorials / Financial data
Financial data

Compare one financial metric across every public company

Use XBRL frames to get one concept, such as total assets, for every SEC filer in a single period, then rank and screen companies.

XBRL frames answer cross sectional questions: what did every company report for one concept in one period? /v1/xbrl/frames returns one value per company, so a screen across thousands of filers is a single API call.

Total assets at the end of 2025

The period CY2025Q4I means calendar 2025, fourth quarter, instant: balance sheet values as of the end of that quarter. Companies with other fiscal year ends are aligned to the closest calendar period.

import os
import requests

BASE = "https://secfeedapi.com"
HEADERS = {"Authorization": f"Bearer {os.environ['SECFEED_KEY']}"}

r = requests.get(f"{BASE}/v1/xbrl/frames", params={"concept": "Assets", "period": "CY2025Q4I"}, headers=HEADERS, timeout=120)
r.raise_for_status()
frame = r.json()
print(frame["label"], frame["ccp"], frame["uom"], "-", frame["pts"], "companies")
top = sorted(frame["data"], key=lambda d: d["val"], reverse=True)[:10]
for d in top:
    print(f"{d['entityName'][:40]:40} {d['val'] / 1e9:>10,.1f}B  as of {d['end']}")

Output:

Assets CY2025Q4I USD - 6163 companies
JPMORGAN CHASE & CO                         4,424.9B  as of 2025-12-31
FEDERAL NATIONAL MORTGAGE ASSOCIATION FA    4,317.5B  as of 2025-12-31
Federal Home Loan Mortgage Corporation      3,497.6B  as of 2025-12-31
BofA Finance LLC                            3,411.7B  as of 2025-12-31
Citigroup Inc                               2,657.2B  as of 2025-12-31
WELLS        FARGO & COMPANY/MN             2,148.6B  as of 2025-12-31
The Goldman Sachs Group, Inc.               1,809.3B  as of 2025-12-31
MORGAN STANLEY                              1,420.3B  as of 2025-12-31
BERKSHIRE HATHAWAY INC                      1,222.2B  as of 2025-12-31
AMAZON.COM, INC.                              818.0B  as of 2025-12-31

One call returned total assets for 6,163 filers. The ranking is computed locally in a few lines.

Period codes

CodeMeaningUse for
CY2025Calendar year 2025, durationIncome statement items: revenue, net income
CY2025Q3Third quarter 2025, durationQuarterly flows
CY2025Q4IInstant at the end of Q4 2025Balance sheet items: assets, cash, debt

Use unit for non dollar concepts, for example USD-per-shares for EPS or shares for share counts.

Each data point

accn is the accession number of the filing the value came from, cik and entityName identify the filer, loc is the filer's location, end is the period end date and val the value in the unit of the frame.

A concept over time for one company

The companion endpoint /v1/xbrl/company-concept?ticker=AAPL&concept=Revenues returns one concept for one company across every filing, which is ideal for time series charts. /v1/xbrl/company-facts returns every concept a company has ever reported.

Next steps

More financial data tutorials

Run this tutorial with your own key

500 free API calls a month. Every example on this page works on the free plan.

Get free API key →