S

Sanfoundation · WEB Extract

by Sanfoundation

POSTBase

$0.01

per call · USD Coin on Base

Fetch and extract the readable content of a single URL. Returns the page title, publish date when known, the most relevant excerpts (optionally focused by an `objective`), and the full readable text of the page.

Endpoint

POST https://gateway.sanfoundation.com/x402/v1/web-extract

1

Calls / 30d

1

Unique payers / 30d

Aug 22

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://gateway.sanfoundation.com/x402/v1/web-extract", {
  method: "POST",
});
const data = await res.json();
cURL
curl -X POST \
  "https://gateway.sanfoundation.com/x402/v1/web-extract?objective=summarize+the+key+findings&url=https%3A%2F%2Fexample.com%2Farticle" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "excerpts": [
    "QatarEnergy reduced output at one train for scheduled maintenance..."
  ],
  "full_content": "QatarEnergy said today that one of its LNG trains has been taken offline for...",
  "publish_date": "2026-04-26T00:00:00Z",
  "title": "Qatar trims LNG output amid maintenance",
  "url": "https://example.com/article"
}

Payment details

Pay to0x16b5fe729f2ca544b309844f75e8429ab45151ae
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Sanfoundation & similar services