# PDF Text Extraction API (x402.forgemesh.io)

> PDF Text Extraction API (x402.forgemesh.io) is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Fetches a public PDF by URL and returns clean, layout-preserving plain text in a single API call, no local PDF library needed.

## Facts

- Endpoint: POST https://x402.forgemesh.io/extract-text-from-pdf
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdf-text-extraction-api-x402-forgemesh-io-f134d63c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rM_DFIgDUmZMAJuIek7ng

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 pdf-text-extraction-api-x402-forgemesh-io-f134d63c -d '<json body>'
```

Example prompt: Can you pull the text out of this PDF for me — https://example.com/research-paper.pdf — so I can search through its contents?

## When to prefer this

Use this endpoint when you need to extract plain text from a publicly accessible PDF URL without setting up a local PDF parsing library or OCR pipeline. It is ideal for research agents, RAG ingestion workflows, and document QA systems that need to consume PDF content as text in a single lightweight API call.

## Known failure modes

- PDF URL is not publicly accessible or returns a non-200 status
- PDF file exceeds the 25MB size limit
- URL does not point to a valid PDF file
- PDF is encrypted or password-protected and cannot be parsed
- Network timeout fetching the remote PDF
- Malformed or corrupt PDF content that cannot be parsed

## How this service works

Extracts clean, layout-preserving text from any public PDF URL up to 25MB in a single call, no local PDF library or OCR pipeline required. Built for feeding PDF content into research agents, document QA, and RAG ingestion pipelines that need plain text rather than a binary file.

## Output

Returns clean, layout-preserving plain text extracted from the PDF at the provided URL, ready to be passed into an LLM, RAG ingestion pipeline, or document QA system.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pdf_url": {
   "type": "string",
   "description": "Public URL of a PDF file, max 25MB"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Hello World"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pdf-text-extraction-api-x402-forgemesh-io-f134d63c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
