The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Scrape402 listing page.
Working examples for calling x402-gated HTTP APIs: your agent pays USDC per request on Base — no signup, no API keys, no subscription.
All examples run against x402.shizu.me (77 live
endpoints, prices from $0.001/call): an OpenAI-compatible LLM gateway
(/v1/chat/completions, /v1/embeddings, /v1/models), web search, a code
sandbox, web scraping, live crypto/market data, verifiable randomness, and a
prepaid off-chain metering rail for high-frequency loops (100+ calls/min,
no per-call gas).
HTTP 402 response carries signed USDC payment
requirements (price, asset, recipient).Fund a wallet with a few dollars of USDC on Base, export its private key, and every example here just works.
| File | What it shows |
|---|---|
js/chat.mjs | OpenAI-compatible chat completion, paid per call |
js/search.mjs | Live web search without a search-API account |
python/chat.py | Chat completion via the Python x402 client |
python/embeddings.py | OpenAI-shape embeddings for RAG loops |
python/metered_loop.py | Prepay once, then 100+ calls/min off-chain |
Every route quotes its price on a free unpaid request:
Live service: https://x402.shizu.me · OpenAPI: https://x402.shizu.me/openapi.json · MCP tools: https://x402.shizu.me/.well-known/mcp-tools · Contact: x402@opklaar.com
MIT licensed.