1. readfetch
  2. choose
  3. /v1/text

Data · Core

POST/v1/text

Article text and metadata, boilerplate stripped. No browser by default; falls back to one when a page blocks plain HTTP.

  • $0.002
  • markdown
  • metadata
  • no browser

What it does

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.

Price

Quoted by the 402 before anything runs.

  • $0.002per call
  • 30 s default, 60 s maximumwhole-call budget
  • billedonly when content is delivered
  • no keythe payment is the credential

When to call it

Cheapest endpoint that answers the question, first.

Call it when the sentence above is the whole job. Its neighbours solve the same URL with a different trade-off — a browser instead of plain HTTP, a site instead of one page, one section instead of a document. /choose walks the decision, cheapest first, browser last.

Unsure whether another URL is worth paying for at all? /v1/probe is free: metadata plus the full extracted text on the first 3 probes per IP per day (a ~400-character preview after that) before you pay for a priced route.

Request fields

JSON body shape for POST /v1/text — use with the client snippets below, not as a bare POST.

FieldTypeDefaultWhat it does
url requiredstring—Public http(s) URL to read.
formatstringmarkdownOutput flavour: Markdown keeps headings, lists and tables.
accept_languagestring—Accept-Language header, e.g. 'de-DE,de;q=0.9'. Defaults to en-US.
timeout_snumber30Total budget for the whole call in seconds: DNS, redirects, the render fallback and any retry share it.
max_bytesinteger5000000Abort if the response body exceeds this many bytes.

Make the call

Unpaid REST stops at 402. Use readfetch-client, @readfetch/client, or MCP @readfetch/mcp-x402-proxy — they sign x402 and retry. The JSON below is the argument shape for call() / route helpers.

example body
{
  "url": "https://example.com"
}

readfetch-client / @readfetch/client (latest+) handle x402 on paid routes — full API on /integrations#clients.

python
# pip install readfetch-client
# export EVM_PRIVATE_KEY=0x…
from readfetch import Client

rf = Client(private_key="0x…")  # funded account with USDC on Base
result = rf.fetch("https://example.com")
javascript
// npm install @readfetch/client
// export EVM_PRIVATE_KEY=0x…
import { Client } from "@readfetch/client";

const rf = new Client({ privateKey: "0x…" });
const data = await rf.fetch("https://example.com");

Response

Fields shown are the ones a caller branches on.

200 ok
{
  "billed": true,
  "format": "markdown",
  "metadata": {
    "author": "A. Writer",
    "date": "2026-04-01",
    "sitename": "Example"
  },
  "redirected": false,
  "requested_url": "https://example.com/blog/post",
  "size": 48213,
  "status": "success",
  "status_code": 200,
  "text": "# Post title\n\nBody as Markdown...",
  "title": "Post title",
  "url": "https://example.com/blog/post"
}

Limits

Requests are JSON, 1 MiB maximum. Redirects are re-validated at every hop and capped at 5; the final URL is reported. Every call runs on one whole-call budget — DNS, connect, redirects, retries and any render share that clock, and no step starts a fresh timer. Where the endpoint publishes a timeout_s, its default and ceiling are the whole-call budget in the strip above. A budget that expires mid-walk returns status: "partial", and nothing is charged for what was not delivered.

Failures come back as {"error": "…", "hint": "…"} with a status to branch on. Shapes: /docs#errors.

Billing

$0.002 per delivered call. A response with billed: false settles nothing and names the next call to try.

billed: false on 200 usually means a bot wall, empty extraction, or the wrong content type for what you asked for. 502/504 settle nothing.

RECEIPT, claims, and billing rules: /docs#billing.

Settlement, receipts and claims: /docs.