{"slug":"readfetch-com-v1-pdf-611ac1","title":"Extract text from a PDF (%PDF- magic, not Content-Type)","host":"readfetch.com","method":"POST","resource":"https://readfetch.com/v1/pdf","category":"search","description":"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` (","price_listed":0.005,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":5,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"max_pages":50,"url":"https://example.com/paper.pdf"},"bodyType":"json","description":"Documents, not pages: page text plus one Markdown body, priced per document rather than per page.","method":"POST","type":"http"},"output_schema":{"$defs":{},"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"anyOf":[{"required":["url"]},{"required":["content_base64"]}],"properties":{"content_base64":{"description":"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.","type":"string"},"filename":{"description":"Optional label when using content_base64 (default upload.pdf); ignored for url-only requests.","type":"string"},"max_pages":{"default":50,"description":"Extract at most this many pages. Default 50; raise up to 200 when the document is longer. Over cap → 413, unbilled.","maximum":200,"minimum":1,"type":"number"},"url":{"description":"Public PDF URL; fetched through egress (≤ 20 MB). Mutually exclusive with content_base64.","example":"https://example.com/paper.pdf","format":"uri","type":"string"}},"type":"object"},"bodyType":{"const":"json"},"method":{"enum":["POST"]},"type":{"const":"http"}},"required":["type","method","body"],"type":"object"},"output":{"properties":{"billed":{"type":"boolean"},"content_sha256":{"type":"string"},"hint":{"type":["string","null"]},"markdown":{"type":"string"},"metadata":{"properties":{"author":{"type":"string"},"created":{"type":"string"},"producer":{"type":"string"}},"type":"object"},"page_count":{"type":"integer"},"pages":{"items":{"properties":{"page":{"type":"integer"},"text":{"type":"string"}},"type":"object"},"type":"array"},"source":{"format":"uri","type":"string"},"status":{"type":"string"},"title":{"type":"string"}},"type":"object"}}},"history":[{"day":"2026-11-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1468,"error":null},{"day":"2026-10-31","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":310,"error":null},{"day":"2026-10-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1163,"error":null}],"description_full":"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 20","last_updated":"2026-11-22T19:15:44.279Z","schemes":["exact"]}