{"uid":"cap_5wxrzwcOYXGA0B0lblDHy","slug":"answerpool-xbrl-compare-0e8abf05","name":"AnswerPool XBRL Compare","description":"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.","url":"https://answerpool.io/v1/sec/xbrl/compare","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zh_FR2FbrYDAdPruZr3dF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"Compare revenue across AAPL, NVDA, MSFT, AMZN, and TSLA — show me each company's latest reported value ranked from highest to lowest.","exampleUseCases":[{"title":"Tech giant revenue benchmark","prompt":"Rank AAPL, MSFT, GOOGL, AMZN, and META by their most recently reported revenue so I can see who's on top."},{"title":"Semiconductor capex comparison","prompt":"Compare capital expenditures for NVDA, AMD, INTC, TSM, and QCOM using their latest SEC filings — I want them ranked highest to lowest."},{"title":"Pharma R&D spending screen","prompt":"Pull the latest R&D expenses for JNJ, PFE, MRK, ABBV, and LLY and rank them so I can see which pharma company spends the most on research."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:03:50.209Z","isFirstParty":false}