🕷️ Scrape Agent

Pay-per-use web scraping API for AI agents. No subscription, no API key.

x402 Protocol Base Network USDC Payments

Pricing

$0.01 USDC

Per request — pay only for what you use. Payments go directly to the provider wallet on Base.

Payment address: 0x0d4897bf4222deddf8a5b31fa7d8021c369f40d1

Endpoint

POST /api/scrape/x402

Scrape any public URL and return clean text, links, or HTML.

POST https://scrapeagent.xyz/api/scrape/x402
Content-Type: application/json
X-PAYMENT: <x402-payment-proof>

{
  "url": "https://example.com",
  "extract": "text"
}

Request Parameters

url required

Any public URL to scrape. Must be a valid http/https URL.

extract optional

What to extract: text (default), html, links, meta, full

timeout optional

Timeout in milliseconds. Min 1000, max 15000. Default 8000.

Example Response

{
  "protocol": "x402",
  "version": 2,
  "priceUSD": "0.01",
  "url": "https://example.com",
  "status": "ok",
  "title": "Example Domain",
  "content": "This domain is for use in illustrative examples...",
  "wordCount": 42,
  "elapsed": 312
}

How It Works

1. Call the endpoint

Send a POST request without payment — receive a 402 response with payment instructions.

2. Pay $0.01 USDC on Base

Use any x402-compatible client like AgentCash to handle payment automatically.

3. Retry with payment proof

Include the X-PAYMENT header and receive the scraped content instantly.

Try It Now

npx agentcash fetch https://scrapeagent.xyz/api/scrape/x402 \
  -m POST \
  -b '{"url":"https://example.com","extract":"text"}'

Discovery

OpenAPI Spec

/openapi.json

Well-Known

/.well-known/x402

Agent Discovery

/llms.txt

Network

Base Mainnet (eip155:8453)