Anokha Web Tools

GET /v1/pdf

Download 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.

Example call

npx x402-fetch "https://tools.anokha.space/v1/pdf?url=https%3A%2F%2Fexample.com%2Fpaper.pdf"

Example response

{
  "url": "...",
  "pages": 12,
  "title": "...",
  "text": [
    {
      "page": 1,
      "text": "..."
    }
  ]
}

How payment works

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.