Home / Developers / Financial Scores API (Piotroski, Altman, Beneish)
API reference

Financial Scores API (Piotroski, Altman, Beneish)

Piotroski F-score, Altman Z' and Z'', Beneish M-score and Sloan accruals per fiscal year, computed from a company's XBRL filings. Every component carries its formula, inputs, XBRL tags and source accession. Statistics, not ratings. Product overview →

Endpoints

/v1/scores

GEThttps://secfeedapi.com/v1/scores

Accounting 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.

ParameterTypeDescriptionExample
tickerstringTicker or CIK.AAPL
cikintegerCompany CIK, instead of ticker.320193
fiscalYearintegerOnly the fiscal year ending in this year.2024
modelstringpiotroski, 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

FieldTypeMeaning
years[].fiscalYearEndstringFiscal year end date.
years[].piotroski.scoreinteger0 to 9, null when a signal could not be computed (see partialScore).
years[].piotroski.components[]arraySignal name, value 1 or 0, formula, inputs, missing.
years[].altman.zPrime.valuenumberZ' (1983, book equity). Zones in the same object.
years[].altman.zDoublePrime.valuenumberZ'' (1995, non-manufacturers).
years[].beneish.valuenumberM-score with variables DSRI, GMI, AQI, SGI, DEPI, SGAI, LVGI, TATA.
years[].accruals.valuenumber(net income - operating cash flow) / average total assets.
years[].accessionNosarrayAccessions of the filings used.
previewbooleanTrue 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.

Get free API key →