{"slug":"agent-tools-production-e6aa-up-railway-app-v1-ocr-e06a4f","title":"Read the text from a photo, screenshot, scan or scanned PDF (OCR)","host":"agent-tools-production-e6aa.up.railway.app","method":"POST","resource":"https://agent-tools-production-e6aa.up.railway.app/v1/ocr","category":"image","description":"Read the text from a photo, screenshot, scan or scanned PDF (OCR). If the PDF already has real text, that is returned instead (faster and exact). Use when text is only available as an image: receipts, letters, forms, signs. Send {url} or {base64}, optional lang (default eng, e.g. eng+fra). Max 20 MB","price_listed":0.01,"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":"Tesseract 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 the text from a photo, screenshot, scan or scanned PDF (OCR). If the PDF already has real text, that is returned instead (faster and exact). Use when text is only available as an image: receipts, letters, forms, signs. Send {url} or {base64}, optional lang (default eng, e.g. eng+fra). Max 20 MB, 20 pages. Returns {text, method, pages}. Errors: 400 bad input, 413 too large.","last_updated":"2026-10-12T08:39:27.574Z","schemes":["exact"]}