# x402stock XBRL Financial Facts Frames

> x402stock XBRL Financial Facts Frames is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns one XBRL financial fact per company that disclosed a given US-GAAP tag in a specified calendar period, sorted by value, for peer screening and comparison.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/frames
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-xyz-a1ea77b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kXlk_HyfP2nw6QM0ypkx_

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 x402stock-xyz-a1ea77b1
```

Example prompt: Show me the top 50 US public companies ranked by Revenues for calendar year 2024 using SEC EDGAR XBRL data — us-gaap taxonomy, USD units.

## When to prefer this

Use this endpoint when you need a cross-sectional, peer-level view of a specific XBRL financial fact across all SEC filers for a given period — ideal for screening, ranking, or benchmarking public companies by a standardized GAAP metric. Prefer over company-specific endpoints when the goal is comparative analysis across many filers rather than deep-dive on a single ticker.

## Known failure modes

- Invalid or unknown XBRL tag returns empty data array or error
- Malformed period string (not matching CY\d{4}(Q[1-4]I?)?) returns 400 validation error
- Limit exceeds 500 returns validation error
- No companies filed the requested tag in the requested period returns empty results
- Payment failure (402) if USDC payment via x402 not provided or insufficient

## How this service works

One reported XBRL financial fact for every company that disclosed it in a calendar period, for peer screening. Pass ?tag= (e.g. Revenues), ?period= (CY2024, CY2024Q1, or CY2024Q1I for balance-sheet facts), ?taxonomy= (default us-gaap), ?unit= (default USD), and ?limit=. Sorted by value. Sourced from SEC EDGAR. From x402stock, a market & economic data API (x402, USDC).

## Output

A JSON object containing the XBRL tag label, taxonomy, unit, period, data freshness date, total number of filers for that tag, count of results returned, and an array of company-level records each with CIK, entity name, reported numeric value, period start/end dates, and SEC accession number — sorted descending by value.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "tag": "Revenues",
   "unit": "USD",
   "limit": 50,
   "period": "CY2024",
   "taxonomy": "us-gaap"
  }
 }
}
```

## 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": [
      "tag",
      "period",
      "taxonomy",
      "unit",
      "limit"
     ],
     "properties": {
      "tag": {
       "type": "string",
       "minLength": 1
      },
      "unit": {
       "type": "string",
       "default": "USD"
      },
      "limit": {
       "type": "integer",
       "default": 50,
       "maximum": 500,
       "exclusiveMinimum": 0
      },
      "period": {
       "type": "string",
       "pattern": "^CY\\d{4}(Q[1-4]I?)?$"
      },
      "taxonomy": {
       "type": "string",
       "default": "us-gaap"
      }
     },
     "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": [
      "source",
      "as_of",
      "tag",
      "taxonomy",
      "label",
      "unit",
      "period",
      "total_filers",
      "count",
      "data"
     ],
     "properties": {
      "tag": {
       "type": "string"
      },
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "cik",
         "entity",
         "value",
         "start",
         "end",
         "accession"
        ],
        "properties": {
         "cik": {
          "type": "string"
         },
         "end": {
          "type": "string"
         },
         "start": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "value": {
          "type": "number"
         },
         "entity": {
          "type": "string"
         },
         "accession": {
          "type": "string"
         }
        },
        "additionalProperties": false
       }
      },
      "unit": {
       "type": "string"
      },
     
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tag": "Revenues",
  "data": [
   {
    "cik": "0000320193",
    "end": "2024-12-31",
    "start": "2024-01-01",
    "value": 391035000000,
    "entity": "Apple Inc.",
    "accession": "0000320193-25-000123"
   }
  ],
  "unit": "USD",
  "as_of": "2026-06-01T15:00:00.000Z",
  "count": 1,
  "label": "Revenues",
  "period": "CY2024",
  "source": "sec_edgar",
  "taxonomy": "us-gaap",
  "total_filers": 5123
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-xyz-a1ea77b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
