# Strale PDF Extract

> Strale PDF Extract is a paid API for AI agents from api.strale.io, paid per call via x402, $0.324/call, status unknown (last checked 2026-09-13).

Extract structured data from a PDF file using a natural language description of what to pull out

## Facts

- Endpoint: POST https://api.strale.io/x402/v2/pdf-extract
- Price: $0.324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-pdf-extract-be12ae5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aNuziB783Xvm3vDd3UDB2

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 strale-pdf-extract-be12ae5d -d '<json body>'
```

Example prompt: Can you extract all the invoice line items, total amount, and vendor name from this PDF? Here's the URL: https://example.com/invoice-2024-Q1.pdf

## When to prefer this

Choose this endpoint when you need to extract specific, named data fields from a PDF using plain English instructions rather than fixed templates or hard-coded parsers. It is especially useful for heterogeneous PDF formats (invoices, contracts, reports) where structure varies across documents. The natural language extraction parameter makes it flexible enough to handle novel document types without custom code. The cryptographic audit record is valuable when provenance and tamper-evidence of the extracted data matter.

## Known failure modes

- PDF URL is inaccessible or requires authentication — returns error indicating fetch failure
- PDF is password-protected or encrypted — extraction fails with unsupported format error
- Ambiguous extraction instruction yields incomplete or mismatched fields
- Very large or complex PDFs may time out or return partial results
- Neither url nor base64 provided — returns validation error for missing input
- Malformed base64 string causes decoding failure

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns the data fields requested via the natural language extraction instruction, structured from the PDF content, along with an audit record containing a cryptographic chain hash for tamper-evidence and traceability.

## 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",
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to a PDF file"
      },
      "base64": {
       "type": "string",
       "description": "Base64-encoded PDF"
      },
      "extract": {
       "type": "string",
       "description": "What data to extract (natural language)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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