A

Azurecontainerapps · Content PDF TO Json

by Azurecontainerapps

POSTBase

$0.02

per call · USD Coin on Base

Extract normalized pages, paragraphs, tables, sections, and geometry from a supplied PDF.

Endpoint

POST https://manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/api/v1/content/pdf-to-json

1

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/api/v1/content/pdf-to-json", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "locale": "en-US",
    "pages": "1-5",
    "pdfBase64": "JVBERi0xLjQKJcTl8uXrCg=="
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://manyfish-seller.redcliff-d7368db1.westus2.azurecontainerapps.io/api/v1/content/pdf-to-json" \
  -H "Content-Type: application/json" \
  -d '{"locale":"en-US","pages":"1-5","pdfBase64":"JVBERi0xLjQKJcTl8uXrCg=="}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "content": "Example document text.",
  "contentCharacters": 22,
  "pageCount": 1,
  "pages": [
    {
      "lines": [],
      "pageNumber": 1,
      "selectionMarks": []
    }
  ],
  "paragraphs": [],
  "processedPages": [
    1
  ],
  "sections": [],
  "tables": []
}

Payment details

Pay to0x9cd3f0d8a73a9a87f752f09d220652dc7de398cc
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Azurecontainerapps & similar services