Skip to content
Fourohtwo

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.

BaseArcSolanaBNB ChainRobinhood ChainUnchecked
GEThttps://apexfaucet.xyz/api/x402/pdf-text

UptimeNot 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