{"openapi":"3.1.0","info":{"title":"WebRead","version":"0.1.4","description":"Converts a public web page into clean Markdown for LLMs: main content only, absolute links, title/description/lang metadata. Respects robots.txt; only successful reads are charged.","x-guidance":"Usage: GET /v1/read?url=<absolute http(s) URL>&maxChars=<100-200000> returns the page as Markdown. $0.002 USDC on Base via x402, charged only on HTTP 200. Free 2,000-character preview: GET /v1/read/preview?url=.","contact":{"name":"WebRead","url":"https://youraitools.co/guides/pay-per-call-web-scraper-api"},"license":{"name":"MIT"},"x-service-name":"WebRead by AgentGate","x-category":"data","x-categories":["data","web"],"x-tags":["data","web","scraping","markdown","llm"],"x-logo":{"url":"https://agentgate-source.pages.dev/icons/webread.png"}},"servers":[{"url":"https://webread.agentgate.workers.dev"}],"paths":{"/v1/read":{"get":{"operationId":"read_url","summary":"Web page to clean Markdown","tags":["paid"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"},"description":"Absolute http(s) URL of a public web page (HTML or plain text)","example":"https://example.com/"},{"name":"maxChars","in":"query","required":false,"schema":{"type":"integer","minimum":100,"maximum":200000,"default":200000}}],"responses":{"200":{"description":"Success (payment settled)","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"finalUrl":{"type":"string"},"status":{"type":"integer"},"contentType":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"lang":{"type":["string","null"]},"canonical":{"type":["string","null"]},"markdown":{"type":"string"},"chars":{"type":"integer"},"wordCount":{"type":"integer"},"links":{"type":"integer"},"truncated":{"type":"boolean"},"sourceBytes":{"type":"integer"},"redirects":{"type":"integer"},"fetchMs":{"type":"integer"},"robots":{"type":"string"},"fetchedAt":{"type":"string"}}}}}},"400":{"description":"Invalid input (never charged)"},"402":{"description":"Payment Required (x402 v2 terms in the PAYMENT-REQUIRED header)"}},"x-x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x3c1A1E01e790Cd326495631B3b38Bd7068F08d6F","amount":"2000","assetSymbol":"USDC","x402Versions":[2,1]}}},"/v1/read/preview":{"get":{"operationId":"read_url_preview","summary":"Free 2,000-character preview (10/min/IP)","security":[],"responses":{"200":{"description":"OK"},"429":{"description":"Free tier rate limit reached"}},"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"},"description":"Absolute http(s) URL of a public web page (HTML or plain text)","example":"https://example.com/"}]}}},"externalDocs":{"description":"Integration guide","url":"https://youraitools.co/guides/pay-per-call-web-scraper-api"}}