PDF to text
apexfaucet.xyz/api/x402/pdf-text
PDF 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.
GET
https://apexfaucet.xyz/api/x402/pdf-textUptimeNot checked yet
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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://apexfaucet.xyz/api/x402/pdf-text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf");
console.log(await res.json());Example input
{
"url": "https://bitcoin.org/bitcoin.pdf"
}More from PDF to text
- agent402.tools/api/pdfFetch a PDF from a URL and extract its text content. Returns page count, document info, and the full text (up to 20MB PDFs).0.01
- 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
