81trust / 100

Pdf Text

by APEX PDF to text in Documents & files

x402 APIPassing, checked 21 min ago

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-text

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
101 ms typical, 315 ms slowest 5%
Last check
21 min ago
Next check
in 11 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://apexfaucet.xyz/api/x402/pdf-text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapexfaucet.xyz%2Fapi%2Fx402%2Fpdf-text
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"
}

Example output

{
  "data": {
    "author": null,
    "bytes": 184292,
    "characters": 21220,
    "created": "D:20090324113315-06'00'",
    "how": "fetched once (public addresses only, redirects re-checked, 15 MB cap), parsed with pdf.js in JavaScript, text per page. …",
    "ok": true,
    "pages": 9,
    "pagesReturned": 9,
    "text": "--- page 1 ---\nBitcoin: A Peer-to-Peer Electronic Cash System\nSatoshi Nakamoto\[email protected]\nwww.bitcoin.org\nAbstract…",
    "title": null,
    "truncated": false,
    "url": "https://bitcoin.org/bitcoin.pdf"
  },
  "ok": true,
  "paid": 0.003
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
21 min agoPassed402101 ms$0.003
4 h agoPassed40295 ms$0.003
8 h agoPassed402168 ms$0.003
11 h agoPassed402123 ms$0.003
15 h agoPassed40292 ms$0.003
18 h agoPassed402624 ms$0.003
23 h agoPassed40286 ms$0.003
26 h agoPassed40287 ms$0.003
29 h agoPassed402127 ms$0.003
34 h agoPassed402315 ms$0.003