Endpoints
/v1/scores
https://secfeedapi.com/v1/scoresAccounting quality and distress scores per fiscal year from XBRL: Piotroski F-score, Altman Z' and Z'' (book equity), Beneish M-score (8 variables) and Sloan accruals. Every component shows its formula, inputs, XBRL tags and source accession; missing inputs are listed, never imputed. Statistics, not ratings. Paid plans get up to 10 years; trial and free keys the latest year.
| Parameter | Type | Description | Example |
|---|---|---|---|
ticker | string | Ticker or CIK. | AAPL |
cik | integer | Company CIK, instead of ticker. | 320193 |
fiscalYear | integer | Only the fiscal year ending in this year. | 2024 |
model | string | piotroski, altman, beneish, accruals or all. Default all. | all |
- Send ticker or cik.
- Trial and free keys get the latest fiscal year (preview: true); paid plans up to 10 years.
- Altman and Beneish are not applicable to banks, insurers and real estate (SIC 6000 to 6999).
Request examples
Every response below is real output from the API, trimmed to the first records.
All four models, latest years
Each component with formula, inputs and accession.
curl -H "Authorization: Bearer $SECFEED_KEY" \ "https://secfeedapi.com/v1/scores?ticker=AAPL&model=all"
import os, requests
r = requests.get(
"https://secfeedapi.com/v1/scores",
params={'ticker': 'AAPL', 'model': 'all'},
headers={"Authorization": f"Bearer {os.environ['SECFEED_KEY']}"},
timeout=60,
)
r.raise_for_status()
print(r.json()){
"cik": 320193,
"entity": "Apple Inc.",
"sic": 3571,
"models": [
"piotroski",
"altman"
],
"note": "Scores are published academic statistics computed from the company's XBRL facts. They are not credit ratings, forecasts or advice. Every input carries its tag and source accession; a component with a missing input is null and listed in `missing`.",
"total": 10,
"years": [
{
"fiscalYearEnd": "2026-09-26",
"accessionNos": [
"0000320193-26-000026"
],
"piotroski": {
"score": 9,
"partialScore": 9,
"signalsKnown": 9,
"of": 9,
"missing": [],
"components": [
{
"name": "roaPositive",
"formula": "netIncome / total assets at start of year > 0",
"value": 1,
"inputs": {
"netIncome@2026-09-26": {
"value": 132175000000,
"tag": "NetIncomeLoss",
"accn": "0000320193-26-000026"
},
"assets@2025-09-27": {
"value": 359241000000,
"tag": "Assets",
"accn": "0000320193-26-000026"
}
},
"measure": 0.367928
},
{
"name": "cashFlowPositive",
"formula": "operatingCashFlow > 0",
"value": 1,
"inputs": {
"operatingCashFlow@2026-09-26": {
"value": 145097000000,
"tag": "NetCashProvidedByUsedInOperatingActivities",
"accn": "0000320193-26-000026"
}
},
"measure": 145097000000
}
],
"interpretation": "9 signals, each 1 or 0; the score is shown only when all nine could be computed (partialScore otherwise). Higher means more of the signals are favourable; it is not a rating."
},
"altman": {
"applicable": true,
"variables": {
...Only Piotroski
Nine signals of 1 or 0 and the score when all nine are computable.
curl -H "Authorization: Bearer $SECFEED_KEY" \ "https://secfeedapi.com/v1/scores?ticker=MSFT&model=piotroski"
import os, requests
r = requests.get(
"https://secfeedapi.com/v1/scores",
params={'ticker': 'MSFT', 'model': 'piotroski'},
headers={"Authorization": f"Bearer {os.environ['SECFEED_KEY']}"},
timeout=60,
)
r.raise_for_status()
print(r.json()){
"cik": 789019,
"entity": "MICROSOFT CORP",
"sic": 7372,
"models": [
"piotroski"
],
"note": "Scores are published academic statistics computed from the company's XBRL facts. They are not credit ratings, forecasts or advice. Every input carries its tag and source accession; a component with a missing input is null and listed in `missing`.",
"total": 10,
"years": [
{
"fiscalYearEnd": "2026-06-30",
"accessionNos": [
"0001193125-26-323660",
"0001193125-26-436133"
],
"piotroski": {
"score": 6,
"partialScore": 6,
"signalsKnown": 9,
"of": 9,
"missing": [],
"components": [
{
"name": "roaPositive",
"formula": "netIncome / total assets at start of year > 0",
"value": 1,
"inputs": {
"netIncome@2026-06-30": {
"value": 133749000000,
"tag": "NetIncomeLoss",
"accn": "0001193125-26-323660"
},
"assets@2025-06-30": {
"value": 619003000000,
"tag": "Assets",
"accn": "0001193125-26-323660"
}
},
"measure": 0.216072
},
{
"name": "cashFlowPositive",
"formula": "operatingCashFlow > 0",
"value": 1,
"inputs": {
"operatingCashFlow@2026-06-30": {
"value": 182935000000,
"tag": "NetCashProvidedByUsedInOperatingActivities",
"accn": "0001193125-26-323660"
}
},
"measure": 182935000000
}
],
"interpretation": "9 signals, each 1 or 0; the score is shown only when all nine could be computed (partialScore otherwise). Higher means more of the signals are favourable; it is not a rating."
}
},
{
"fiscalYearEnd": "2025-06-30",
...A bank: not applicable
Altman is marked not applicable for SIC 6000 to 6999.
curl -H "Authorization: Bearer $SECFEED_KEY" \ "https://secfeedapi.com/v1/scores?ticker=JPM&model=altman"
import os, requests
r = requests.get(
"https://secfeedapi.com/v1/scores",
params={'ticker': 'JPM', 'model': 'altman'},
headers={"Authorization": f"Bearer {os.environ['SECFEED_KEY']}"},
timeout=60,
)
r.raise_for_status()
print(r.json()){
"cik": 19617,
"entity": "JPMORGAN CHASE & CO",
"sic": 6021,
"models": [
"altman"
],
"note": "Scores are published academic statistics computed from the company's XBRL facts. They are not credit ratings, forecasts or advice. Every input carries its tag and source accession; a component with a missing input is null and listed in `missing`.",
"total": 10,
"years": [
{
"fiscalYearEnd": "2025-12-31",
"accessionNos": [
"0001628280-26-008131",
"0001628280-26-069523"
],
"altman": {
"applicable": false,
"reason": "Altman models were built for industrial companies; not applicable to banks, insurers, funds and real estate (SIC 6000 to 6999)."
}
},
{
"fiscalYearEnd": "2024-12-31",
"accessionNos": [
"0001628280-26-008131"
],
"altman": {
"applicable": false,
"reason": "Altman models were built for industrial companies; not applicable to banks, insurers, funds and real estate (SIC 6000 to 6999)."
}
}
]
}Response fields
| Field | Type | Meaning |
|---|---|---|
years[].fiscalYearEnd | string | Fiscal year end date. |
years[].piotroski.score | integer | 0 to 9, null when a signal could not be computed (see partialScore). |
years[].piotroski.components[] | array | Signal name, value 1 or 0, formula, inputs, missing. |
years[].altman.zPrime.value | number | Z' (1983, book equity). Zones in the same object. |
years[].altman.zDoublePrime.value | number | Z'' (1995, non-manufacturers). |
years[].beneish.value | number | M-score with variables DSRI, GMI, AQI, SGI, DEPI, SGAI, LVGI, TATA. |
years[].accruals.value | number | (net income - operating cash flow) / average total assets. |
years[].accessionNos | array | Accessions of the filings used. |
preview | boolean | True on trial and free keys. |
How to
How do I get one fiscal year?
Pass fiscalYear, the year the fiscal year ends in.
curl -H "Authorization: Bearer $SECFEED_KEY" \ "https://secfeedapi.com/v1/scores?ticker=AAPL&fiscalYear=2024"
Try it with your own key
Free key, no card needed.