---
title: "PDF to Text ($0.005/call)"
method: GET
path: "/pdf"
tags: ["pdf", "pdf-to-text", "document", "text-extraction", "data", "web"]
---

# PDF to Text ($0.005/call)

`GET /pdf`

## Request

- Base URL: `https://x402.shizu.me`
- URL: `https://x402.shizu.me/pdf`
- Auth: none declared

Fetch a PDF by URL and extract its text as JSON. Input: url (public http/https pointing to a PDF). Returns {url, pages, word_count, text}. Bounded to the first 50 pages; 3 MB max.

Paid endpoint: $0.005 per call via the x402 protocol (USDC on Base). An unpaid request returns 402 with payment requirements in the PAYMENT-REQUIRED response header; attach payment and retry.

## Query parameters

- `url` string

## Response `200`

Paid result (JSON)

## Other responses

- `402`: Payment required — x402 requirements in the PAYMENT-REQUIRED response header

---

[API](https://skmtc.dev/shizu/apis/scrape402.md) · [All operations](https://skmtc.dev/shizu/apis/scrape402/llms.txt) · [OpenAPI document](https://skmtc.dev/shizu/apis/scrape402/revisions/0852d74798b8?raw)
