# Toolsmith PDF Text Extractor

> Toolsmith PDF Text Extractor is a paid API for AI agents from toolsmith-api.dassad10.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Extracts clean full text and page count from any public PDF URL (up to 10 MB) and returns the result as JSON.

## Facts

- Endpoint: GET https://toolsmith-api.dassad10.workers.dev/t/pdf/extract
- 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/toolsmith-pdf-text-extractor-74a6236e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dRYuYt7VsqqnaCYsay9BA

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 toolsmith-pdf-text-extractor-74a6236e
```

Example prompt: Can you pull out all the text from this PDF — https://arxiv.org/pdf/2301.07041.pdf — and tell me how many pages it has?

## When to prefer this

Use this endpoint when you need to extract readable text from a public PDF URL such as academic papers, SEC filings, annual reports, or government documents. Prefer this over general-purpose web scrapers when the target is specifically a PDF file and you need structured text plus page count returned as JSON.

## Known failure modes

- PDF URL is not publicly accessible or returns 4xx/5xx — extraction fails
- PDF exceeds 10 MB limit — request rejected
- URL does not point to a valid PDF file — parsing error
- Password-protected or encrypted PDF — text extraction fails
- Network timeout fetching the remote PDF — request fails

## How this service works

Keyless pay-per-call APIs for AI agents: 30 tools across compliance, trade, safety, web and data. Pay per call with USDC on Base via x402. No account, no API key.

## Output

A JSON object containing the full extracted plain text of the PDF document and the total page count.

## 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",
       "description": "Public URL of the PDF, max 10 MB"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/report.pdf",
  "text": "Annual report...",
  "chars": 45210,
  "pages": 12
 }
}
```

## More

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