{"uid":"cap_pZICsZqt285juTQBFYAYp","slug":"structdoc-document-structuring-api-7dec385a","name":"StructDoc Document Structuring API","description":"Turn any document into structured data for AI agents — OCR, layout-to-Markdown, tables, key-value, invoice/receipt fields — from PDF/images in 100+ languages. Pay per call via x402 (USDC). No API keys.","url":"https://structdoc-api.hp-vladic.workers.dev/read","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Document URL (PDF/image)"},"pages":{"type":"string","description":"Page range e.g. \"1-5\""},"base64":{"type":"string","description":"Base64 document bytes (≤~6MB)"},"features":{"type":"string","description":"languages,barcodes,keyValuePairs"},"queryFields":{"type":"string","description":"custom fields, comma-separated ≤8"}}},"responseSchema":{"type":"json","example":{"model":"prebuilt-layout","pages":1,"format":"markdown","content":"# ..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IBOo6gqGzjGWHytuT88aN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts PDF or image documents into structured data (Markdown, tables, key-value pairs, invoice/receipt fields) using OCR and layout analysis across 100+ languages","exampleAgentPrompt":"I have a scanned invoice PDF — can you extract all the line items, totals, and vendor info from it and give me the result as structured Markdown?","exampleUseCases":null,"resultDescription":"A JSON object containing the model name used (e.g. 'prebuilt-layout'), the number of pages processed, the output format (e.g. 'markdown'), and a 'content' field with the full structured extraction — Markdown text, tables, key-value pairs, or invoice/receipt fields depending on the document type.","failureModes":["Unsupported file type returns an error — only PDF and common image formats accepted","Document too large or complex may exceed processing limits","Low-quality scans may reduce OCR accuracy","Non-Latin scripts in unsupported language variants may produce degraded output","Payment failure via x402/USDC will block the request before processing","Missing or malformed document input returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need to convert unstructured PDF or image documents into machine-readable structured data — especially invoices, receipts, forms, or scanned pages — and want a pay-per-call model with no API key setup. Prefer it over general LLM vision when you need reliable layout-aware Markdown, table extraction, or structured field parsing across 100+ languages at $0.05/call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:36:22.594Z","isFirstParty":false}