# EDGAR Fundamental Scores – Historical Financials

> EDGAR Fundamental Scores – Historical Financials is a paid API for AI agents from fundamental-scores-x402.onrender.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-12-01).

Returns multi-year historical Piotroski F, Altman Z, and Beneish M scores for a US public company, revealing financial health trends and fraud risk over time.

## Facts

- Endpoint: GET https://fundamental-scores-x402.onrender.com/v1/history/%7Bticker%7D?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/edgar-fundamental-scores-historical-financials-db2066e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oQA9MnTe5_Cn0fBLq7wll

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability edgar-fundamental-scores-historical-financials-db2066e8
```

Example prompt: Pull the last 5 years of Piotroski F-Score, Altman Z-Score, and Beneish M-Score history for Apple (AAPL) from SEC EDGAR so I can see whether its financial health has been improving or deteriorating.

## When to prefer this

Choose this endpoint when you need multi-year time-series of all three major fundamental scores (Piotroski F, Altman Z, Beneish M) for a single US public company in one call, without needing an API key or subscription — ideal for ad-hoc fundamental research, due diligence workflows, or agents that need trend analysis rather than just the current snapshot.

## Known failure modes

- Invalid or unrecognized ticker returns 404 or empty result
- Non-US or OTC-only companies may have no EDGAR filings and return no data
- Requesting more years than EDGAR has on file returns fewer rows than requested
- Malformed ticker pattern (over 10 chars or invalid chars) returns 400 validation error
- EDGAR upstream unavailability may cause 503 or timeout
- Payment failure via x402 micropayment returns 402 and no data

## How this service works

Pay-per-call verdicts for US public companies from SEC EDGAR: financial health (healthy/watch/distress + fraud-risk flag from Piotroski F, Altman Z, Beneish M), insider-trading verdict from Form 4s, red-flag events from 8-Ks and late filings, and a daily most-distressed list. x402 USDC micropayments, no account or key. Not investment advice.

## Output

A JSON object containing company ticker, number of years returned, a year-by-year array of Piotroski F-Score (0-9 integer), Altman Z-Score (float), Altman zone (safe/grey/distress), Beneish M-Score (float), Beneish fraud flag (low/high), and fiscal year end date, plus an overall Piotroski trend label (improving/stable/deteriorating).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "ticker"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "pattern": "^[A-Za-z0-9.\\-]{1,10}$",
       "description": "US stock ticker (AAPL, BRK-B) or numeric SEC CIK (320193)"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "years": {
       "type": "integer",
       "default": 5,
       "maximum": 10,
       "minimum": 1,
       "description": "fiscal years, newest first"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "years": [
   {
    "altmanZ": 2.346,
    "beneishM": -2.234,
    "altmanZone": "grey",
    "piotroskiF": 8,
    "beneishFlag": "low",
    "fiscalYearEnd": "2025-09-27"
   }
  ],
  "company": {
   "ticker": "AAPL"
  },
  "yearsReturned": 5,
  "piotroskiTrend": "improving"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/edgar-fundamental-scores-historical-financials-db2066e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fundamental-scores-x402.onrender.com](https://www.zero.xyz/host/fundamental-scores-x402.onrender.com/llms.txt)
