OcrLive

PDF Text Extractor API

Extracts clean Markdown, HTML, or structured JSON from digital or scanned PDFs while preserving reading order, tables, and equations.

$0.002875USDC per call · settled on Base · no subscription, no API key

Overview

Extracts clean Markdown, HTML, or structured JSON from digital or scanned PDFs while preserving reading order, tables, and equations. Datalab Marker backend, 30 pages max. Use it as a PDF text extractor, PDF to text API, or OCR PDF reader.

Endpoint

MethodEndpointPriceDescription
POST/v1/marketplace/api/pdf-text-extractor$0.002875Invoke Pdf Text Extractor (Ocr) and return the upstream response.

How to call it

Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.

# 1. Ask for a quote
curl -i -X POST https://jarvisclaw.ai/v1/marketplace/api/pdf-text-extractor \
  -H 'Content-Type: application/json' \
  -d '{}'

# 2. Pay it (the SDK signs and retries for you)
curl -X POST https://jarvisclaw.ai/v1/marketplace/api/pdf-text-extractor \
  -H 'Content-Type: application/json' \
  -H 'X-PAYMENT: <signed-payload>' \
  -d '{}'

Parameters

Taken from the request example this API publishes.

NameInTypeExample
output_formatbodystring"markdown"
pdf_urlbodystring"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minim…

Example response

{
  "markdown": "# Title\n\nBody...",
  "page_count": 3,
  "source_url": "https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf"
}

FAQ

How much does the Pdf Text Extractor API cost?

$0.002875 USDC per call, paid per call over x402. There is no subscription, minimum or monthly fee.

Do I need an API key?

No. Call the endpoint, read the 402 Payment Required quote, and repeat the request with a signed USDC payment header. An account API key also works if you prefer prepaid billing.

Which chains can I pay on?

USDC on Base or on Solana. The 402 quote lists the accepted networks and the exact amount; the JarvisClaw SDKs sign and retry for you.

How do I call it from an AI agent?

Send POST to the endpoint above from any HTTP client, or connect the JarvisClaw MCP server and let the agent find and call it with the search_apis and get_api_detail tools.

Related APIs

Open in the marketplace

Docs: Getting started · x402 payments · x402 discovery · All APIs