Citation & Claim Verification API

SearchPipe is a web search API and MCP server for developers building AI agents. Every result ships with verifiable evidence — span-level quotes, claim verdicts, and source authority — not just links. The verification endpoint turns that pipeline into a single call: send a claim, get back a four-label verdict with the evidence that decides it.

Audit your own pipeline

Verification is the quality-control layer on top of SearchPipe search — and it also works as a standalone audit for pipelines you already run:

Evidence-native results

Every /search result already carries evidence — a span-level quote with character offsets, a source-authority tier and fetch metadata — no extra call needed.

Audited answers

An advanced search with include_answer=true returns answer_audit: every statement in the generated answer is checked against its cited source with a four-label verdict, plus an overall audit score.

Audit your own citations

Send claims with your own cited URLs via evidence_urls — POST /verify checks each citation and returns the supporting span, so you can audit any LLM pipeline before publishing its answers.

When you control the pipeline, prefer the first two forms — evidence arrives with the search or the answer, no extra call. The standalone contract below is for auditing outputs you did not generate.

Response contract

The response contract is stable: every verdict carries a machine-readable reason_code from a fixed whitelist, and every evidence item carries a verbatim quote span — never a free-form generated explanation.

Verdict labels

Four-label verdict scale returned in the verdict field
verdictMeaning
supportedFetched evidence whose text explicitly supports the claim.
partialThe evidence supports part of the claim, or the support is weak.
unsupportedReachable evidence does not support the claim — catches misattributed or hallucinated citations.
inconclusiveNo verdict possible: fetch failures, paywalls or insufficient checkable evidence. A valid deliverable, billed like any other verdict.

reason_code whitelist

Machine-readable reasons returned in the reason_code field
reason_codeMeaning
doi_matchThe claim resolved to a DOI that points to a real paper.
title_matchThe claim matched a known paper title (fuzzy).
quote_span_foundA verbatim span supporting the claim was located in a fetched source.
no_supporting_evidenceSources were reachable but none of them supports the claim.
fetch_failedCandidate sources could not be fetched.
paywallCandidate sources sit behind a paywall.
low_authorityOnly low-authority sources were available, so confidence stays low.
conflicting_evidenceThe evidence points in more than one direction.

Request fields

POST /verify request body (application/json)
FieldTypeDescription
claimstring · requiredThe claim (statement or citation) to verify — max 2000 characters.
modestring · default autoEvidence route: paper (DOI/arXiv), web, or auto — a DOI or arXiv signal picks the paper route.
evidence_urlsstring[] · optionalUp to 5 caller-supplied citations to verify; URLs are SSRF-checked.
max_evidenceinteger · default 5Maximum number of evidence items to return (1-10).

Response fields

200 response body
FieldTypeDescription
verdictstringOne of supported, partial, unsupported, inconclusive (table above).
confidencenumber0-1 confidence in the verdict.
reason_codestringMachine-readable reason from the whitelist above — template phrases, never free-form text.
evidencesarrayEvidence items, each with url, title, source_tier (official/press/academic/preprint/community/unknown), quote, span_start, span_end, per_evidence_verdict, confidence and url_health (status_code, redirected, wayback_snapshot, fetched_at).
timingobjectPer-stage wall time in seconds (v_prepare, v_evidence, v_judge, v_health).

Example

One call: send a claim, read the verdict — same API key as /search, any language.

curl -X POST https://searchpipe.tech/verify \
  -H "Authorization: Bearer sp-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"claim": "Attention Is All You Need introduced the transformer architecture"}'
import httpx

resp = httpx.post(
    "https://searchpipe.tech/verify",
    headers={"Authorization": "Bearer sp-YOUR_KEY"},
    json={"claim": "Attention Is All You Need introduced the transformer architecture"},
    timeout=60,
)
data = resp.json()
print(data["verdict"], data["reason_code"], data["confidence"])
for ev in data["evidences"]:
    print(ev["per_evidence_verdict"], ev["url"])
// Node.js 18+: reads the API key from the SEARCHPIPE_API_KEY env var (falls back to the sp-YOUR_KEY placeholder when unset)
const resp = await fetch("https://searchpipe.tech/verify", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SEARCHPIPE_API_KEY ?? "sp-YOUR_KEY"}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ claim: "Attention Is All You Need introduced the transformer architecture" }),
});
const data = await resp.json();
console.log(data.verdict, data.reason_code, data.confidence);
for (const ev of data.evidences) console.log(ev.per_evidence_verdict, ev.url);
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
	"time"
)

func main() {
	payload := []byte(`{"claim":"Attention Is All You Need introduced the transformer architecture"}`)
	req, _ := http.NewRequest("POST", "https://searchpipe.tech/verify", bytes.NewReader(payload))
	req.Header.Set("Authorization", "Bearer sp-YOUR_KEY")
	req.Header.Set("Content-Type", "application/json")
	client := &http.Client{Timeout: 60 * time.Second}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	out, _ := io.ReadAll(resp.Body)
	fmt.Println(string(out))
}
import java.net.URI;
import java.net.http.*;
import java.time.Duration;

public class SearchPipeVerify {
    public static void main(String[] args) throws Exception {
        String json = "{\"claim\":\"Attention Is All You Need introduced the transformer architecture\"}";
        HttpClient client = HttpClient.newBuilder()
            .version(HttpClient.Version.HTTP_1_1)
            .connectTimeout(Duration.ofSeconds(10))
            .build();
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://searchpipe.tech/verify"))
            .timeout(Duration.ofSeconds(60))
            .header("Authorization", "Bearer sp-YOUR_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(json))
            .build();
        HttpResponse<String> resp =
            client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(resp.body());
    }
}
using System.Net.Http.Json;

using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
    new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "sp-YOUR_KEY");

var payload = new
{
    claim = "Attention Is All You Need introduced the transformer architecture",
};

HttpResponseMessage resp = await client.PostAsJsonAsync("https://searchpipe.tech/verify", payload);
resp.EnsureSuccessStatusCode();
Console.WriteLine(await resp.Content.ReadAsStringAsync());

Successful calls return 200 with the verdict payload. Pipeline failures return 503 and are refunded automatically; input moderation rejections return 400 without a charge; a deployment with the endpoint switched off answers 404.

Verification FAQ

What does an inconclusive verdict mean?

inconclusive means the pipeline could not determine whether the evidence supports the claim — the candidate sources could not be fetched, sit behind a paywall, or did not contain enough checkable material. It is a first-class deliverable, not an error: an honest cannot-verify answer is billed like any other verdict, while a pipeline failure returns 503 and is refunded automatically.

Why does a verification take 5-15 seconds?

Each call runs a real evidence pipeline: candidate retrieval, full-text fetching, sentence-boundary span alignment and a consistency check over the quotes. That is inherently slower than a plain web search, and a verification is capped at 30 seconds. Results are not cached, because a verdict depends on the live state of the cited pages.

How is this different from a URL health check?

A URL health check only reports transport facts about a link: status code, redirects and whether an archived snapshot exists. Verification answers a different question — does the cited source actually support the claim? Each evidence item carries url_health as one field, but the verdict comes from span-level quote matching and source authority, not from reachability.

Which verification mode should I choose — paper, web, or auto?

Leave mode on auto (the default) and the endpoint routes itself: a claim that resolves to a DOI or arXiv signal takes the paper route, everything else takes the web route. Force mode=paper when you know the claim points at academic literature, and mode=web for general factual claims. The paper route is the most mature path today; the general web route keeps improving.