# Image to Text OCR - Bulk Image URLs, 100+ Languages (`technicaldost/image-ocr-text-extractor`) Actor

Extract text from images in bulk with OCR: screenshots, receipts, scanned documents, product photos, memes. 100+ languages, line-level text with confidence and bounding boxes. Blank images and failed downloads are free.

- **URL**: https://apify.com/technicaldost/image-ocr-text-extractor.md
- **Developed by:** [Technical Dost Solutions](https://apify.com/technicaldost) (community)
- **Categories:** AI, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 image with texts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Image to Text OCR - Bulk Image URLs, 100+ Languages

**Try it now:** the prefilled input reads an 8-line sample image in about 5 seconds for **$0.002**.

Extract **text from images in bulk** with OCR (optical character recognition). Paste image URLs — screenshots, receipts, invoices, scanned pages, product labels, menus, slides, memes, signs — and get back clean text, a word count, a confidence score and **line-by-line text with bounding boxes**.

Runs the open-source Tesseract engine. **No API key, no per-month subscription.** Images without any text and failed downloads are **free**.

### Who uses it

- **E-commerce and catalog teams** – read text from product photos, labels and packaging.
- **Finance ops** – digitise receipts and invoices before parsing.
- **Marketing and social listening** – read text in social images, ads, banners and memes.
- **AI pipelines** – OCR step before an LLM, chained to image or screenshot scrapers via dataset input.
- **Archivists and researchers** – extract text from scanned pages and historical documents.

### Features

- **100+ languages** (eng, deu, fra, spa, ita, por, nld, pol, rus, ara, hin, chi_sim, chi_tra, jpn, kor, …), combinable (`["eng","deu"]`)
- Lines with **confidence and bounding boxes** (`x0, y0, x1, y1`)
- **Chain with other Actors:** read image URLs straight from another run's dataset (`datasetId` + `urlField`, dot paths and arrays supported)
- Minimum-confidence filter to drop noise
- PNG, JPEG, WebP, BMP, GIF, TIFF; up to 4 parallel OCR workers
- Image width, height and format in every row

### Input example

```json
{
  "imageUrls": [
    "https://tesseract.projectnaptha.com/img/eng_bw.png"
  ],
  "languages": ["eng"],
  "includeLines": true,
  "minConfidence": 0
}
```

Chain with a screenshot or image scraper:

```json
{ "datasetId": "YOUR_DATASET_ID", "urlField": "fileUrl" }
```

### Output example

```json
{
  "imageUrl": "https://tesseract.projectnaptha.com/img/eng_bw.png",
  "width": 1486,
  "height": 668,
  "format": "png",
  "text": "Mild Splendour of the various-vested Night!\nMother of wildly-working visions! hail\n...",
  "lineCount": 8,
  "lines": [{ "text": "Mild Splendour of the various-vested Night!", "confidence": 95.1, "bbox": { "x0": 36, "y0": 92, "x1": 1404, "y1": 152 } }],
  "meanConfidence": 92,
  "wordCount": 58,
  "hasText": true,
  "error": null
}
```

### Pricing

| Event | Price |
|---|---|
| Image with recognised text | **$0.002** ($2 per 1,000 images) |
| Image without text, failed download, oversize file | free |

### Tips

- Set the right language(s): accuracy drops sharply when the language is wrong.
- Best results come from images at least ~1000 px wide with dark text on a light background. Tiny thumbnails give poor OCR.
- Handwriting recognition is limited (Tesseract is built for printed text).
- For PDFs that already contain text, use **PDF to Markdown & Text Extractor** instead — it is faster and exact.

***

Found it useful? A short review on the Store helps others find it. Problems or ideas → the Issues tab.

# Actor input Schema

## `imageUrls` (type: `array`):

Direct links to PNG, JPEG, WebP, BMP, GIF or TIFF images.

## `datasetId` (type: `string`):

ID of a dataset from another Actor run (e.g. an image or screenshot scraper). Combine with "URL field".

## `urlField` (type: `string`):

Field holding the image URL (dot paths like image.url work; arrays are expanded).

## `languages` (type: `array`):

Tesseract language codes, e.g. eng, deu, fra, spa, ita, por, nld, pol, rus, ara, hin, chi_sim, chi_tra, jpn, kor. Several codes can be combined. English is built in; others download on first use.

## `includeLines` (type: `boolean`):

Adds a lines array with x0,y0,x1,y1 coordinates and confidence per text line.

## `minConfidence` (type: `integer`):

Drop low-confidence lines (noise). 0 keeps everything.

## `maxImageMb` (type: `integer`):

Larger files are skipped and not charged.

## `maxImages` (type: `integer`):

Upper limit across all inputs.

## `maxConcurrency` (type: `integer`):

More workers need more memory (about 512 MB each).

## Actor input object example

```json
{
  "imageUrls": [
    "https://tesseract.projectnaptha.com/img/eng_bw.png"
  ],
  "urlField": "url",
  "languages": [
    "eng"
  ],
  "includeLines": true,
  "minConfidence": 0,
  "maxImageMb": 20,
  "maxImages": 1000,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `results` (type: `string`):

Recognised text, word count and confidence per image.

## `json` (type: `string`):

Includes line-level text, confidence and bounding boxes.

## `summary` (type: `string`):

Images with text, blank and failed.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://tesseract.projectnaptha.com/img/eng_bw.png"
    ],
    "languages": [
        "eng"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("technicaldost/image-ocr-text-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "imageUrls": ["https://tesseract.projectnaptha.com/img/eng_bw.png"],
    "languages": ["eng"],
}

# Run the Actor and wait for it to finish
run = client.actor("technicaldost/image-ocr-text-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://tesseract.projectnaptha.com/img/eng_bw.png"
  ],
  "languages": [
    "eng"
  ]
}' |
apify call technicaldost/image-ocr-text-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,technicaldost/image-ocr-text-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5DfDBUYvc14FxXVn0/builds/oYuZnOliYjf27LGuk/openapi.json
