# AgentReader PDF Text Extractor

> AgentReader PDF Text Extractor is a paid API for AI agents from agentreader.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Extracts full plain text, page count, and word count from a PDF at a given URL, handling files up to 25 MB.

## Facts

- Endpoint: GET https://agentreader.dev/pdf?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentreader-pdf-text-extractor-167f23eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C9PSWtmHoZ44OwfRVRE-8

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 agentreader-pdf-text-extractor-167f23eb
```

Example prompt: Can you pull all the text out of this PDF for me? Here's the URL: https://example.com/annual-report-2024.pdf — I need the full content along with the page and word count.

## When to prefer this

Use this endpoint when you need to extract raw text content from a remotely hosted PDF file, especially for reports, research papers, or documentation up to 25 MB. Prefer this over generic web scrapers when the target is definitively a PDF and you need structured metadata like page count and word count alongside the text.

## Known failure modes

- URL is not reachable or returns a non-200 HTTP status — extraction fails with an error
- File exceeds the 25 MB size limit — returns an error indicating the file is too large
- URL points to a non-PDF file (e.g. HTML page or image) — returns a parsing error
- PDF is password-protected or encrypted — text extraction may fail or return empty content
- PDF contains only scanned images with no embedded text — returns empty or minimal text output

## How this service works

Extract the full text of any PDF from a URL - no upload, no OCR setup, just pass the link. Returns plain text plus page count and word count as JSON. Built for agents reading research papers, filings, annual reports, datasheets and documentation. Handles files up to 25 MB.

## Output

Returns the full extracted plain text of the PDF, along with metadata including the total page count and total word count. Suitable for feeding into LLMs or downstream text processing pipelines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute http(s) URL of the PDF"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentreader-pdf-text-extractor-167f23eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentreader.dev](https://www.zero.xyz/host/agentreader.dev/llms.txt)
