{"uid":"cap_Bd3muDf9Y4vP8PL_gz3_k","slug":"answerpool-sec-xbrl-financial-ratios-c844c1a8","name":"AnswerPool SEC XBRL Financial Ratios","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/ratios","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":"RatiosIn","properties":{"cik":{"anyOf":[{"type":"string","pattern":"^\\d{1,10}$","maxLength":10},{"type":"null"}],"title":"Cik","default":null,"description":"SEC CIK, 1-10 digits, zero padding optional (e.g. 320193 or 0000320193). Provide exactly one of cik or ticker."},"ticker":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Ticker","default":null,"description":"US exchange ticker, case-insensitive (e.g. AAPL); resolved through the EDGAR ticker map, and an unknown ticker returns 422. Provide exactly one of ticker or cik."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"cik":"0001045810","note":"Every ratio is computed from values sharing one fiscal period end, so a ratio is null when either input was not reported for that period rather than mixed across years. Percentages are percent, debt_to_equity is a multiple. Figures as filed.","as_of":"2026-09-03T14:30:00Z","method":"sec_xbrl_ratios_rules_v1","ratios":[{"ratio":"net_margin_pct","value":55.85,"definition":"Net income / revenue","as_multiple":false,"numerator_value":72880000000,"numerator_metric":"net_income","denominator_value":130497000000,"denominator_metric":"revenue"}],"disclaimer":"Derived from public SEC EDGAR filings; not investment advice.","period_end":"2025-01-26","period_source":"latest fiscal year end reported on Form 10-K for every input used","inputs_missing":[]}},"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_nZiZc83n5Za_qWDuKG13d","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":"Computes key financial ratios (net margin, debt-to-equity, etc.) from SEC EDGAR XBRL filings for any public US company, returned as structured JSON with full provenance.","exampleAgentPrompt":"Pull the latest financial ratios for NVIDIA — net margin, debt-to-equity, and anything else computed from their most recent 10-K SEC filing.","exampleUseCases":[{"title":"Fundamental analysis for stock screening","prompt":"Get me the key financial ratios for Apple — net margin, debt-to-equity — derived from their latest SEC 10-K filing so I can compare them against sector benchmarks."},{"title":"Automated earnings report summary","prompt":"After Tesla's latest 10-K was filed, pull their XBRL-derived profitability ratios like net margin and revenue figures so I can summarize their financial health for my newsletter."},{"title":"Due diligence on a potential investment","prompt":"I'm researching Microsoft before investing — can you fetch their computed financial ratios from SEC EDGAR, including margins and leverage multiples from the most recent fiscal year?"}],"resultDescription":"Returns a JSON object containing an array of computed financial ratios (e.g. net_margin_pct, debt_to_equity) each with the ratio name, numeric value, definition, and the underlying numerator/denominator metric names and values. Also includes the company CIK, fiscal period end date, computation method identifier, as-of timestamp, a disclaimer, and a list of any missing inputs that caused nulls.","failureModes":["Unknown ticker returns HTTP 422 with error detail","CIK not found in EDGAR returns 422","Both cik and ticker provided simultaneously returns 422 (provide exactly one)","Company has not filed XBRL data — ratios return null for affected fields","Fiscal period mismatch causes individual ratio values to be null rather than cross-year mixed","Payment failure or insufficient credits returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need structured, computation-ready financial ratios derived directly from SEC EDGAR XBRL data with full provenance and per-metric sourcing. Prefer it over scraping financial data sites when you need machine-readable JSON with numerator/denominator transparency, or when building automated pipelines that require traceable, as-filed figures rather than third-party-adjusted numbers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T14:54:49.670Z","isFirstParty":false}