Conflict analysis API: find figures that disagree

Webcite's conflict analysis API takes figures from one or more documents, recomputes what can be derived from them and reports figures that disagree, for 1 credit a call. In a saved run on two pages of the U.S. Mint 2024 Annual Report, it flagged the fall in gold bullion coin revenue, given as 40.4 percent on one page and 50.0 percent on the other.

Last updated

A saved conflict

Recorded on 25 November 2026. The request carried 10 figures typed from the two pages (pages 9 and 36 of the report, a U.S. government work), each with its page and quote. The API returned one conflict:

{
  "conflicts": [
    {
      "entity": "gold bullion coins",
      "period": "FY2024",
      "currency": "not_applicable",
      "scale": "not_applicable",
      "basis": "actual",
      "definition": "finance-metrics-v1",
      "metric": "revenue_growth",
      "values": [
        {
          "value": -40.4,
          "unit": "percent",
          "entity": "gold bullion coins",
          "provenance": {
            "assetId": "d22dac9c-7cb0-4687-9cf5-a0789242beeb",
            "documentName": "us-mint-2024-annual-report-pages-9-and-36",
            "page": 1,
            "method": "rule"
          }
        },
        {
          "value": -50,
          "unit": "percent",
          "entity": "gold bullion coins",
          "provenance": {
            "assetId": "d22dac9c-7cb0-4687-9cf5-a0789242beeb",
            "documentName": "us-mint-2024-annual-report-pages-9-and-36",
            "page": 2,
            "method": "rule"
          }
        }
      ],
      "delta": 9.6,
      "reconciliationQuestion": "Reconcile Revenue growth: sources report -40.4 and -50. Which is correct and why?"
    }
  ],
  "review": {
    "needs_review": true,
    "reasons": [
      "cross-document conflict",
      "a numeric comparison is unavailable or unresolved"
    ]
  }
}

delta is the gap between the values and reconciliationQuestion is a question to put to whoever owns the document. review.needs_review is true whenever a conflict or an unresolved comparison is present. The full saved response and the full request.

Request

Send each figure with its metric, value, unit, period, entity and where it came from. These are the two figures behind the conflict above:

curl --fail-with-body -X POST https://api.webcite.co/api/v1/analyze/conflicts \
  -H "x-api-key: $WEBCITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"figures":[{"metric":"revenue_growth","value":-40.4,"decimalValue":"-40.4","unit":"percent","period":"FY2024","basis":"actual","entity":"gold bullion coins","provenance":{"documentName":"us-mint-2024-annual-report-pages-9-and-36","page":1,"method":"rule"}},{"metric":"revenue_growth","value":-50,"decimalValue":"-50.0","unit":"percent","period":"FY2024","basis":"actual","entity":"gold bullion coins","provenance":{"documentName":"us-mint-2024-annual-report-pages-9-and-36","page":2,"method":"rule"}}]}'

Add decimalValue for exact arithmetic and currency for money. Figures are compared only when their entity, period, currency, scale, basis and definition match.

What it recomputes

  • Gross margin from revenue and COGS: the run returned incompatible with mismatches: ["entity"], because revenue was sent for the whole Mint and for two of its programs, and COGS only for the whole Mint. Give every figure an entity and the engine pairs them.
  • Revenue growth for gold bullion coins: comparison_unavailable; the recomputation needs revenue_current and revenue_prior. Send both revenues and the growth rate is recomputed and checked against the stated one.
  • Margins, growth rates, retention against churn and other derived metrics are checked the same way. A stated value that does not match its recomputation is reported with both numbers.

Get the figures from a file

POST /api/v1/extract/figures reads a document and returns each figure it recognises as a known metric (revenue, COGS, margins, growth, retention and similar), with its page or cell, for 2 credits. On the same two pages it found the revenue on both, recorded on 25 November 2026:

{
  "figures": [
    {
      "metric": "revenue",
      "value": 3385700000,
      "unit": "currency",
      "provenance": {
        "assetId": "d22dac9c-7cb0-4687-9cf5-a0789242beeb",
        "documentName": "us-mint-2024-annual-report-pages-9-and-36",
        "page": 1,
        "cell": "R1C1",
        "method": "rule"
      },
      "band": "needs_review",
      "bound": false,
      "bindState": "not_rechecked",
      "reviewReason": "value was not re-read from its cited source"
    }
  ],
  "state": "partial",
  "reason": "embedded_raster_unread",
  "code": "partial_extraction",
  "usage": {
    "credits": 2
  }
}

One of its 2 figures is shown. partial_extraction says part of the file was not read. It returns known metrics only: use it to collect those figures. The full saved response.

To extract and compare in one call, send an uploaded file to analyze document for 3 credits. Figures read from a PDF page image are capped at needs_review; spreadsheet cells are exact reads.

Cost

Credits per call
OperationCredits
Compare figures POST /api/v1/analyze/conflicts1
Extract figures POST /api/v1/extract/figures2
Analyze document figures POST /api/v1/analyze/document3

The Free plan includes 100 credits a month.

From an agent

The hosted MCP server has the same jobs as extract_figures, analyze_conflicts and analyze_document. In Claude Code: claude mcp add --transport http webcite https://api.webcite.co/mcp. Every client.

Create a free account