# AnswerPool XBRL Compare

> AnswerPool XBRL Compare is a paid API for AI agents from answerpool.io, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Compare a single XBRL financial metric across up to 10 public company tickers, returning each company's latest reported value ranked side-by-side with period end dates and SEC tags.

## Facts

- Endpoint: GET https://answerpool.io/v1/sec/xbrl/compare
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/answerpool-xbrl-compare-0e8abf05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5wxrzwcOYXGA0B0lblDHy

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 answerpool-xbrl-compare-0e8abf05
```

Example prompt: Compare revenue across AAPL, NVDA, MSFT, AMZN, and TSLA — show me each company's latest reported value ranked from highest to lowest.

## When to prefer this

Use this endpoint when you need to compare a single financial metric across multiple public companies in one call, avoiding the overhead of downloading individual SEC companyfacts JSON files and manually aligning fiscal periods. It is ideal for benchmarking, screening, or ranking scenarios involving 2–10 tickers. Prefer this over raw EDGAR companyfacts downloads when you need fiscal-period-aligned, pre-ranked results with a simple API interface.

## Known failure modes

- Invalid or unrecognized ticker symbols return missing or partial rows
- XBRL metric name not matching any known tag results in empty latest array
- More than 10 tickers specified may be rejected or truncated
- Company has not filed XBRL data for the requested metric — row absent from results
- Metric name ambiguity may resolve to a tag the user did not intend
- Payment failure via x402 protocol returns 402 error before data is served

## How this service works

AnswerPool turns SEC EDGAR, the Federal Register, USAspending, NIH, BLS and OpenAlex into structured JSON answers that AI agents and developers fetch in one call. 69 endpoints free, no account; derived analyses $0.02–$0.05 per call by card credits or USDC (x402). MCP server, full provenance.

## Output

A JSON object containing the queried metric name, a timestamp of when the data was pulled, a count of companies returned, and a ranked array of rows — each with ticker, CIK, the resolved XBRL tag used, the period end date of the latest filing, and the numeric value. Includes a disclaimer that data is derived from public SEC EDGAR filings.

## 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",
     "title": "CompareIn",
     "required": [
      "tickers",
      "metric"
     ],
     "properties": {
      "metric": {
       "type": "string",
       "title": "Metric",
       "maxLength": 120,
       "description": "Required metric key from /v1/sec/xbrl/metrics (e.g. revenue) or a raw US-GAAP XBRL concept as us-gaap:<Tag>; tickers not reporting it are dropped from the result."
      },
      "tickers": {
       "type": "string",
       "title": "Tickers",
       "maxLength": 120,
       "description": "Comma-separated tickers, max 10"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2026-08-31T14:00:00Z",
  "count": 2,
  "latest": [
   {
    "cik": "0000320193",
    "end": "2026-06-28",
    "tag": "Revenues",
    "value": 94000000000,
    "ticker": "AAPL"
   },
   {
    "cik": "0001045810",
    "end": "2026-07-27",
    "tag": "Revenues",
    "value": 46700000000,
    "ticker": "NVDA"
   }
  ],
  "metric": "revenue"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/answerpool-xbrl-compare-0e8abf05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from answerpool.io](https://www.zero.xyz/host/answerpool.io/llms.txt)
