The OCR.space API, tested on 10 scans
97.4%
of true words found by engine 2
Engine 2 beat our own Actor here
| Way | Words found |
|---|---|
| OCR.space engine 2 | 1,905 |
| Our Actor | 1,879 |
| Tesseract 5.5 in Docker | 1,877 |
Same 10 proofread book scans for all three. I report what I measured, even when my own Actor comes second.
- All 10 pages came back, one request a page.
- A page took 4.3 seconds from our Mac (median).
- Their server reported 641 ms of that (median).
The demo key refused request 11
helloworld is the public key in their docs, and every
tester shares it. Every saved answer, even a good one, said to get a
free personal key.
- My first 10 requests, all engine 2, worked in about a minute.
- Request 11, my first engine 3 page, got HTTP 429. So did every retry, a minute apart.
-
The last try for that page said E584,
retryAfter67 seconds. -
The next page got E581,
retryAfter6,869 seconds: nearly 2 hours.
The key is shared, so I cannot tell what set off the limit. For real use, get the free key: the sign-up form asks for an email and a CAPTCHA.
One request with curl
Send a page image and print its text:
curl -s -H "apikey: helloworld" \
-F "[email protected]" \
-F "OCREngine=2" \
https://api.ocr.space/parse/image \
| jq -r '.ParsedResults[0].ParsedText'
- I sent no language field. Engine 2 read the English pages.
-
A blocked request gives HTTP 429 and JSON with
errorandretryAfter, notParsedResults.
In n8n, an HTTP Request node can send the same form: POST, an
apikey header, and the file as form data. I did not test
that node.
Free key, PRO and engine 3
| Plan | A month | Requests, file, PDF pages |
|---|---|---|
| Free key | $0 | 25,000, 1 MB, 3 |
| PRO | $30 | 300,000, 5 MB, 3 |
| PRO PDF | $60 | 300,000, 100 MB+, 999+ |
Their docs call engine 3 the newest: tables, handwriting and over 200 languages, with its own monthly quota. The demo key refused every engine 3 request I sent.
Our Actor: a whole PDF to Markdown
Our Apify Actor reads a scanned PDF in one run and returns Markdown. On a paid Apify plan a run takes 1,000 pages by default, and you can raise that.
The free plan takes 20 pages a run, 50 a month. A scanned page costs $0.006, and pages with a text layer are free.
How I tested it
- 10 proofread book pages from Wikisource, 2 public domain books, 1,955 words. Real scans, JPEG, 590 to 703 KB each.
-
One POST a page to the parse/image endpoint with
OCREngine=2and the demo key, 3 seconds apart, on Nov 19 at 22:23 MST. - Words: true words found in order. Extra words cost nothing.
- The Tesseract 5.5.0 and Actor rows come from the same 10 pages, run the same day for our self-hosted OCR test. The Actor's code of build 0.1.97 ran on our Mac.
- Their privacy page says uploads are deleted after processing.
- Not tested: engines 1 and 3, PDFs, searchable PDF output, a personal key, PRO, n8n.
Questions people ask
Is the OCR.space API free?
Yes, with a free personal key. Their API page lists 25,000 requests a month and files up to 1 MB. PRO costs $30 a month.
What is the helloworld API key?
The public demo key in the OCR.space docs. Everyone shares it. It answered 10 requests for me, then HTTP 429. After my retries, it asked for a wait of nearly 2 hours.
How accurate is the OCR.space API?
Engine 2 found 97.4% of the true words, in order, on proofread book scans. Tesseract found 96.0% on the same pages. Extra words did not count against either.