{"openapi":"3.1.0","info":{"title":"Easy Reader AI","version":"1.0.0","description":"Pay-per-call web page and PDF reader for AI agents. Returns clean Markdown, metadata and links. Paid per request with x402 (USDC on Base); no API key or signup. Failed requests are not charged."},"servers":[{"url":"https://agent-reader.gm-tools.workers.dev"}],"paths":{"/v1/read":{"get":{"operationId":"readPage","summary":"Read a web page or PDF as clean Markdown","description":"Fetches a public URL and returns Markdown of the main content (the <main> element when present) plus title, description, author, publish date, JSON-LD and up to 200 links. PDFs are supported.","parameters":[{"name":"url","in":"query","required":true,"description":"Public http(s) URL of a web page or PDF","schema":{"type":"string","format":"uri"}},{"name":"maxChars","in":"query","required":false,"description":"Max Markdown characters to return (default 50000, max 200000)","schema":{"type":"integer","minimum":500,"maximum":200000,"default":50000}},{"name":"selector","in":"query","required":false,"description":"Optional CSS selector to convert only part of an HTML page","schema":{"type":"string"}}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"network":"eip155:8453","asset":"USDC"},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid or disallowed URL (not charged)"},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED header."},"415":{"description":"Unsupported content type (not charged)"},"502":{"description":"Target site failed to respond (not charged)"}}}},"/v1/meta":{"get":{"operationId":"pageMetadata","summary":"Get a web page's metadata","description":"Returns title, description, canonical URL, language, site name, author, publish date, image and JSON-LD.","parameters":[{"name":"url","in":"query","required":true,"description":"Public http(s) URL","schema":{"type":"string","format":"uri"}}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"network":"eip155:8453","asset":"USDC"},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid or disallowed URL (not charged)"},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED header."},"415":{"description":"Unsupported content type (not charged)"},"502":{"description":"Target site failed to respond (not charged)"}}}}}}