Fetch and extract the readable content of a single URL
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.
10000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-22
updated
Provider
gateway.sanfoundation.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x16B5fE729f2Ca544B309844F75e8429ab45151Ae",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "POST",
"queryParams": {
"objective": "summarize the key findings",
"url": "https://example.com/article"
},
"type": "http"
},
"output": {
"example": {
"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"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"POST"
],
"type": "string"
},
"queryParams": {
"properties": {
"objective": {
"description": "Optional natural-language objective used to bias the excerpt selection.",
"type": "string"
},
"url": {
"description": "Absolute http(s) URL to fetch and extract.",
"format": "uri",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"excerpts": {
"items": {
"type": "string"
},
"type": "array"
},
"full_content": {
"type": "string"
},
"publish_date": {
"nullable": true,
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://gateway.sanfoundation.com/x402/v1/web-extract" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://gateway.sanfoundation.com/x402/v1/web-extract");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://gateway.sanfoundation.com/x402/v1/web-extract")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5008.json, and this resource appears in /discovery/resources and /discovery/search.