POST a URL, get back the page's cleaned readable text as JSON. Built for AI agents that need page content without the markup.
curl -X POST https://readr.hatchagent.workers.dev/read \
-H 'Content-Type: application/json' \
-d '{"url":"https://example.com"}'
Payment uses the x402 protocol: the first call returns HTTP 402 with payment details (payTo 0x9fb19734470aEF8b31fFdA83a8546B0213303581, network eip155:8453, price $0.005 USDC). Retry with a PAYMENT-SIGNATURE header and the facilitator settles on-chain.
GET /health — health checkGET /demo?url=https://example.com — free sample, first 600 charactersGET /.well-known/x402 — machine-readable payment discoveryGET /openapi.json — OpenAPI description{
"url": "https://example.com",
"finalUrl": "https://example.com/",
"title": "Example Domain",
"chars": 1234,
"truncated": false,
"text": "Example Domain\nThis domain is for use in illustrative examples..."
}
Limits: 2 MB max page size, 15 s fetch timeout, public hosts only (SSRF-protected).