Webcite Figures and conflicts API
Extract financial figures with units, periods and locations, recompute totals and flag figures that conflict.
Extract financial figures with units, periods and locations, recompute totals and flag figures that conflict.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/webcite:webcite-figures-and-conflicts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Webcite Figures and conflicts API
version: '1.0'
description: 'Webcite parses documents and checks claims against sources. The API converts PDFs, scans, images, spreadsheets and office files to Markdown with page and sheet locations, splits them into citation-ready chunks, verifies a claim against web sources with citations, a stance for each source and a verdict, checks that quotes appear in the sources you give, searches for sources, and extracts and cross-checks financial figures. Send your API key in the x-api-key header; create a key at https://webcite.co/api-keys (sign-in required). Documentation: https://webcite.co/api-docs'
contact:
name: Webcite support
url: https://webcite.co/support
email: support@webcite.co
termsOfService: https://webcite.co/terms-and-conditions
servers:
- description: Production
url: https://api.webcite.co
security:
- x-api-key: []
tags:
- name: Figures and conflicts
description: Extract financial figures with units, periods and locations, recompute totals and flag figures that conflict.
paths:
/api/v1/accuracy:
get:
description: 'The engine''s measured accuracy against a gold-set corpus: conflict detection recall and precision, and recompute correctness. Reproducible and gated on every build — an accuracy regression cannot ship.
**Cost: 1 credit.** Deterministic; the report runs the deterministic gold-set eval on the server, so it is subject to your plan''s rate limits.'
operationId: ApiV1Controller_accuracy
parameters: []
responses:
'200':
description: Corpus accuracy report
'401':
description: Unauthorized - API key required
'429':
description: Rate limit exceeded
security:
- x-api-key: []
- bearer: []
summary: Measured numeric-accuracy report
tags:
- Figures and conflicts
/api/v1/analyze/conflicts:
post:
description: 'Verify NUMBERS, not just text. Given figures extracted across one or more documents, the finance accuracy engine:
- **recomputes** every derivable metric from its primitives (e.g. gross margin from revenue and COGS, revenue growth from two periods) and flags where the stated value does not match the computed one;
- **detects cross-document conflicts** — figures for the same metric/entity/period that disagree beyond the metric''s tolerance;
- **flags semantic conflicts** — metrics that are each plausible alone but jointly impossible (e.g. logo retention far below 100 − churn);
- returns a **review** flag: whether a human should look, and the concrete reasons (a conflict, a recompute mismatch, or model-read inputs). The findings are deterministic — a conflict exists or it does not — so this is a flag with reasons, not a probability score.
Deterministic compute. **Cost: 1 credit.** Still subject to your plan''s rate limits, since the request uses server compute.'
operationId: ApiV1Controller_analyzeConflicts
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AnalyzeConflictsRequestDto'
required: true
responses:
'200':
description: Conflicts, recomputations, and a review flag
'401':
description: Unauthorized - API key required
'429':
description: Rate limit exceeded
security:
- x-api-key: []
- bearer: []
summary: Analyze numeric figures for conflicts and mismatches
tags:
- Figures and conflicts
/api/v1/analyze/document:
post:
description: 'Document-in numeric analysis. Give an uploaded asset id; the document is downloaded, its figures are extracted, then recomputed and cross-checked. Returns the extracted figures alongside conflicts, recomputations, and a review flag.
- **Spreadsheets** (xlsx/xls/csv): extracted deterministically with exact cell provenance. A cell read is exact, so these are rule reads. Server compute and file I/O only.
- **PDFs**: the printed figures are read from the page image (never computed); these are model reads, capped at needs_review and never presented as verified. Their value is cross-source, e.g. a deck figure that disagrees with the spreadsheet. **This path makes a paid read of each page image.**
**Cost: 3 credits.** The document is downloaded and parsed; PDF pages may also be read from their images. Rate-limited more strictly than compute-only endpoints.'
operationId: ApiV1Controller_analyzeDocument
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AnalyzeDocumentRequestDto'
required: true
responses:
'200':
description: Extracted figures with conflicts, recomputations, and a review flag
'400':
description: Asset not found or unsupported type
'401':
description: Unauthorized - API key required
'429':
description: Rate limit exceeded
security:
- x-api-key: []
- bearer: []
summary: Analyze a spreadsheet or PDF document for conflicts and mismatches
tags:
- Figures and conflicts
/api/v1/extract/figures:
post:
description: 'Reads a spreadsheet and returns each known metric as a **figure**: the value normalized to its canonical unit, plus what it means (`metric`), `unit`, optional `entity`/`period`, a confidence `band`, whether it was confirmed against the cited cell (`bound`), and full `provenance` (asset, sheet, cell, source label). This is deterministic financial-model reading: header scale ("$M"/"''000"), accounting negatives, period columns (FY2023 vs FY2024), and unit-declaration checks are all honoured, so a % is never mis-read as currency.
Deterministic-first. Reads **spreadsheets** (cell-level discovery), **PDFs with a text layer** (grounded and cited by page), and **every other text-bearing format** (docx, pptx, html, txt) deterministically with no model calls. **Scanned PDF pages and image files** (png/jpg/...) are transcribed by vision OCR first, then grounded, so their numbers are still extracted (provenance marked `model`); this needs page-image reading on the server and is skipped otherwise. Accepts `asset_id` (uploaded asset) or `asset_url` (your own signed URL).
**An empty `figures` says why it is empty.** `state`, `reason` and `code` — the same three fields, the same vocabulary and the same values as `POST /extract` — describe **the read that fed the figure engine**, not the figure list. A workbook that opened and yielded no known metric is `state: "complete"` with `code: null`: the engine measured it and found nothing to tag, which is an answer. A refusal never reached the engine and carries its cause (`source_too_large`, `source_corrupt`, `source_encrypted`, `unsupported_format`, `extraction_error`). `figures` itself is untouched.
**Cost: 2 credits.** Deterministic; downloads and runs the full figure engine over every sheet/page.'
operationId: ApiV1Controller_extractFigures
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExtractRequestDto'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ExtractFiguresResponseDto'
description: '{ figures: { metric, value, unit, entity?, period?, band, bound, provenance }[], state, reason, code }'
'400':
description: Asset not found
'401':
description: Unauthorized - API key required
'429':
description: Rate limit exceeded
security:
- x-api-key: []
- bearer: []
summary: Extract every number from a document as a tagged, source-grounded figure
tags:
- Figures and conflicts
components:
schemas:
ProvenanceDto:
properties:
assetId:
description: Asset the figure came from.
type: string
cell:
description: Cell reference, e.g. B4.
type: string
documentName:
description: Human-readable document name.
type: string
method:
description: How the value was extracted.
enum:
- rule
- model
type: string
page:
description: 1-based page.
type: number
sheet:
description: Sheet name.
type: string
required:
- assetId
- documentName
- method
type: object
FxRateDto:
properties:
applicableDate:
example: '2025-12-31'
type: string
applicablePeriod:
type: string
decimalRate:
description: Canonical decimal rate used by exact arithmetic.
example: '1.08425'
type: string
direction:
enum:
- multiply
- divide
type: string
fromCurrency:
type: string
id:
type: string
provenance:
$ref: '#/components/schemas/ProvenanceDto'
rate:
type: number
ruleRevision:
type: string
toCurrency:
type: string
required:
- id
- fromCurrency
- toCurrency
- rate
- decimalRate
- direction
- applicablePeriod
- applicableDate
- ruleRevision
- provenance
type: object
AnalyzeDocumentRequestDto:
properties:
asset_id:
description: Uploaded asset id (from POST /upload). The spreadsheet is downloaded, figures are extracted deterministically with cell provenance, then recomputed and cross-checked.
example: 123e4567-e89b-12d3-a456-426614174000
type: string
required:
- asset_id
type: object
AnalyzeConflictsRequestDto:
properties:
figures:
description: Figures extracted across one or more documents. The engine groups compatible entities, periods, currencies, scales, bases and definitions, recomputes derivable metrics, and reports conflicts or unavailable comparisons.
items:
$ref: '#/components/schemas/FigureDto'
type: array
fxRates:
description: Source-linked FX observations. A rate is used only for its exact applicable period and declared conversion direction.
items:
$ref: '#/components/schemas/FxRateDto'
type: array
precedenceRules:
description: Reviewed, scope-exact decisions that select one observation and enumerate every superseded competing identity.
items:
$ref: '#/components/schemas/ObservationPrecedenceDto'
type: array
required:
- figures
type: object
FigureDto:
properties:
basis:
description: Whether the figure is actual, forecast, assumed or unknown.
enum:
- actual
- forecast
- assumption
- unknown
type: string
currency:
description: Currency code of the normalized value.
type: string
decimalValue:
description: Canonical decimal text used for exact arithmetic. Without it the figure can be reported but not recomputed.
example: '62.125'
type: string
definition:
description: Definition or accounting-policy scope.
type: string
entity:
description: Entity scope, e.g. "subscription".
type: string
metric:
description: Metric dictionary key, e.g. "gross_margin".
example: gross_margin
type: string
observationId:
description: Immutable observation identity. Exact replay may reuse it.
type: string
period:
description: Period, e.g. "FY2024".
type: string
provenance:
$ref: '#/components/schemas/ProvenanceDto'
scale:
description: Scale qualifier for the already-normalized value. This does not apply another conversion.
type: string
unit:
description: Canonical unit.
enum:
- percent
- multiple
- currency
- ratio
- count
- months
type: string
value:
description: Value normalized to the metric canonical unit.
example: 62
type: number
required:
- metric
- value
- unit
- provenance
type: object
ExtractFiguresResponseDto:
properties:
code:
description: 'The stable classification of `reason`, safe to switch on. The same vocabulary and the same values as `POST /extract`. Null when nothing refused.
| Code | What it means | What to do |
|------|---------------|------------|
| `source_too_large` | a size or expansion ceiling refused the read | `reason` carries the observed value and the limit; send a smaller file |
| `source_encrypted` | the container is password-protected | send an unlocked copy |
| `source_corrupt` | the container could not be opened as the format it declares | re-export the file |
| `unsupported_format` | no reader is registered for this format | convert it |
| `ocr_unavailable` | the page had no text layer and no vision provider is configured | configure a vision key, or send a text-layer file |
| `partial_extraction` | some of the source was recovered and some was not | use what came back |
| `empty_source` | the source was read and held nothing | a fact about the file, not a failure — nothing to retry |
| `extraction_error` | our failure | retry |'
enum:
- source_too_large
- source_encrypted
- source_corrupt
- unsupported_format
- ocr_unavailable
- partial_extraction
- empty_source
- extraction_error
- null
type:
- string
- 'null'
figures:
description: Every known metric found, as `{ metric, value, unit, entity?, period?, band, bound, provenance }`. Empty both when the document held no recognised metric and when the read was refused.
items:
type: object
type: array
reason:
description: 'Free text naming the cause, straight from whatever refused or failed — `spreadsheet_magic_mismatch:xlsx`, `spreadsheet_too_large:bytes:33554433>33554432`, `extraction_failed:File is password-protected`. Carries detail no enum can, and is NOT stable: it includes dependency error text. Display it; do not branch on it. Null when nothing refused.'
type:
- string
- 'null'
state:
description: How much of the source the read recovered, in one word. `complete` on a healthy read, whatever the payload beside it turned out to contain.
enum:
- complete
- partial
- unsupported
- error
type: string
required:
- state
- reason
- code
- figures
type: object
ExtractRequestDto:
properties:
asset_id:
description: An uploaded asset id (from POST /upload). One of asset_id / asset_url is required.
type: string
asset_url:
description: A direct URL to the file. One of asset_id / asset_url is required.
type: string
mode:
description: 'How PDF pages and images are read on `/extract` and `/extract/pages`. `lite` is the faster, lower-cost read, about 0.12 credits a page. `standard` is the higher-accuracy read for each page type, about 0.75 credits a page, with a second read for form pages and for a read that fails; it does better on complex tables, handwriting and scans. Every other step is the same in both modes: the reading is checked against the page''s text layer and drawing, long tables are read again in row bands, chart values are measured from the drawing, and form and table rules apply. A lite read and a standard read of the same file are kept apart; neither is served for the other. Spreadsheets and text documents are read the same way in both modes. With no mode, an account created on or after 20 November 2026 (04:00 UTC) reads in lite; an account created before then keeps standard, as before, and can send `lite` to opt in. A visual rendition is read in standard mode.'
enum:
- standard
- lite
type: string
refresh:
default: false
description: Read the file again even when the same content was read before in this account, and keep the new complete read in place of the earlier one. The new read is charged. Default false.
type: boolean
source_version_id:
description: Exact immutable owned source version for visual_rendition.
type: string
visual_rendition:
description: Explicit JPEG/PNG visual layout rendition. Requires owned asset_id, exact source_version_id and Idempotency-Key. Source remains partial; does not select the rendition.
type: boolean
type: object
ObservationPrecedenceDto:
properties:
basis:
enum:
- actual
- forecast
- assumption
- unknown
type: string
currency:
type: string
definition:
type: string
entity:
type: string
id:
type: string
metric:
type: string
period:
type: string
provenance:
$ref: '#/components/schemas/ProvenanceDto'
reason:
type: string
reviewerId:
type: string
ruleRevision:
type: string
scale:
type: string
selectedObservationId:
type: string
supersededObservationIds:
items:
type: string
type: array
required:
- id
- metric
- selectedObservationId
- supersededObservationIds
- reviewerId
- reason
- ruleRevision
- entity
- period
- currency
- scale
- basis
- definition
- provenance
type: object
securitySchemes:
apiKey:
in: header
name: x-api-key
type: apiKey
x-api-key:
type: apiKey
in: header
name: x-api-key
description: Your Webcite API key. Create one at https://webcite.co/api-keys (sign-in required).
bearer:
type: http
scheme: bearer
bearerFormat: JWT
description: Session token of a user signed in to the Webcite web app. Agents and server code use the x-api-key header.
oauth2:
type: oauth2
description: 'OAuth 2.0 authorization code flow with PKCE (S256) for the hosted MCP server at https://api.webcite.co/mcp. Clients register dynamically or use a Client ID Metadata Document. Discovery: https://api.webcite.co/.well-known/oauth-authorization-server. The REST operations here take the x-api-key header.'
flows:
authorizationCode:
authorizationUrl: https://api.webcite.co/api/v1/oauth/authorize
tokenUrl: https://api.webcite.co/api/v1/oauth/token
refreshUrl: https://api.webcite.co/api/v1/oauth/token
scopes:
webcite:mcp: Use the Webcite MCP tools, billed to your account like an API key.
externalDocs:
description: Webcite API documentation
url: https://webcite.co/api-docs