Point-in-Time Fundamentals API: financials as they were filed, plus restatements
What a company's reported numbers looked like on any past date, and every value that was later revised, each with the filing behind it.
curl -H "Authorization: Bearer $SECFEED_KEY" \ "https://secfeedapi.com/v1/financials/point-in-time?ticker=AAPL&asOf=2021-01-01&concepts=revenue,netIncome"
import os, requests
r = requests.get(
"https://secfeedapi.com/v1/financials/point-in-time",
params={'ticker': 'AAPL', 'asOf': '2021-01-01', 'concepts': 'revenue,netIncome'},
headers={"Authorization": f"Bearer {os.environ['SECFEED_KEY']}"},
)
print(r.json()){
"cik": 320193,
"entityName": "Apple Inc.",
"asOf": "2021-01-01",
"period": "annual",
"concepts": {
"revenue": {
"tag": "RevenueFromContractWithCustomerExcludingAssessedTax",
"periods": [
{
"start": "2019-09-29",
"end": "2020-09-26",
"kind": "annual",
"unit": "USD",
"value": 274515000000,
"accessionNo": "0000320193-20-000096",
"form": "10-K",
"filed": "2020-10-30",
"fy": 2020,
"fp": "FY",
"restatedBeforeAsOf": false,
"laterRevisionExists": false
},
{
"start": "2018-09-30",
"end": "2019-09-28",
"kind": "annual",
"unit": "USD",
"value": 260174000000,
"accessionNo": "0000320193-20-000096",
"form": "10-K",
"filed": "2020-10-30",
"fy": 2020,
"fp": "FY",
"restatedBeforeAsOf": false,
"laterRevisionExists": false
}
]
},
"netIncome": {
"tag": "NetIncomeLoss",
"periods": [
{
"start": "2019-09-29",
"end": "2020-09-26",
"kind": "annual",
"unit": "USD",
"value": 57411000000,
"accessionNo": "0000320193-20-000096",
"form": "10-K",
"filed": "2020-10-30",
"fy": 2020,
"fp": "FY",
"restatedBeforeAsOf": false,
"laterRevisionExists": false
},
{
"start": "2018-09-30",
"end": "2019-09-28",
"kind": "annual",
"unit": "USD",
"value": 55256000000,
"accessionNo": "0000320193-20-000096",
"form": "10-K",
"filed": "2020-10-30",
"fy": 2020,
"fp": "FY",
"restatedBeforeAsOf": false,
"laterRevisionExists": false
}
...Overview
Backtests go wrong when they use today's restated numbers for a past date. Every XBRL fact carries the filing that reported it, so for one company this API returns, per period, the latest value filed on or before the date you ask for, with the accession and filed date, and says whether a later filing changed it.
The restatements endpoint lists every period whose number changed between filings, with all versions in order and the percent change. It works for one company at a time. Cross-company as-of screens are not offered. Values come from periodic reports (10-K, 10-Q, 20-F, 40-F); a figure that a company gave only in a press release is not included.
What you get
Built for developers who would rather not parse EDGAR.
The value an analyst could have seen on that day, never a later revision.
Accession number, form and filed date for the filing that reported it.
Each period says whether it was restated before the date and whether a later revision exists.
All versions of a changed number, oldest first, with the percent change.
Endpoints
Authenticate with Authorization: Bearer YOUR_KEY. Responses are JSON.
Fundamentals as they stood on a past date for one company: the latest XBRL value filed on or before asOf for each concept and period, with source accession and whether a later filing revised it. No cross-company as-of screens.
Parameters: ticker | cik, asOf (YYYY-MM-DD), concepts (comma list, max 12), period (annual, quarterly, instant, all), limit (max 20)
Values that changed between filings for one company: each version of a period's number with its accession, filed date and percent change.
Parameters: ticker | cik, concepts (comma list, max 12), period, minChangePct, limit (max 100)
Response fields
The main fields in every result. The raw filing data is always one level down.
| Field | Meaning |
|---|---|
concepts.<name>.periods[].value | The value as of the date. |
concepts.<name>.periods[].accessionNo | The filing that reported it. |
concepts.<name>.periods[].laterRevisionExists | True when a filing after the as-of date changed the number. |
restatements[].versions[] | Each reported version with value, accession, form and filed date. |
Use cases
- Backtests that must not see restated numbers
- Auditing how often and how much a company revised its reported figures
- Reproducing a figure exactly as it appeared in a past filing
Guides
FAQ
Can I screen all companies as of a date?
No. The API answers for one company per call.
Where does the data come from?
XBRL facts in 10-K, 10-Q, 20-F and 40-F filings on SEC EDGAR. Source: U.S. Securities and Exchange Commission.
Does it include 10-K/A amendments?
Yes. An amendment is a separate filing, so it shows up as a new version with its own accession.
Try the Point-in-Time Fundamentals API free
Free key, no card, no sales call.