W

Workers · Verify Citation

by Workers

POSTBase

$0.01

per call · USD Coin on Base

Verify whether a cited source supports an exact factual claim

Endpoint

POST https://red-breeze-8b8c.keenanbooker83.workers.dev/verify-citation

5

Calls / 30d

4

Unique payers / 30d

Sep 5

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://red-breeze-8b8c.keenanbooker83.workers.dev/verify-citation", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "claim": "The United States declared war on Japan on December 8, 1941.",
    "sourceUrl": "https://www.archives.gov/milestone-documents/joint-address-to-congress-declaration-of-war-against-japan"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://red-breeze-8b8c.keenanbooker83.workers.dev/verify-citation" \
  -H "Content-Type: application/json" \
  -d '{"claim":"The United States declared war on Japan on December 8, 1941.","sourceUrl":"https://www.archives.gov/milestone-documents/joint-address-to-congress-declaration-of-war-against-japan"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "ok": true,
  "result": {
    "agent": {
      "id": "citation-verification",
      "version": "2.0.0"
    },
    "claim": "The United States declared war on Japan on December 8, 1941.",
    "verification": {
      "confidence": 0.98,
      "verdict": "supported"
    }
  }
}

Payment details

Pay to0xfbc4f75278c9f3c901efada9feb3de76089fcb99
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Workers & similar services