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

Search · Scale and monitoring

POST/v1/crawl

Bounded async crawl with a job id, a page cap quoted up front, and per-page Markdown.

  • $0.003/page
  • async job
  • robots

What it does

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.

Price

Quoted by the 402 before anything runs.

  • $0.003/pageper page
  • settledat accept, quoted from max_pages
  • 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/crawl — use with the client snippets below, not as a bare POST.

FieldTypeDefaultWhat it does
url requiredstring—Seed URL; crawl stays on the same registrable domain.
max_pagesnumber20Maximum pages to fetch in this job (quoted up front for payment).
max_depthnumber2Link depth from the seed URL (default 2).
includearray—Path prefixes to allow; * suffix wildcard.
excludearray—Path prefixes to skip during the crawl.

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…
import asyncio
from readfetch_client import readfetch_crawl

async def main():
    data = await readfetch_crawl("https://example.com")

asyncio.run(main())
javascript
// npm install @readfetch/client
// export EVM_PRIVATE_KEY=0x…
import { readfetchCrawl } from "@readfetch/client";

const data = await readfetchCrawl("https://example.com");

Response

Fields shown are the ones a caller branches on.

202 accepted
{
  "hint": "GET /v1/crawl/{id} for progress",
  "job_id": "job_ab12",
  "pages_quoted": 20,
  "price_usd": "0.06",
  "status": "queued"
}

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. This route returns 202 with a job id; the whole-call budget bounds the accept, not the walk that runs after it.

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

Billing

$0.003 per page, quoted from max_pages and settled when the job is accepted. billed is informational: the pages land on the free poll, after the money moved.

202 means the job was accepted and the quote settled; GET /v1/crawl/{id} is free and carries per-page billed.

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

Settlement, receipts and claims: /docs.