# SiteCheck PDF to Text

> SiteCheck PDF to Text is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Extracts text content from a PDF file (by URL or base64) and returns the raw text, metadata, and per-page breakdown

## Facts

- Endpoint: POST https://api.sitecheck-api.workers.dev/api/pdf?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-pdf-to-text-979ce530
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4-eg2Dg9dylIAM4JCIH5u

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 sitecheck-pdf-to-text-979ce530 -d '<json body>'
```

Example prompt: Can you extract the text from this PDF — https://arxiv.org/pdf/2303.08774 — and return the full content up to 200000 characters?

## When to prefer this

Use this endpoint when you need to extract the text layer from a PDF document — either from a public URL or a base64-encoded file — and want structured output including per-page text and metadata. It is pay-per-call with no signup required, making it ideal for agent pipelines that process PDFs on demand. Note that it does not perform OCR, so it is only suitable for PDFs with an embedded text layer, not scanned image documents.

## Known failure modes

- PDF at URL is inaccessible or returns non-PDF content — error or empty text
- PDF is a scanned image with no text layer — returns empty text with a note that OCR is not supported
- base64 input is malformed or not a valid PDF — parse error
- maxChars out of allowed range (1000–500000) — validation error
- PDF is password-protected or encrypted — extraction fails
- Network timeout fetching a large remote PDF — request error

## How this service works

Pay-per-call tools for AI agents: image generation, speech-to-text, text-to-speech, embeddings, LLM chat, website audits and contact enrichment, web page to Markdown reader, PDF to text, sitemap URLs, tech stack detection, translation, exchange rates, e-mail pre-check, domain RDAP/DNS lookup, Solana token checks, trending tokens and wallet holdings, plus business and compliance data (EU VAT/VIES, IBAN, LEI/GLEIF, US recalls, OSHA/EPA violations, UK insolvency notices). Plus prediction-market search, briefs, quotes and unsigned buy transactions, powered by Panta. Payment: x402, USDC on Base, Solana or Arc. No signup, no API key.

## Output

Returns a JSON object containing: the full extracted text string, total character count, page count, pages returned, truncation flag, per-page text array, and PDF metadata fields (title, author, subject, creator, producer, createdAt, modifiedAt). Note: text layer extraction only — no OCR for scanned/image-based PDFs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "http(s) link to a PDF"
  },
  "maxChars": {
   "type": "integer",
   "description": "Cut the text at this many characters, 1000-500000, default 100000"
  },
  "pdf_base64": {
   "type": "string",
   "description": "Alternative: the PDF as base64"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Text layer only, no OCR.",
  "text": "Bitcoin: A Peer-to-Peer Electronic Cash System\nSatoshi Nakamoto...",
  "chars": 21220,
  "pages": 9,
  "title": null,
  "author": null,
  "byPage": [
   {
    "page": 1,
    "text": "Bitcoin: A Peer-to-Peer Electronic Cash System..."
   }
  ],
  "creator": "Writer",
  "subject": null,
  "producer": "OpenOffice.org 2.4",
  "createdAt": "2009-03-24T11:33:15Z",
  "truncated": true,
  "modifiedAt": null,
  "pagesReturned": 9
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-pdf-to-text-979ce530/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
