# FastX402 PDF Text Extractor

> FastX402 PDF Text Extractor is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Fetches a PDF from a given URL and extracts its full text content along with metadata like page count, title, and author

## Facts

- Endpoint: GET https://fastx402.tools/pdftext?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-pdf-text-extractor-fdf932e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EAaen7IXqeBKiRD95Ucxr

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 fastx402-pdf-text-extractor-fdf932e4
```

Example prompt: Can you pull the text out of this PDF for me? Here's the URL: https://example.com/annual-report-2024.pdf

## When to prefer this

Use this endpoint when you need to extract machine-readable text from a PDF available at a public URL without setting up an account or API key. It is ideal for one-off or low-volume PDF parsing tasks where paying micro-amounts per call ($0.002 USDC) is preferable to maintaining a subscription. It works well for structured documents with embedded text layers; for scanned image PDFs you would need an OCR-capable service instead.

## Known failure modes

- URL is not reachable or returns a non-200 status — fetch fails with an error
- URL points to a non-PDF file — parsing fails or returns empty/garbled text
- PDF is encrypted or password-protected — text extraction returns nothing
- PDF is image-only (scanned) with no embedded text layer — returns empty text
- URL is malformed or not an absolute http/https URL — request rejected due to schema validation
- Very large PDF may result in truncated output (truncated: true in response)

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing the full extracted text of the PDF, the number of pages, the document title (if available), the author name, and a boolean indicating whether the text was truncated due to length limits.

## 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 a PDF"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string"
      },
      "pages": {
       "type": "integer"
      },
      "title": {
       "type": "null"
      },
      "author": {
       "type": "string"
      },
      "truncated": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Dummy PDF file",
  "pages": 1,
  "title": null,
  "author": "Evangelos Vlachogiannis",
  "truncated": false
 }
}
```

## More

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