Citation API for LLM apps: exact quotes bound to their source

Webcite's citation API ties a claim or an answer to the passage behind it: the source URL, the exact quote, where it sits, and whether the quote was found on the page when it was fetched. It works with output from any model. In the saved run below, 4 of 6 sources for a WMO climate claim returned an exact quote match.

Last updated

One citation, as returned

The first citation from the saved WMO response, recorded on 24 November 2026, with other fields removed and no value edited.

{
  "url": "https://news.un.org/en/story/2025/01/1158891",
  "passage": {
    "text": "UN weather experts from the World Meteorological Organization (WMO) confirmed on Friday that 2024 was the hottest year on record, at 1.55 degrees Celsius (C) above pre-industrial temperatures.",
    "sha256": "74b145048ed20c9949c1e0f427da0d956d46ef18b1dae2a7fdc5c7c9e7237b22"
  },
  "stance": "supports",
  "highlight_terms": [
    "experts from the World Meteorological Organization (WMO) confirmed",
    "confirmed on Friday that 2024 was the hottest year on record",
    "at 1.55 degrees Celsius (C) above pre-industrial temperatures"
  ],
  "evidence": {
    "state": "matched",
    "quoteMatch": "exact",
    "retrievedAt": "2026-11-24T19:23:26.975Z",
    "contentHash": "ce4c78ae172dde57d4e380dc35ab0fd224b2da925cf12b217e483bdfef44f7e3",
    "dates": [
      {
        "value": "2025-01-10",
        "precision": "day",
        "kind": "published",
        "basis": "publisher_metadata"
      },
      {
        "value": "2025-01-11",
        "precision": "day",
        "kind": "updated",
        "basis": "publisher_metadata"
      }
    ],
    "context": [
      "10 January 2025 Climate and Environment"
    ]
  }
}

What each field tells you

Citation fields
FieldMeaning
passage.textThe quote the claim rests on
evidence.quoteMatchexact when the quote was found on the fetched page; not_attempted when it was not checked
evidence.retrievedAt and contentHashWhen the page was fetched and a hash of what was read
evidence.datesPublished and updated dates, with where each came from
stanceWhether the source supports, contradicts or does not settle the claim
highlight_termsPhrases to mark when you show the passage in your interface

Use the TypeScript SDK

The TypeScript SDK wraps the same calls: npm install webcite installs it, and npx webcite runs its command line tool. It reads the key from WEBCITE_API_KEY.

The program lists the first three citations for the WMO claim. The last block is the recorded output, printed from the same saved response.

npm install webcite
import { Webcite } from "webcite";

const client = new Webcite();
const result = await client.verify(
  "The World Meteorological Organization reported that 2024 was the warmest year on record, about 1.55 °C above the 1850-1900 average."
);
for (const citation of result.claim_groups?.[0]?.citations?.slice(0, 3) ?? []) {
  console.log(citation.stance, citation.url);
}
supports https://news.un.org/en/story/2025/01/1158891
supports https://wmo.int/news/media-centre/wmo-confirms-2024-warmest-year-record-about-155degc-above-pre-industrial-level
supports https://wmo.int/sites/default/files/2025-03/WMO-1368-2024_en.pdf

Citations into your own documents

Compared with Anthropic's Citations feature

  • Anthropic's citations point into the documents you put in the Claude request (Anthropic, checked 25 November 2026)
  • They cannot be combined with structured outputs (Anthropic, checked 25 November 2026)
  • Webcite is a separate API: it finds the sources or reads the ones you upload, works with any model, and returns its citations as JSON. More comparisons.

Start citing

Try the saved examples in the playground without an account, then make a first call with your own key.

Create a free account