# StableFinance Segmented Financials

> StableFinance Segmented Financials is a paid API for AI agents from stablefinance.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Retrieves segment-level financial breakdowns (e.g. revenue by product line) for public companies by ticker or CIK, for annual or quarterly periods.

## Facts

- Endpoint: GET https://stablefinance.dev/api/financials/segments
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablefinance-segmented-financials-1e3e11f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_29bbuNjo0DHz_iYgpZNOG

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 stablefinance-segmented-financials-1e3e11f3
```

Example prompt: Pull the annual segment-level revenue breakdown for Apple (ticker AAPL) from Financial Datasets AI — I want to see how much each product line like iPhone, Mac, and Services contributed, for the most recent report period.

## When to prefer this

Use this endpoint when you need sub-company revenue granularity — i.e., breakdown by product line or business unit — rather than top-level income statement figures. Ideal for equity research, competitive analysis, or understanding which segments drive a company's revenue. Prefer over general financials endpoints when segment-level detail is specifically needed.

## Known failure modes

- Missing required 'period' parameter returns validation error
- Invalid ticker or CIK returns empty array or 404
- Date filter pattern mismatch (not YYYY-MM-DD) causes schema rejection
- Limit exceeds maximum of 50 causes validation error
- Payment of 0.02 USDC not processed results in HTTP 402 rejection
- Company does not report segment data results in empty segmented_financials array

## How this service works

All segmented financials across statements in one call.

## Output

Returns an array of segmented_financials objects, each containing the ticker, period type (annual/quarterly), report_period date, and a revenue object broken down by product or business segment with labels and dollar values.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 10,
   "period": "annual",
   "ticker": "AAPL"
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "period"
     ],
     "properties": {
      "cik": {
       "type": "string",
       "minLength": 1
      },
      "limit": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1
      },
      "period": {
       "enum": [
        "annual",
        "quarterly"
       ],
       "type": "string"
      },
      "ticker": {
       "type": "string",
       "minLength": 1
      },
      "report_period": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "report_period_gt": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "report_period_lt": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "report_period_gte": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "report_period_lte": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "segmented_financials"
     ],
     "properties": {
      "segmented_financials": {
       "type": "array",
       "items": {}
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "segmented_financials": [
   {
    "period": "annual",
    "ticker": "AAPL",
    "revenue": {
     "product": [
      {
       "label": "iPhone",
       "value": 201183000000
      },
      {
       "label": "Mac",
       "value": 29984000000
      },
      {
       "label": "Services",
       "value": 96169000000
      }
     ]
    },
    "report_period": "2024-09-28"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablefinance-segmented-financials-1e3e11f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablefinance.dev](https://www.zero.xyz/host/stablefinance.dev/llms.txt)
