# Source search API: find the original source for a claim, table or figure

Canonical URL: https://webcite.co/source-search-api | Last updated: 2026-11-25

Webcite's source search API takes a claim, a figure or a query and returns candidate sources, each with the passage that matched and whether that passage was found on the page, for 2 credits. It gives no stance and no verdict. Use it to find where a number came from, then confirm the quote with [source preview](https://webcite.co/api-docs/source-preview) or check the claim with the [fact-check API](https://webcite.co/fact-check-api).

## A recorded search

Recorded output: a search for the WMO 2024 temperature figure through the hosted MCP server's `search_sources` tool on 25 November 2026. It used 2 credits and returned 5 sources; 5 of them had the passage matched exactly on the fetched page. Two sources are shown, other fields removed, no value edited.

```json
{
  "claim_groups": [
    {
      "claim": "2024 warmest year on record 1.55 °C above pre-industrial WMO",
      "citation_count": 5,
      "citations": [
        {
          "url": "https://wmo.int/sites/default/files/2025-03/WMO-1368-2024_en.pdf",
          "source_type": "Report",
          "page": 7,
          "passage": {
            "text": "- The annually averaged global mean near-surface temperature in 2024 was\n1.55 °C ± 0.13 °C above the 1850–1900 average used to represent pre-industrial conditions.\n- The year 2024 was the warmest year in the 175-year observational record, clearly surpassing the previous warmest year, 2023 at 1.45 °C ± 0.12 °C above the 1850–1900 average.\n- For global mean temperature, each of the past ten years, 2015–2024, were individually the ten warmest years on record.\n### STATE OF THE INDICATOR"
          },
          "evidence": {
            "state": "matched",
            "quoteMatch": "exact",
            "retrievedAt": "2026-11-25T03:25:46.754Z"
          }
        },
        {
          "url": "https://news.un.org/en/story/2025/01/1158891",
          "source_type": "Trusted Media",
          "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."
          },
          "evidence": {
            "state": "matched",
            "quoteMatch": "exact",
            "retrievedAt": "2026-11-25T03:25:41.071Z"
          }
        }
      ]
    }
  ],
  "usage": {
    "credits": 2
  }
}
```

[The saved response](https://webcite.co/samples/search-wmo-2024.json), with the account's balance, ids, token counts and the narrative taken out.

## Send a search

```bash
curl --fail-with-body https://api.webcite.co/api/v1/sources/search \
  -H "x-api-key: $WEBCITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"2024 warmest year on record 1.55 °C above pre-industrial WMO","limit":5}'
```

`limit` is the most sources to return, 1 to 20, not a promise. Constraints go in `filters`: `source_type`, `is_primary_source`, `official_country` (a two-letter code), `publication_year` (`from`, `to`) or `domain` (subdomains included). The [search reference](https://webcite.co/api-docs/search) lists every field.

## Use the TypeScript SDK

The [TypeScript SDK](https://www.npmjs.com/package/webcite) 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`.

```bash
npm install webcite
```

```typescript
import { Webcite } from "webcite";

const client = new Webcite();
const found = await client.search("2024 warmest year on record 1.55 °C above pre-industrial WMO", { limit: 5 });
for (const citation of found.claim_groups?.[0]?.citations ?? []) {
  console.log(citation.evidence?.quoteMatch, citation.url);
}
```

```text
exact https://wmo.int/sites/default/files/2025-03/WMO-1368-2024_en.pdf
exact https://news.un.org/en/story/2025/01/1158891
exact https://wmo.int/publication-series/state-of-global-climate/state-of-global-climate-2024
exact https://climate.copernicus.eu/sites/default/files/custom-uploads/GCH-2024/GCH2024-PDF-1.pdf
exact https://www.preventionweb.net/news/wmo-report-documents-spiralling-weather-and-climate-impacts
```

The last block is the recorded output, printed from the saved response.

## Trace a figure to its origin

1. Search with the figure's exact value, unit and year, as they appear in the table or slide.
2. Send a candidate URL and the quote to [source preview](https://webcite.co/api-docs/source-preview) (1 credit). Read `binding.grounded` and the matched passage before you treat the quote as source-backed.
3. To judge whether the source supports the claim, [verify the claim](https://webcite.co/api-docs/verify) (4 credits with stance and verdict).

## Reading the results

- When `narrative_status` is `model_text`, the narrative is model-written: only its `[n]` markers point at returned citations, and a figure without one is unsourced text.
- A fetched passage records what the page said when it was read; it does not certify that the page is right.

## Use it in Claude or ChatGPT

1. Claude (web and desktop): Customize, Connectors, + Add, Add custom connector. Paste `https://api.webcite.co/mcp` and sign in to Webcite when Claude asks.
2. ChatGPT: open [ChatGPT Plugins](https://chatgpt.com/plugins), select the plus button, then Add custom MCP server. Enter `https://api.webcite.co/mcp`, select I understand and want to continue, then Create as a plugin, and sign in with your Webcite account.
3. Ask: "Find the original source for this figure: 1.55 °C above the 1850-1900 average in 2024."

The tools are `search_sources` and `get_source_preview`. [Connect an AI client](https://webcite.co/connect) has the same steps, and the [MCP guide](https://webcite.co/api-docs/mcp) covers Claude Code, Cursor, Codex and keys.

## From a document to its sources

[Parse the document](https://webcite.co/document-parsing-api) to get its figures with page positions, search for each figure's source, then preview or verify the quote. The same account and credits cover every step.

## Try it

The Free plan includes 100 credits, enough for 50 searches.

[Create a free account](https://webcite.co/signup)
