Extract text from an image with OCR
A sample scanned image read in English.
{
"urls": [
"https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/document-text-extractor/sample-scan.png"
],
"language": "eng"
}Run this task →Send image or PDF URLs, an uploaded file or base64 data and get the recognised text back, page by page, with an engine confidence score. Add word positions to build document parsers, or reuse a PDF's own text layer when it already has one.
text | Full recognised text of the file |
pages | Text of each page separately |
confidence | Engine confidence score per page |
words | Optional recognised words with confidence |
boundingBox | Optional position of each word on the page |
language | OCR language used |
fileName / url | Source of the processed file |
$2.00 per 1,000 rows
Pay per event: a small charge per file processed plus a charge per page read with OCR. Use the page range and max pages settings to keep costs predictable.
Apify gives $5 free credits every month — enough to test this scraper at no cost.
Ready-made inputs. Copy one into the scraper form or send it through the API.
A sample scanned image read in English.
{
"urls": [
"https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/document-text-extractor/sample-scan.png"
],
"language": "eng"
}Run this task →First 3 pages, low-confidence words dropped.
{
"urls": [
"https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/document-text-extractor/sample-scan.pdf"
],
"pageRange": "1-3",
"includeWordBoxes": true,
"minWordConfidence": 60
}Run this task →Ignore the PDF text layer, up to 20 pages.
{
"urls": [
"https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/document-text-extractor/sample-scan.pdf"
],
"autoDetectLanguage": true,
"useExistingTextLayer": false,
"maxPagesPerFile": 20
}Run this task →Two files, full text only.
{
"urls": [
"https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/document-text-extractor/sample-scan.png",
"https://raw.githubusercontent.com/lergassy/apify-actor-assets/main/document-text-extractor/sample-scan.pdf"
],
"includePages": false
}Run this task →19 languages, including English, German, French, Spanish, Portuguese, Russian, Indonesian, Vietnamese, Arabic, Hindi, Chinese, Japanese and Korean. Script auto-detection is optional.
Yes. Scanned pages are read with OCR; pages that already contain a text layer can be copied directly, which is faster and more accurate.
Yes. Turn on word positions to get every word with its confidence and its box on the page.
Only process files you own or have the right to process. If documents contain personal data, handle the output in line with applicable privacy laws.
Call it via the Apify API with URLs or base64 files, use the Python or JavaScript clients, or connect it to Make, n8n, Zapier or Google Sheets.