# CodePulse PDF Text Extractor

> CodePulse PDF Text Extractor is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Extracts plain text content from a PDF file and returns it as a string with confidence scoring

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/media/pdf-text
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-pdf-text-extractor-94053ae4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qXJ-qFNzplAQRXFUNM4jG

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 codepulse-pdf-text-extractor-94053ae4 -d '<json body>'
```

Example prompt: Can you extract all the text from this PDF file for me? Here's the URL: https://example.com/report.pdf — I need the plain text content so I can analyze it.

## When to prefer this

Choose this endpoint when you need to extract raw text from a PDF document programmatically without an API key, paying only $0.001 USDC per call via x402 on Base. Prefer this over general web scraping endpoints when the source is specifically a PDF file and you need structured confidence feedback on the extraction.

## Known failure modes

- PDF URL is unreachable or returns a non-PDF file — returns unsupported or error
- Scanned/image-only PDFs with no embedded text layer — confidence may be low or text empty
- Password-protected or encrypted PDFs — extraction may fail or return empty
- Malformed or corrupted PDF — may return warnings or unsupported flag
- Network timeout fetching the remote PDF

## How this service works

Extracts and parses text strings from a public PDF document URL.

## Output

Returns a JSON object with a 'result.text' field containing the extracted plain text from the PDF, a 'supported' boolean indicating whether the PDF format is supported, a 'confidence' field (e.g. 'high') rating extraction quality, a 'warnings' array for any issues encountered, and a 'data_as_of' timestamp.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL pointing to a public PDF document"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "text": "Dummy PDF file"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-pdf-text-extractor-94053ae4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
