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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 21 min ago | Passed | 402 | 101 ms | $0.003 |
| 4 h ago | Passed | 402 | 95 ms | $0.003 |
| 8 h ago | Passed | 402 | 168 ms | $0.003 |
| 11 h ago | Passed | 402 | 123 ms | $0.003 |
| 15 h ago | Passed | 402 | 92 ms | $0.003 |
| 18 h ago | Passed | 402 | 624 ms | $0.003 |
| 23 h ago | Passed | 402 | 86 ms | $0.003 |
| 26 h ago | Passed | 402 | 87 ms | $0.003 |
| 29 h ago | Passed | 402 | 127 ms | $0.003 |
| 34 h ago | Passed | 402 | 315 ms | $0.003 |