Developer API

Scanlume OCR API

Run Simple OCR or Formatted Text OCR inside apps, automations, and internal workflows.

The v1 image API accepts JSON with `mode`, `base64` as a data URL, and optional `ocrLanguage` (`auto`, `pt`, `en`, or `es`). If you start with a local file, convert it to a data URL before sending the payload.

Structured outputOptional OCR languageBase64 data URL
View API plans
DATA_URL=$(python -c "import base64; print('data:image/png;base64,' + base64.b64encode(open('example.png', 'rb').read()).decode())")

cat <<EOF | curl -X POST "https://api.scanlume.com/v1/api/ocr"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   --data @-
{"mode":"simple","ocrLanguage":"auto","base64":"${DATA_URL}"}
EOF