# agent402.tools PDF Info

> agent402.tools PDF Info is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Extracts metadata (page count, title, author, dates, encryption, size) from a remote PDF without downloading the full file

## Facts

- Endpoint: POST https://agent402.tools/api/pdf-info
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-pdf-info-20d8821a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7eXASWMie94Hz-o1bSGX6

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 agent402-tools-pdf-info-20d8821a -d '<json body>'
```

Example prompt: Can you check the metadata on this PDF — https://example.com/report.pdf — and tell me the page count, who created it, when it was made, whether it's encrypted, and how big the file is?

## When to prefer this

Use this endpoint when you need to quickly inspect a remote PDF's metadata (page count, author, dates, encryption status, file size) without downloading the entire document into your context. Ideal for pre-screening large PDFs, verifying document provenance, or checking authorship before processing.

## Known failure modes

- URL is not publicly accessible or returns non-200 — likely an HTTP error response
- URL does not point to a valid PDF — may return a parsing error
- PDF is behind authentication or a paywall — metadata extraction will fail
- Network timeout if the remote server is slow to respond
- Malformed URL input — validation error

## How this service works

Inspect a PDF without downloading the whole thing into your model: page count, title, author, subject, creator, producer, creation/modification dates, encryption flag, and byte size. Body: {"url":"https://…/file.pdf"}.

## Output

Returns a JSON object with page count, title, author, subject, creator, producer, creation date, modification date, encryption flag, and byte size of the PDF at the given URL — all without requiring a full download of the file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public URL of the PDF"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 2215244,
  "pages": 15,
  "title": "Attention Is All You Need",
  "encrypted": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-pdf-info-20d8821a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
