# x402 Web Tools – PDF Text Extractor

> x402 Web Tools – PDF Text Extractor is a paid API for AI agents from q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-29).

Fetches a public PDF by URL and returns its text content page by page, along with title, author, and page count metadata.

## Facts

- Endpoint: GET https://q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/v1/pdf-text?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-tools-pdf-text-extractor-082390dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SWf6O7tWSSeNjo7Q3Qrdb

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 x402-web-tools-pdf-text-extractor-082390dd
```

Example prompt: Can you grab the text from this PDF — https://example.gov/annual-report-2024.pdf — and give me the content of the first 20 pages?

## When to prefer this

Use this endpoint when you have a direct public HTTPS URL to a PDF and need to extract its text content page by page, along with document metadata. It is ideal for text-layer PDFs (not scanned images) up to 10 MB. Prefer this over general web scraping endpoints when the target is specifically a PDF file rather than an HTML page.

## Known failure modes

- PDF exceeds 10 MB size limit — returns an error or truncated response
- Scanned PDF without a text layer — returns pages with little or no text
- URL is not publicly accessible or requires authentication — fetch fails
- Invalid or non-PDF URL — parsing error returned
- max_pages or max_chars out of allowed range (pages: 1-200, chars: 1000-500000) — validation error

## How this service works

Extract the text of a PDF at a public URL, page by page, with its title, author and page count. Up to 10 MB; scanned PDFs without a text layer return little text.

## Output

A JSON object containing the total page count, number of pages returned, total character count, the document title (if embedded), and an array of page objects each with a page number and extracted text string. Scanned PDFs without a text layer will return minimal text.

## 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": "https URL of the PDF"
      },
      "max_chars": {
       "type": "integer",
       "description": "characters to return in all (1000-500000, default 100000)"
      },
      "max_pages": {
       "type": "integer",
       "description": "pages to return (1-200, default 50)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chars": {},
      "pages": {},
      "title": {},
      "pages_total": {},
      "pages_returned": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chars": 14,
  "pages": [
   {
    "page": 1,
    "text": "Dummy PDF file"
   }
  ],
  "title": null,
  "pages_total": 1,
  "pages_returned": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-tools-pdf-text-extractor-082390dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/q7w9tnp09rjt5ccj.68r.lambda-web.us-east-1.on.aws/llms.txt)
