Content
Main text, headings, lists, links and tables as Markdown. PDF text comes from the document’s own text layer.
Web Read / commercial developer preview
Read a public web page or text-based PDF as clean Markdown, with the source details your agent needs to cite it, compare it or use it as context.
Source content
This domain is for use in documentation examples without needing permission.
Clean Markdown inside structured JSON
Main text, headings, lists, links and tables as Markdown. PDF text comes from the document’s own text layer.
Title, original and final URL, word count, retrieval timestamp, content hash, and source-declared metadata when available.
A receipt with the price and payment reference or credits charged. Structured errors when a source cannot be read.
Read original material and keep its URL beside the passage your agent uses.
Turn public docs and reports into readable context for your application.
Use content hashes in a recurring workflow. A fresh read is a new purchase; recovery returns the prior result.
GitHub ActionCredits are held while the source is read, billed on successful extraction and released on failure. The response reports the credits charged. Insufficient funds return HTTP 402 before a read.
x402 on Base and MPP on Tempo verify authorization first and settle only after successful extraction. HTTP 200 is the paid result. A refused source does not settle the payment.
Retry with the same URL and
request_id
, and the same wallet or workspace identity, within 10 minutes. The stored result is returned without a second charge. Use a new request ID for a fresh read. Preserve the same ordered URL list for a direct batch.
Delivered content is temporarily stored for recovery. Wallet recovery uses a 10-minute window; stored credit results are expired lazily on later recovery lookups, so this is not a precise deletion-time promise. Accounting records remain. A SHA-256 identifies returned content; it does not certify the source’s truth. Source metadata may be absent or wrong.
| Path | Delivery & billing | Limit |
|---|---|---|
Direct wallet batch
POST /read/v1/pages
|
All or nothing. Every page must succeed. One failed URL means no batch charge; the error lists failures. | 1–10 distinct URLs, $0.002 each |
API-key SDK
readPages
|
Individual reads. Successfully delivered pages are charged; unsuccessful pages are reported separately. This is not an atomic batch. | 1–10 distinct URLs, $0.002 per delivery |
Published SDK 0.3.2 supports both paths and distinguishes whole-batch authentication or credit refusals from partial delivery failures.
HTTP 422 describes invalid or unreadable sources. Target 5xx, fetch failures and timeouts may be retried later (502/504); do not blindly retry a permanent refusal. Production error contract .
The published 20-URL benchmark delivered 17 responses and observed roughly 9× lower estimated token counts at the median versus raw HTML. Estimates use characters ÷ 4, not a model tokenizer. One delivered response was a thin JavaScript shell and is explicitly a miss. This is a small extraction sample, not a guarantee of complete content or workflow savings.
Inspect the page-by-page results and reproduce the benchmark .
For agents that pay
An agent buys three web pages for one job. It pays only for what it gets, a refused page costs nothing, and matching retries can recover a paid result within 10 minutes.
Simulation Example data. No payment is made.
It asks Web Read for
news.example/a
and gets HTTP 402: the price, the network and where to pay. Nothing is held yet.
402 $0.002 · USDC on Base (x402) or Tempo (MPP)
The purchase fits the job's budget, so the agent signs a payment for exactly $0.002 and repeats the request. The money hasn't moved.
POST /read/v1/page PAYMENT-SIGNATURE: …
Web Read extracts readable content first, settles the authorized payment, then sends the paid result and receipt. A lost HTTP response can be recovered.
200 412 words · sha256 3f1c…e09a · settled
The next page is blocked by the site's robots.txt. Web Read refuses it, and the signed payment is never settled.
422 disallowed_by_robots_txt · charged: false
The agent buys
news.example/c
, but the response is lost. Within 10 minutes, the same wallet retries the same URL with the same
request_id
and a new signature, gets the page it paid for, and the new signature is never settled.
200 recovered: true · no second charge
Every purchase has a payment reference and a content hash the agent can check, so the job's cost reconciles to what it received.
The Web Read steps (price, payment, settlement after successful extraction, refusal, retry recovery, receipt) work this way in the live service, over x402 and MPP. The job budget shows how an Inferrail budget tracks them; budgets that cover purchases are experimental .