{"uid":"cap_Eyxc7VdIuPGzp4l2SdB4G","slug":"agentreader-url-and-pdf-to-markdown-json-converter-30ce095b","name":"AgentReader: URL and PDF to Markdown/JSON Converter","description":"REST API and MCP server that turns web pages, JS apps and PDFs into clean Markdown or structured JSON. Free tier, then USDC pay-per-use via x402.","url":"https://agentreader.xyz/v1/x402/read?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"http(s) URL of an HTML page or PDF"},"mode":{"enum":["auto","article","links","full"],"type":"string"},"format":{"enum":["markdown","json"],"type":"string"},"render":{"enum":["auto","never","always"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json","example":{"url":"https://example.com","date":null,"links":[{"href":"https://iana.org/domains/example","text":"Learn more"}],"title":"Example Domain","author":null,"tables":[],"markdown":"# Example Domain\n\nThis domain is for use in documentation examples...","wordCount":30,"contentType":"html"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TkLaJpjAllUVmV6zESxmF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a web page or PDF from a given URL and returns clean Markdown or structured JSON suitable for AI agent consumption","exampleAgentPrompt":"Fetch the page at https://example.com/report and convert it to clean markdown so I can read the content without all the HTML clutter.","exampleUseCases":[{"title":"Research article summarization pipeline","prompt":"Grab the article at https://arxiv.org/abs/2401.12345 and give me its full content as clean markdown so I can summarize it."},{"title":"PDF contract content extraction","prompt":"Extract the text from this PDF — https://company.com/contracts/terms.pdf — and return it as structured JSON with the title, links, and full markdown body."},{"title":"JS-rendered SPA data gathering","prompt":"Fetch https://dashboard.example.com/stats — it's a JavaScript app — and render it fully before converting the page content to markdown."}],"resultDescription":"Returns a JSON object containing the page or document's title, author (if available), publication date, full Markdown-formatted body text, extracted hyperlinks with anchor text, any tables found, word count, and content type. Also includes the original URL.","failureModes":["Invalid or unreachable URL returns an error response","PDF parsing may fail for scanned/image-only PDFs with no text layer","JS rendering may time out for extremely slow or complex SPAs","Private or authentication-gated URLs will not be accessible without credentials passed in headers","Malformed URL parameter results in a validation error","Rate limit exceeded on free tier returns a 402 or 429 response"],"whenToPreferThis":"Choose this endpoint when you need to convert any arbitrary public web page or PDF into clean, agent-readable Markdown or structured JSON in a single API call — especially when the source may be a JavaScript-rendered single-page app that a naive HTTP fetch would miss. Prefer it over generic HTTP fetch utilities because it handles JS rendering, PDF extraction, link parsing, and table detection automatically. It is ideal for AI agent pipelines that need to ingest web content without building a scraping stack.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T00:31:30.267Z","isFirstParty":false,"canonicalSlug":"agentreader-url-and-pdf-to-markdown-json-converter-30ce095b"}