Fetch a PDF from a URL and extract its text content
agent402.tools/api/pdf
Fetch a PDF from a URL and extract its text content. Returns page count, document info, and the full text (up to 20MB PDFs).
POST
https://agent402.tools/api/pdfUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/pdf", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://agent402.tools/fixtures/sample-invoice.pdf"}),
});
console.log(await res.json());Example input
{
"url": "https://agent402.tools/fixtures/sample-invoice.pdf"
}Price changes
- Nov 25, 20260.001 → 0.01
- Nov 25, 20260.01 → 0.001
More from PDF to textProvider status
- apexfaucet.xyz/api/x402/pdf-textPDF to text: extract the text of any public PDF, page by page. The text of a public PDF, page by page: pass ?url= of a whitepaper, filing, invoice or paper and get every page's text with page markers, the page count and the file size. Parsed with pdf.js; up to 15 MB and 200 pages. A file that is not a PDF, will not open, or has no text layer (scanned images) is refused before any charge.0.003
- horizonpulse.dev/api/pdfPDF to text API: the text of a public PDF, page by page. GET url (http/https, max 10MB), optional pages (1-50, default 50). Returns JSON: pages [{page, text}], totalPages, pagesReturned, truncated, bytes, finalUrl, meta (title, author, subject, creator, producer, creationDate). pdf.js text layer, no OCR (image-only PDFs: 422). Max 100K chars. Non-PDF, encrypted, oversize or failed downloads are no0.02
