Extract text and metadata from PDF documents. Upload a PDF file and get back structured text content along with metadata like page count, title, and author.
Base URL:
https://pylon-pdf-parse-api.fly.dev
| Parameter | Type | Required | Description |
|---|---|---|---|
file | file (multipart) | Yes | PDF file to parse (multipart/form-data) |
Returns JSON with extracted text and metadata (200 OK).
{
"text": "Full extracted text content...",
"metadata": {
"pages": 12,
"title": "Document Title",
"author": "Author Name"
}
}| Status | Description |
|---|---|
200 | Parsed text and metadata returned as JSON |
402 | Payment required — x402 challenge returned |
400 | Missing or invalid PDF file |
500 | Parsing failed |
$0.01 USDC per request — paid via x402 on Base Sepolia. No API key. No subscription. Pay per call.
curl -X POST "https://pylon-pdf-parse-api.fly.dev/parse" \
-F "file=@document.pdf" \
--output response.json
To use Pylon APIs, you need an x402-compatible client with a funded wallet on Base Sepolia. Here's the quick setup:
The x402 flow: your first request returns 402 Payment Required with payment details in headers. The x402 client signs a USDC payment, then retries with payment proof attached. All automatic, all in milliseconds.