# readfetch.com > Pay-per-call web reading for AI agents over x402 — no account, no API key. > Reading routes settle on delivery; /v1/fetch when the origin answers. Signed > provenance on paid responses. Start free with POST /v1/probe. Base URL: https://readfetch.com Skill (start here): https://readfetch.com/SKILL.md MCP: https://readfetch.com/mcp (tools: https://readfetch.com/.well-known/mcp.json) OpenAPI: https://readfetch.com/openapi.json Manifest: https://readfetch.com/.well-known/service.json Resources: https://readfetch.com/.well-known/x402-resources.json Health: https://readfetch.com/healthz Integrations hub: https://github.com/readfetch/readfetch/blob/main/INTEGRATIONS.md GitHub (docs repo): https://github.com/readfetch/readfetch Catalog `version` in service.json and mcp.json is `0.1.0+17` for this deployment (semver plus build counter when present) — not npm/PyPI client package versions (see INTEGRATIONS.md). Paid routes require a funded Base USDC wallet. Use readfetch-client / @readfetch/client or the MCP signing proxy (@readfetch/mcp-x402-proxy). Direct calls without a signing client will stop at 402. ## Free preflight (start here) **`POST /v1/probe`** is the free endpoint — no wallet, no 402, no x402. Send `{"url":"https://…"}` for HTTP status, content type, size, title, `challenge`, and when the page is HTML without a bot wall a **`preview`** of what `/v1/text` would extract: the full read (up to 32,000 characters) for the first 3 probes per IP per day, ~400 characters after that. Rate limit: 30/min and 2/s per IP. MCP: `readfetch_probe` is the same route (no `EVM_PRIVATE_KEY` on the signing proxy). Every other `/v1/*` call is priced unless noted below — the exception is the free `GET /v1/crawl/{id}` poll; Feedback and Claims say how they are paid. ## Exit (not a JSON field) Datacentre by default. Residential only `POST /v1/scrape/residential` (same JSON as `/v1/scrape`). The catalogue omits `egress`; unknown top-level body keys are ignored, but nested option objects (`advanced`, `auth`, cookies) are strict — an unknown field there is a 422. ## Feedback Two lanes: - **Integration / docs / site issues** — `POST /v1/feedback` with `{request_id, category, message}`. `request_id` is the `X-Request-Id` header from the call you are reporting. Categories: `integration`, `docs`, `site`, `other`. MCP tool: `readfetch_feedback`. - **Paid delivery disputes** — `POST /v1/claims` with `{receipt, reason, address, signature}` (see /docs#claims). Do not use feedback for billing. ## Endpoints POST /v1/text $0.002 Article text and metadata, boilerplate stripped. No browser by default; falls back to one when a page blocks plain HTTP. POST /v1/map $0.002 Sitemaps, robots rules, feeds and link counts for a whole site, in one call. Plan a crawl before paying for it. POST /v1/scrape $0.005 Chromium renders the page, runs interactions, and returns Markdown, text or HTML with its links. POST /v1/scrape/residential $0.02 Scrape through a residential address pool, for targets that refuse a datacentre address. Same contract as /v1/scrape, one attempt, priced for the bandwidth. POST /v1/fetch $0.0015 Raw HTTP through the same egress. JSON APIs, GraphQL, PDFs, byte ranges - anything that is not a page. POST /v1/batch $0.0015/page Read up to 50 HTML pages in one payment (same /v1/text extraction per URL). Results in input order; undelivered pages are credited, not billed. POST /v1/pdf $0.005/document Documents, not pages: page text plus one Markdown body, priced per document rather than per page. POST /v1/section $0.003 Read one heading or one selector instead of the whole page - ten to a hundred times fewer tokens. POST /v1/diff $0.003 Stateless change detection. Send the hash you hold, get back whether it changed and a bounded diff. POST /v1/screenshot $0.003 PNG or JPEG of a rendered page: viewport, full page, or one element via CSS selector. POST /v1/search $0.005 Web search without a search subscription, returning titles, URLs and snippets. POST /v1/crawl $0.003/page Bounded async crawl with a job id, a page cap quoted up front, and per-page Markdown. GET /v1/crawl/{id} $0 Poll a crawl job: status, completed page count, and per-page Markdown as they land. POST /v1/probe free FREE · metadata before spending, plus the full extracted text on the first 3 probes per IP per day (a ~400-character preview after that). Payment on this deployment (`payment.status`: "live" in /.well-known/service.json): paid POSTs need `content-type: application/json` and `PAYMENT-SIGNATURE` after signing the 402 quote. `x-payment-proof` is not accepted when settlement is live — sending it does not bypass payment. Free endpoint: `POST /v1/probe` needs no payment header. The 402 body and `PAYMENT-REQUIRED` header quote the exact price and x402 `accepts` block. ## Guides - / — how it works, pricing, and common FAQ. - /choose — which endpoint to use for a job. - /docs — payment headers, errors, endpoint table. - /examples — a request and response per endpoint. - /integrations — MCP host configs, frameworks, REST discovery. - /faq — reading pages, wiring, edge cases. - /privacy — what one call records, retention, and removal. - /terms — price is the quote, when you are charged, no SLA, how a claim works. ## Integrations (GitHub docs repo) - https://github.com/readfetch/readfetch/blob/main/INTEGRATIONS.md — clients (`readfetch-client`, `@readfetch/client`), MCP proxy, 402 flow. - https://github.com/readfetch/readfetch/blob/main/HOSTS.md — MCP copy-paste per client. - https://github.com/readfetch/readfetch/blob/main/AGENTS.md — agent drop-in for repos. - https://github.com/readfetch/readfetch/tree/main/examples — x402 tool cores and framework wrappers. ### POST /v1/text Fetch a public URL and return its main readable content as Markdown or plain text, plus title, author, published date and site name. Strips navigation, ads and boilerplate. No JavaScript rendering by default (cheaper than readfetch_scrape); one Chromium fallback when plain HTTP is blocked. Prefer readfetch_fetch when you need raw status, headers, or non-HTML bytes; readfetch_scrape when the article only appears after JavaScript runs. Body: accept_language any default: null; Accept-Language header, e.g. 'de-DE,de;q=0.9'. Defaults to en-US. format string markdown | text; default: markdown; Output flavour: Markdown keeps headings, lists and tables. max_bytes integer 1024-20000000; default: 5000000; Abort if the response body exceeds this many bytes. timeout_s number 1-60; default: 30; Total budget for the whole call in seconds: DNS, redirects, the render fallback and any retry share it. url string required; 1-2083 chars; Public http(s) URL to read. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/map Discover a site's crawlable surface without crawling it: parse robots.txt allow/disallow rules, collect URLs from sitemap.xml and sitemap indexes, find RSS, Atom and JSON feeds, and count internal and external links on the homepage. Use the returned URLs to plan readfetch_scrape, readfetch_batch, or readfetch_crawl — not readfetch_map again on each URL. Prefer readfetch_probe on one URL before paying for bodies. Body: limit integer 1-1000; default: 200; Maximum number of URLs to return (1-1000). max_bytes integer 1024-20000000; default: 5000000; Abort if any single document exceeds this many bytes. timeout_s number 1-95; default: 60; Total budget for the whole call in seconds; every sitemap fetch and the browser fallback share it. 95 s is the edge ceiling (Cloudflare closes at 100 s). url string required; 1-2083 chars; Public http(s) URL of the site to map. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/scrape Load a public URL in headless Chromium and return Markdown, plain text, or HTML (`format`, plus status_code, title, billed; optional links via `advanced.include_links`). `mode` sets latency and depth: fast (15 s, minimal render), render (30 s, default, full JS), full (60 s, scroll the page). Put scroll, wait_for, js_code, headers, cookies, and auth in `advanced` (`options` is deprecated, same shape). Prefer readfetch_text when JavaScript is not required; readfetch_fetch for raw HTTP/API bytes; readfetch_residential when the site blocks datacentre IPs; readfetch_screenshot for a PNG/JPEG. Bot-check or empty extractions may return `billed: false` with a hint. Body: advanced object default: null; Browser interactions: scroll, wait_for selector, js_code, headers, cookies, locale, include_links, etc.; see OpenAPI / x402-resources.json for full shape auth object default: null; Optional cookie, bearer, or basic auth for the page load.; type: cookie | bearer | basic; see OpenAPI / x402-resources.json for full shape format string markdown | text | html; default: markdown; Primary body field returned: markdown (default), plain text, or raw HTML. mode string fast | render | full; default: render; Whole-call budget and render depth: fast (15 s), render (30 s, default), or full (60 s with page scroll). options object default: null; Deprecated — use `advanced` instead (same ScrapeOptions shape). Scheduled for removal in a future API semver bump.; deprecated — use advanced; see OpenAPI / x402-resources.json for full shape url string required; 1-2083 chars; Public http(s) URL to load in Chromium. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/scrape/residential Identical request and response to /v1/scrape, but the render leaves through a residential address instead of the datacentre. For targets that block by IP reputation (DataDome, PerimeterX, Cloudflare, AWS WAF). One attempt, no retries: residential bandwidth is the cost, and four times the scrape price is what it takes to cover it honestly. Prefer readfetch_scrape when datacentre egress works; use readfetch_residential only after readfetch_scrape fails or readfetch_probe reports a persistent challenge. Body: advanced object default: null; Browser interactions: scroll, wait_for selector, js_code, headers, cookies, locale, include_links, etc.; see OpenAPI / x402-resources.json for full shape auth object default: null; Optional cookie, bearer, or basic auth for the page load.; type: cookie | bearer | basic; see OpenAPI / x402-resources.json for full shape format string markdown | text | html; default: markdown; Primary body field returned: markdown (default), plain text, or raw HTML. mode string fast | render | full; default: render; Whole-call budget and render depth: fast (15 s), render (30 s, default), or full (60 s with page scroll). options object default: null; Deprecated — use `advanced` instead (same ScrapeOptions shape). Scheduled for removal in a future API semver bump.; deprecated — use advanced; see OpenAPI / x402-resources.json for full shape url string required; 1-2083 chars; Public http(s) URL to load in Chromium. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/fetch Send an HTTP request (GET, POST, PUT, PATCH, DELETE, HEAD) through egress and return status_code, response headers, and body as text or base64 (`binary: true`). `max_bytes` caps the stored body; `follow_redirects` (default true) and `timeout_s` (95 s ceiling) apply to the full redirect chain. Use `json_body` for JSON POST/PUT payloads; use `body` for raw bytes or strings. Prefer readfetch_text for readable HTML articles; readfetch_pdf to extract PDF text (not raw bytes alone). POST/PUT/DELETE can change remote state despite readOnlyHint. Body: binary boolean default: false; When true, return body as base64 instead of UTF-8 text. body any default: null; Raw request body string for POST/PUT/PATCH (mutually exclusive with json_body). follow_redirects boolean default: true; Follow 3xx redirects (default true). headers any default: null; Optional request headers, e.g. Authorization or Accept. json_body any default: null; JSON object serialized as the request body (Content-Type application/json). max_bytes integer 1024-50000000; default: 10000000; Stop reading and truncate once the response body exceeds this size (bytes). method string GET | POST | PUT | PATCH | DELETE | HEAD; default: GET; HTTP method (GET default). timeout_s number 1-95; default: 95; Total budget for the whole call in seconds, redirect hops included. url string required; 1-2083 chars; Request URL (http or https). Billing: **transport-gated** — bills when the origin answers, including 4xx/5xx and empty bodies. Only DNS/timeout/TLS/SSRF failure is unbilled (`billed: false`). ### POST /v1/batch Read a fixed list of public HTML pages in one call—the same article extraction as POST /v1/text for each URL (Markdown or plain text plus title and metadata). One x402 payment covers the batch (minimum 3 pages quoted; URLs deduped, max 50). Returns results in input order: each item has url, status_code, text, billed, and hint when undelivered, plus batch-level delivered, failed, billed_pages, and optional credit for unused pages. Undelivered pages are not billed. Use readfetch_text for one URL, readfetch_map then readfetch_crawl to discover and walk a site, readfetch_scrape when JavaScript is required. Read-only; 402 without PAYMENT-SIGNATURE like other paid tools. Body: accept_language any default: null; Accept-Language header for every item, e.g. 'de-DE,de;q=0.9'. Defaults to en-US when omitted. format string markdown | text; default: markdown; Per-item output flavour, same as /v1/text: markdown (default) or plain text. pipeline string text | render; default: text; text (default) = HTTP-first per URL, same as readfetch_text; use render when probe reported challenge:true or items need JavaScript — bills like scrape per undelivered page, not like plain text. timeout_s number 1-95; default: 95; Total budget for the whole batch in seconds; every item shares it and no item restarts it. urls array required; URLs to read, deduped before quoting. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/pdf Extract text from a PDF (%PDF- magic, not Content-Type). Send exactly one of `url` (public http(s) link — egress GET, ≤ 20 MB) or `content_base64` (bytes you already have — the whole request body is capped at 1 MiB, base64 expansion included; optional `filename` labels the upload). Returns `pages` (per-page text), one concatenated `markdown` body, `title`, and `metadata`; $0.005 per document, not per page. `max_pages` limits extraction (default 50, max 200); documents over 200 pages or above your cap return 413 and are not billed. Scanned/image-only PDFs may return empty text with `billed: false` and a `hint`. Prefer readfetch_text or readfetch_scrape for HTML articles; readfetch_fetch for raw PDF bytes without extraction; readfetch_batch for many HTML URLs, not PDFs. Read-only server-side; paid x402 like other routes. Body: content_base64 string Base64-encoded PDF bytes. The request body is capped at 1 MiB total — base64 expansion comes out of that, it does not add to it (~0.75 MB of PDF). Mutually exclusive with url; pair with filename when the label matters. filename string Optional label when using content_base64 (default upload.pdf); ignored for url-only requests. max_pages number 1-200; default: 50; Extract at most this many pages. Default 50; raise up to 200 when the document is longer. Over cap → 413, unbilled. url string Public PDF URL; fetched through egress (≤ 20 MB). Mutually exclusive with content_base64. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/section Extract one heading or one CSS selector from a public page instead of the whole document. Returns matched Markdown or text, title, chars, content_sha256, and billed. If the heading is missing, returns HTTP 200 with empty text and `available_headings` so you can retry. `mode`: fast (plain HTTP) or render (default, Chromium when the page blocks HTTP). `max_chars` truncates output (default 8000, max 20000). Prefer readfetch_text for full articles; readfetch_scrape when content needs JavaScript. Body: format string markdown | text; default: markdown; Output flavour for the matched section (markdown default). heading any Heading text to match (case-insensitive, whitespace-normalised). Required unless `selector` is set — send exactly one of `heading` or `selector`, not both. max_chars number 100-20000; default: 8000; Truncate matched text after this many characters. mode string fast | render; default: render; fast = HTTP-first; render = one browser pass when plain HTTP fails (default). selector any CSS selector; up to 20 matches concatenated. Required unless `heading` is set — use selector when the section has no stable heading text. url string required; Public page URL to extract from. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/diff Stateless change detection on readable page text (same HTTP-first extraction as readfetch_text): fetch the URL, compare to a hash or prior body you store client-side, return changed/unchanged plus optional line diff. First call with no prior fields returns a baseline hash (see hint). `previous_hash` alone detects change without a line diff; add `previous_content` when you need added/removed/diff. A no-change answer is still billable when text was delivered. Prefer readfetch_text when you need the full article once; readfetch_probe (free) for a short preview and `content_sha256` before spending on text. Body: format string text | markdown; default: text; Extraction flavour for this fetch and for the hash (default text). Must match how you built `previous_content` if you send it. previous_content any Full prior extracted text (what you stored from readfetch_text/readfetch_diff). Required for `added`/`removed`/`diff` output; hash-only compares do not emit a line diff. previous_hash any `sha256:…` or bare hex from readfetch_diff, readfetch_probe `content_sha256`, or a prior text read. Omit on the first poll to establish a baseline hash in the response. timeout_s number 1-60; default: 30; Total budget for the whole call in seconds, both fetches included. 60 s is the ceiling on this route. url string required; Public http(s) page to re-fetch and compare; must match the extraction used when you saved the hash (same `format`). Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/screenshot Screenshot a public URL in headless Chromium (page JavaScript runs; no ad blocker) and return PNG or JPEG in JSON — `image_base64`, `mime`, `width`, `height`, `status_code`, `billed` (not a hosted URL). Scope: viewport only (`full_page: false`), full scrollable page (default), or one element (`selector`). `mode` caps total render time: fast (15 s), render (30 s, default), full (60 s, always full-page regardless of `full_page`). Set `width`/`height` before navigation (default 1280×800, max 3840×2160). `delay_ms` (0–30000) waits after navigation, then captures — raise it or use `mode=full` for slow SPAs and lazy media. Prefer readfetch_text or readfetch_scrape for extractable text; readfetch_pdf for PDF files; readfetch_fetch for raw HTTP without rendering. Read-only on the origin (GET + render, no form POST). Bot-check or blank frames may still return pixels with `billed: false` and a `hint`; paid x402 like other routes. Body: delay_ms number 0-30000; Milliseconds to wait after navigation before capture (0–30000); use for SPAs and lazy-loaded content. format string png | jpeg; default: png; Image encoding for `image_base64` (png default, or jpeg). full_page boolean default: true; true (default): entire scrollable document; false: viewport only. Ignored when mode=full. height number 1-2160; Viewport height in pixels before navigation (default 800, max 2160). mode string fast | render | full; default: render; Whole-call budget: fast (15 s), render (30 s, default), or full (60 s; always captures the full scrollable page). selector any CSS selector — capture that element's box only. Omit for page/viewport per full_page. url string required; Public http(s) URL to render in headless Chromium. width number 1-3840; Viewport width in pixels before navigation (default 1280, max 3840). Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/search Run a web search without a separate search API subscription. Returns titles, URLs, and snippets only — not full page text; follow with readfetch_text, readfetch_probe, or readfetch_scrape on a chosen result URL. `limit` is 1–20 (default 5). Optional `lang` biases locale (e.g. en, de-DE). Optional `tbs` filters recency: h= past hour, d= day, w= week, m= month, y= year. Use readfetch_map/readfetch_crawl when you already know the site; readfetch_* URL tools when you have the link. Body: lang any Optional language/locale hint, e.g. en or de-DE. limit number 1-20; default: 5; Maximum number of results to return (default 5). query string required; Search query string. tbs any Optional recency filter: h=hour, d=day, w=week, m=month, y=year. Billing: **delivery-gated** — undelivered content returns `billed: false` and is not charged. A `hint` names the next call (often free POST /v1/probe first). ### POST /v1/crawl Start a bounded async crawl from one seed URL. Returns job_id, status (queued), pages_quoted, and price_usd — then poll readfetch_crawl_status with that id until status is complete or failed. A complete job includes per-page url and Markdown in the status payload. Cap scope with max_pages (default 20, max 100) and max_depth (default 2, max 3); include/exclude filter paths by prefix (* suffix on include). Prefer readfetch_batch for a fixed URL list; readfetch_map to list URLs without fetching bodies; readfetch_text for a single page. Body: exclude array Path prefixes to skip during the crawl. include array Path prefixes to allow; * suffix wildcard. max_depth number 1-3; default: 2; Link depth from the seed URL (default 2). max_pages number 1-100; default: 20; Maximum pages to fetch in this job (quoted up front for payment). url string required; Seed URL; crawl stays on the same registrable domain. Billing: **quoted at accept** — the `max_pages` quote settles when the job is accepted (202), so `billed` on a job is informational. Poll the free `GET /v1/crawl/{id}` for pages. ### GET /v1/crawl/{id} Poll a crawl job started with readfetch_crawl. FREE — no payment or wallet; unauthenticated. Pass `id` from the crawl response. Returns job_id, status (queued, running, complete, or failed), completed/total counts, and a growing `pages` list (url plus Markdown) as results land. Stop polling when status is complete or failed. Results are kept for one hour after the job finishes. Path: id string required; Job id from readfetch_crawl (`job_id` in the start response). Required for MCP tools/call; poll until status is complete or failed (results kept ~1 hour). Billing: **no x402** — poll with GET after POST /v1/crawl returns a job id; `billed` is always false. ### POST /v1/probe Free preflight on a URL before any paid readfetch_* call: HTTP status, content type, byte size, title, language, and whether a bot wall is waiting (`challenge`). When the response is HTML and not a challenge page, the JSON includes **`preview`**: the text readfetch_text would return (same extractor), up to **32,000 characters** for the first **3 probes per IP per day**, then **400 characters**. Use readfetch_probe instead of readfetch_text when choosing a route or estimating size; if `challenge: true`, use readfetch_scrape (then readfetch_residential if still blocked), not readfetch_text. Plain HTTP only — no browser render. Body: accept_language any default: null; Accept-Language header, e.g. 'de-DE,de;q=0.9'. Defaults to en-US. timeout_s number 1-60; default: 10; Total budget for the whole call in seconds (default 10, max 60). Shared across redirects; does not apply to paid readfetch_text timeout_s on a follow-up call. url string required; 1-2083 chars; Public http(s) URL to inspect. Billing: **free** — never requires payment; `billed` is always false. Use this before spending on any priced route. ## Recovery - **Try free first:** POST /v1/probe with the same `url` before paying (no wallet). - On **reading routes**, `billed: false` means nothing was charged: read `hint`, then retry with a **new** payment (the nonce from a verified attempt is single-use). - On **`POST /v1/fetch`**, `billed: false` means transport failed or a bot-check page; origin 4xx/5xx can still be `billed: true` — do not treat HTTP errors as "free retries". - 429 (`rate_limited`, `payer_rate_limited`, `payer_concurrency`): honor `Retry-After`; payer limits key off the wallet, not IP. - 429 or bot wall on a reading route: retry with /v1/scrape (then /v1/scrape/residential). - Prices and schemas: /.well-known/x402-resources.json