📄 PDF Extraction API

Extract text from PDFs. Pay per request. No API keys.

âš¡ Powered by x402 Protocol

Endpoints

POST /extract $0.01

Extract text from all pages of a PDF

POST /test/extract FREE (first 3 pages)

Test extraction with limited pages

GET /health FREE

Health check

Usage

Upload a PDF file to extract its text content:

curl -X POST \
  -F "file=@document.pdf" \
  https://your-api-url/test/extract

Response:

{
  "total_pages": 10,
  "extracted_pages": 3,
  "pages": [
    {"page": 1, "text": "..."},
    {"page": 2, "text": "..."},
    {"page": 3, "text": "..."}
  ],
  "full_text": "...",
  "notice": "Test mode: Only first 3 of 10 pages..."
}

Payment

This API uses the x402 protocol for micropayments.

Network: Base (mainnet)

Currency: USDC

Wallet:

0x6b21227Ca9Bb3590BB62ff60BA0EFbBf9Ba22ACC