⚡ x402 Protocol

Web to Markdown API

AI agents pay $0.001 per page in USDC. No accounts. No API keys. No subscriptions. Just HTTP 402.

$0.001 / request · Base Sepolia · USDC

🎉 Free tier now available

Try the API without x402 payment. Rate-limited to 5 requests/min, content truncated to 2K chars. Perfect for testing and light use.

GET /free/extract?url=...
Free · 5/min
GET /free/meta?url=...
Free · 5/min
GET /free/diff?text_a=&text_b=
Free · 5/min

How it works

Built on the x402 protocol — the open standard for internet-native payments. When an AI agent requests a page, the server responds with HTTP 402 Payment Required. The agent signs a USDC payment, retries, and gets clean markdown back.

6
Endpoints
$0.001
Per request
$0.005
Batch (10 URLs)
0
Setup required

Endpoints

All endpoints are x402-gated. Use the ScoutGate proxy URLs (Base mainnet, USDC) for production agent calls.

GET /extract?url=...
Extract clean markdown text from any URL. Returns title, content, content_length.
https://x402-scoutgate.onrender.com/api/feb84339 · $0.001
GET /meta?url=...
Extract page metadata: title, description, Open Graph tags, Twitter cards, canonical URL.
https://x402-scoutgate.onrender.com/api/351e5037 · $0.001
GET /links?url=...
Extract all links from a page, categorized as internal/external with anchor text.
https://x402-scoutgate.onrender.com/api/fac88667 · $0.001
GET /images?url=...
Extract all images from a page: src, alt text, dimensions, type (img/source/og:image).
https://x402-scoutgate.onrender.com/api/29a3d126 · $0.001
GET /pdf?url=...
Extract full text from PDF files: research papers, reports, whitepapers. Returns title, content, pages.
https://x402-scoutgate.onrender.com/api/6a49d538 · $0.001
GET /struct?url=...
Extract structured data: JSON-LD, schema.org microdata, RDFa links from any web page.
https://x402-scoutgate.onrender.com/api/3e6f712b · $0.001
POST /batch
Batch extract up to 10 URLs in one call. $0.005 per batch (50% savings vs individual calls).
https://x402-scoutgate.onrender.com/api/0f254ecc · $0.005

Usage (Python)

# 1. Install x402 SDK
pip install "x402[httpx,evm]"

# 2. Pay and call
from x402 import x402Client
from x402.mechanisms.evm.exact import ExactEvmScheme
import httpx, base64, json

client = x402Client()
client.register("eip155:*", ExactEvmScheme(signer=account))

# Get 402 response
resp = httpx.get("https://.../extract",
    params={"url": "https://example.com"})

# Decode payment requirements
pr = json.loads(base64.b64decode(
    resp.headers["payment-required"]))

# Sign payment and retry
payload = client.create_payment_payload(pr)
resp2 = httpx.get("https://.../extract",
    params={"url": "https://example.com"},
    headers={"payment-signature": base64.b64encode(
        json.dumps(payload).encode()).decode()})

print(resp2.json()["content"])  # Clean markdown

Usage (cURL)

# Step 1: Get payment requirements
curl -v "https://zero-internationally-santa-optimize.trycloudflare.com/extract?url=https://example.com"

# Step 2: Decode PAYMENT-REQUIRED header, sign payment, retry
# with PAYMENT-SIGNATURE header

Payment details

Via ScoutGate proxy (recommended):  Base mainnet (eip155:8453) · USDC
  /extract, /meta, /links, /images:    $0.001 per call
  /batch (10 URLs):                   $0.005 per batch
  ScoutGate fee:                      2% (min $0.002), rest settles to us

Direct (testnet):                    Base Sepolia (eip155:84532) · USDC
  Pay to:                             0x9e938648c19a25Cb8Ef164dd002Bf4d1dAA24954

Agent artifacts

# Agent skill file (SKILL.md convention)
GET /skill.md

# llms.txt for LLM consumption
GET /llms.txt

# Machine-readable x402 discovery metadata
GET /.well-known/x402

Discoverability

This API is registered in the x402 ecosystem. AI agents can find it via:

# x402Scout catalog (trust-scored, MCP-enabled)
https://x402scout.com/catalog

# CDP Bazaar catalog
GET https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources

# Well-known discovery
GET /.well-known/x402