{"slug":"agent-tools-production-e6aa-up-railway-app-v1-doc-to-json-c930dd","title":"Read a whole document in one call","host":"agent-tools-production-e6aa.up.railway.app","method":"POST","resource":"https://agent-tools-production-e6aa.up.railway.app/v1/doc-to-json","category":"image","description":"Read a whole document in one call: all the text (OCR for scans and photos, exact text for digital PDFs) plus every table as rows of cells. Use when processing invoices, receipts, bank statements, contracts or reports and you need both the wording and the numbers. Send {url} or {base64}, optional lan","price_listed":0.02,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"lang":"eng","url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"base64":{"description":"File contents, base64-encoded (max 20 MB). Provide url OR base64.","type":"string"},"lang":{"description":"OCR language code(s), e.g. eng or eng+fra","type":"string"},"url":{"description":"Public URL of the file. Provide url OR base64.","type":"string"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Read a whole document in one call: all the text (OCR for scans and photos, exact text for digital PDFs) plus every table as rows of cells. Use when processing invoices, receipts, bank statements, contracts or reports and you need both the wording and the numbers. Send {url} or {base64}, optional lang. PDF or image, max 20 MB, 20 pages of text, 50 of tables. Returns {type, pages, method, text, tables:[{page, rows}]}. Errors: 400 bad input.","last_updated":"2026-11-11T10:40:38.793Z","schemes":["exact"]}