# SEC EDGAR XBRL Facts Query

> SEC EDGAR XBRL Facts Query is a paid API for AI agents from edgar.genexxis.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Retrieves raw XBRL fact values for any US public company financial concept by ticker or CIK from SEC EDGAR

## Facts

- Endpoint: GET https://edgar.genexxis.com/facts/query?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sec-edgar-xbrl-facts-query-e31d5098
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gEcxLCbliJuVtImMxZ1kh

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 sec-edgar-xbrl-facts-query-e31d5098
```

Example prompt: Pull the last 10 filings of us-gaap:NetIncomeLoss for Apple (ticker AAPL) from SEC EDGAR, in USD, filtered to 10-Q forms.

## When to prefer this

Use this endpoint when you need raw, point-in-time XBRL fact values for a specific financial concept as filed with the SEC — ideal for time-series financial analysis, custom metric construction, or auditing exact as-filed figures. Prefer this over the financials endpoint when you want a concept not in the standardized set (e.g. a niche us-gaap or ifrs-full element), or when you need more than 5 years of history. Best for structured quantitative work where precision and auditability to the original SEC filing matters.

## Known failure modes

- Invalid or unknown ticker/CIK returns empty results or 404
- Unrecognized XBRL concept name returns no facts
- Concept exists but company never filed it — empty facts array
- Rate limiting or SEC API downtime causes upstream failure
- Invalid unit filter returns no matching rows
- Missing required concept parameter returns 400 error

## How this service works

US public company data from SEC EDGAR (public domain) by ticker or CIK: recent filings (10-K, 10-Q, 8-K with item titles, links to documents), insider trades parsed from Form 4 XML (owner, role, transaction code, shares, price, holdings after, net open-market buys vs sells), and standardized financials from XBRL (revenue, net and operating income, diluted EPS, assets, liabilities, equity, cash, long-term debt, operating cash flow, capex, free cash flow, margins) for the last 5 fiscal years and 4 quarters, plus the raw values of any single XBRL concept as filed (/facts). Live from SEC APIs with short caches (filings 10 min, financials 6 h).

## Output

Returns a JSON object with the company's CIK, entity name, ticker, concept label, and an array of fact entries each containing: period start/end dates, fiscal year/period, value, unit, accession number, form type, filing date, and frame identifier. Up to 200 rows depending on limit parameter.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "concept"
     ],
     "properties": {
      "cik": {
       "type": "string",
       "description": "SEC CIK (alternative to ticker)"
      },
      "form": {
       "type": "string",
       "description": "Optional: 10-K or 10-Q"
      },
      "unit": {
       "type": "string",
       "description": "Optional unit filter, e.g. USD, USD/shares, shares"
      },
      "limit": {
       "type": "string",
       "description": "Rows, 1-200, default 10"
      },
      "ticker": {
       "type": "string",
       "description": "US ticker, e.g. AAPL (or use cik)"
      },
      "concept": {
       "type": "string",
       "description": "XBRL element, e.g. Revenues, us-gaap:NetIncomeLoss, dei:EntityCommonStockSharesOutstanding, ifrs-full:Revenue"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cik": 320193,
  "count": 2,
  "facts": [
   {
    "fp": "Q3",
    "fy": 2026,
    "end": "2026-06-27",
    "val": 29789000000,
    "accn": "0000320193-26-000020",
    "form": "10-Q",
    "unit": "USD",
    "filed": "2026-08-01",
    "frame": "CY2026Q2",
    "start": "2026-03-29"
   },
   {
    "fp": "Q3",
    "fy": 2026,
    "end": "2026-06-27",
    "val": 101532000000,
    "accn": "0000320193-26-000020",
    "form": "10-Q",
    "unit": "USD",
    "filed": "2026-08-01",
    "frame": null,
    "start": "2025-09-28"
   }
  ],
  "label": "Net Income (Loss) Attributable to Parent",
  "ticker": "AAPL",
  "concept": "us-gaap:NetIncomeLoss",
  "entityName": "Apple Inc."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sec-edgar-xbrl-facts-query-e31d5098/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from edgar.genexxis.com](https://www.zero.xyz/host/edgar.genexxis.com/llms.txt)
