# CoCo PDF Text Extractor

> CoCo PDF Text Extractor is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Extracts raw text content and page count from a PDF document via URL query parameter

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/pdf-text?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-pdf-text-extractor-4346a420
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1fqzZPsK72mnkVsNYYqM_

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 coco-pdf-text-extractor-4346a420
```

Example prompt: Can you extract all the text from this PDF for me? Here's the link: https://example.com/report.pdf

## When to prefer this

Use this endpoint when you need to quickly extract raw text from a PDF document accessible via URL and want the page count alongside the text. Best suited for lightweight, single-document extraction tasks where the PDF is publicly accessible. Prefer this over OCR-based solutions for text-layer PDFs (not scanned image PDFs).

## Known failure modes

- Invalid or inaccessible PDF URL returns an error
- Non-PDF file types may fail to parse
- Password-protected PDFs cannot be extracted
- Very large PDFs may time out or return incomplete text
- Network errors if the remote PDF URL is unreachable

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object containing the full extracted text of the PDF as a string and the total page count as a number, e.g. {"text": "...", "pages": 5}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "pages"
     ],
     "properties": {
      "pages": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Example PDF text",
  "pages": 1
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

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