# HTTPay PDF Extract API

> HTTPay PDF Extract API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Extracts full text content, page count, and metadata from any PDF given its URL, paid per-call via USDC on Base.

## Facts

- Endpoint: POST https://httpay.xyz/api/pdf-extract
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-pdf-extract-api-e9ce1d7f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xVJXSoQWdkavPp5B9J5b1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability httpay-pdf-extract-api-e9ce1d7f -d '<json body>'
```

Example prompt: Can you extract all the text from this PDF for me? Here's the URL: https://example.com/report.pdf — I need the full text content and the page count.

## When to prefer this

Use this endpoint when you need to programmatically extract text from a PDF accessible via URL without managing API keys or subscriptions — ideal for agents that occasionally need PDF parsing and prefer pay-per-call micro-payments over monthly plans.

## Known failure modes

- Invalid or inaccessible PDF URL returns an error
- PDF is password-protected and cannot be parsed
- URL points to a non-PDF file type
- Network timeout fetching large PDFs
- Payment failure (402) if USDC balance is insufficient on Base

## How this service works

Extract text content from any PDF URL. Returns full text, page count, and metadata. POST or GET ?url=

## Output

Returns a JSON object containing the full extracted text from the PDF, total page count, and document metadata such as author or title if available.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Extract text content from any PDF URL. Returns full text, page count, and metadata. POST or GET ?url="
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-pdf-extract-api-e9ce1d7f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
