---
title: "PDF Data Extraction (x402)"
method: POST
path: "/x402/v2/pdf-extract"
tags: ["x402"]
---

# PDF Data Extraction (x402)

`POST /x402/v2/pdf-extract`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/pdf-extract`
- Auth: none required

Extract structured data from any PDF document. Accepts a URL or base64-encoded PDF. Works on contracts, reports, forms — any document type. Returns JSON based on your extraction instructions.

## Request body

- object
  - `url` string: URL to a PDF file
  - `base64` string: Base64-encoded PDF
  - `extract` string: What data to extract (natural language)

## Response `200`

Success

- object
  - `data` object
  - `source_url` string

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
