# Textdock PDF Text Extractor

> Textdock PDF Text Extractor is a paid API for AI agents from textdock.ggez.my.id, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Fetches a PDF from a given URL and returns its extracted plain text, page count, and character count for $0.01 USDC per call.

## Facts

- Endpoint: GET https://textdock.ggez.my.id/pdf_text?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/textdock-pdf-text-extractor-7ea2834b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DfssT5bmzrvWWpJXnosqB

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 textdock-pdf-text-extractor-7ea2834b
```

Example prompt: Can you pull out all the text from this PDF for me? The file is at https://example.com/invoice_2024.pdf — I need to read what's in it, including the page count.

## When to prefer this

Choose this endpoint when you need to extract raw plain text from a PDF document available at a public URL, especially when you want a deterministic per-call result with no batch overhead, and when you need metadata like page count alongside the text. Ideal for lightweight, one-off PDF parsing at $0.01 per call without setting up a full document processing pipeline.

## Known failure modes

- Invalid or unreachable PDF URL returns an error
- Non-PDF content at the URL may fail to parse
- Very large PDFs may be truncated (truncated: true in response)
- Payment failure via x402 protocol blocks the request
- URL requires authentication or redirect and is inaccessible

## How this service works

Deterministic CSV, URL, text and PDF utilities sold per call in USDC on Base, plus /verify_receipt: an independent sha256 check that returns a citable receipt id (GET /receipt/{id}) any third party can re-read later.

## Output

A JSON object containing the full extracted plain text from the PDF, the total number of pages, the total character count, and a boolean indicating whether the result 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"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Invoice\nTotal: 120.00",
  "pages": 3,
  "truncated": false,
  "characters": 4210
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/textdock-pdf-text-extractor-7ea2834b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from textdock.ggez.my.id](https://www.zero.xyz/host/textdock.ggez.my.id/llms.txt)
