GET /v1/pdfDownload a PDF from a URL and return its text per page (up to 200 pages) plus metadata.
Price: $0.006 per call, paid in USDC on Base via x402. No API key or signup.
npx x402-fetch "https://tools.anokha.space/v1/pdf?url=https%3A%2F%2Fexample.com%2Fpaper.pdf"
{
"url": "...",
"pages": 12,
"title": "...",
"text": [
{
"page": 1,
"text": "..."
}
]
}
The first request returns HTTP 402 with a PAYMENT-REQUIRED header. An x402 client signs a USDC authorization and retries with a PAYMENT-SIGNATURE header. You are charged only when the call succeeds.