80trust / 100Pdf
by Horizon Pulse in Documents & files
x402 APIPassing, checked 2 h ago
PDF to text. Use when you need the text of a public PDF document. GET with required url (http/https, max 10MB) and optional pages (1-50, default 50). Returns JSON: pages [{page, text}], totalPages, pagesReturned, truncated, bytes, finalUrl and meta (title, author, subject, creator, producer, creationDate). Reads the PDF text layer with pdf.js; no OCR, so scanned image-only PDFs return 422. Max 100K chars. Not a PDF, encrypted, too large or failed downloads are not charged.
GET https://horizonpulse.dev/api/pdf
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 165 ms typical, 165 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://horizonpulse.dev/api/pdf?url=https%3A%2F%2Fhorizonpulse.dev%2Fsample.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%2Fhorizonpulse.dev%2Fapi%2Fpdf
const res = await pay("https://horizonpulse.dev/api/pdf?url=https%3A%2F%2Fhorizonpulse.dev%2Fsample.pdf");
console.log(await res.json());Example input
{
"url": "https://horizonpulse.dev/sample.pdf"
}Example output
{
"bytes": 858,
"finalUrl": "https://horizonpulse.dev/sample.pdf",
"meta": {
"author": "Horizon Pulse",
"title": "Horizon Pulse sample PDF"
},
"ok": true,
"pages": [
{
"page": 1,
"text": "Horizon Pulse sample PDF\nPay-per-call APIs for AI agents over x402 (USDC on Base).\nThis file is the fixed input for the free /api/demo/pdf sample."
}
],
"pagesReturned": 1,
"requestedUrl": "https://horizonpulse.dev/sample.pdf",
"totalPages": 1,
"truncated": false
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 263 ms | $0.02 |
| 7 h ago | Passed | 402 | 165 ms | $0.02 |