# Image OCR: Image to Text, 100+ Languages ($3/1K) (`tamnt67/image-ocr`) Actor

Image OCR text extraction with Tesseract: recognized text, confidence score, line, word and character counts. Takes image URLs (screenshots, scans, receipts, labels, photos of text) and OCR languages, 100+ supported. Use it to turn images into text without an external OCR API.

- **URL**: https://apify.com/tamnt67/image-ocr.md
- **Developed by:** [Tam Ng.](https://apify.com/tamnt67) (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.50 / 1,000 images

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 OCR: Image to Text, 100+ Languages

Extract text from images by URL with the open-source Tesseract OCR engine, with no login and no API key, for $3 per 1,000 images on the Free plan, down to $2.50 on higher plans.

Works on screenshots, scanned documents, receipts, product labels, signs, memes, slides and photos of text. Give image URLs and get the recognized text with a confidence score, line, word and character counts. More than 100 languages, including English, Vietnamese, German, French, Spanish, Japanese, Chinese, Arabic and Hindi. The OCR runs inside the Actor: no third-party OCR API is called and your images are not sent to another service.

### What you can do with it

- **Make images searchable.** Turn a folder of screenshots or scans into text you can index and search.
- **Read text from scraped images.** Pull text out of product images, ad creatives or social media images collected by other Actors.
- **Digitize receipts and documents in bulk.** Send hundreds of image URLs in one run and get plain text back.
- **Check images for text before publishing.** Use `hasText` and `wordCount` to find images that contain text, for example for ad platforms with text limits.
- **Feed an AI pipeline.** Give a language model the text from images, with `confidence` to skip poor reads.

### Output fields

Each image is one record in the dataset. Example values below come from a real run on two public Tesseract test images.

| Field | Example |
|-------|---------|
| `imageUrl` | https://raw.githubusercontent.com/naptha/tesseract.js/master/tests/assets/images/testocr.png |
| `text` | This is a lot of 12 point text to test the ... (line breaks kept) |
| `confidence` | 94 (0 to 100, Tesseract's mean word confidence) |
| `lineCount` / `wordCount` / `charCount` | 8 / 60 / 285 |
| `hasText` | true (false when no text was found) |
| `languages` | eng |
| `contentType` / `fileSizeBytes` | image/png / 23359 |
| `processingMs` | 445 (download plus OCR time in milliseconds) |
| `scrapedAt` | 2026-11-16T05:58:57.944Z |

Download results as JSON, CSV, Excel or XML, or read them through the Apify API.

### Example output

One real record from a run with `languages` set to `eng` (the text is shortened):

```json
{
  "imageUrl": "https://raw.githubusercontent.com/naptha/tesseract.js/master/tests/assets/images/testocr.png",
  "text": "This is a lot of 12 point text to test the\nocr code and see if it works on all types\nof file format.\n\nThe quick brown dog jumped over the\nlazy fox. ...",
  "confidence": 94,
  "lineCount": 8,
  "wordCount": 60,
  "charCount": 285,
  "hasText": true,
  "languages": "eng",
  "contentType": "image/png",
  "fileSizeBytes": 23359,
  "processingMs": 445,
  "scrapedAt": "2026-11-16T05:58:57.944Z"
}
```

### How to use

1. Add **Image URLs** (PNG, JPG, WebP, BMP, GIF, TIFF up to 15 MB each). You can paste a list or link a text file with URLs. Each URL must start with `http://` or `https://`.
2. Set **Languages** as Tesseract codes joined with `+`, for example `eng`, `vie`, `eng+deu`, `chi_sim`, `jpn`, `ara`. Optionally set **Max images** for the run.
3. Click **Start**. Results appear in the dataset image by image. Export them or read them through the API.

#### Example input

```json
{
  "imageUrls": [
    { "url": "https://tesseract.projectnaptha.com/img/eng_bw.png" },
    { "url": "https://raw.githubusercontent.com/naptha/tesseract.js/master/tests/assets/images/testocr.png" }
  ],
  "languages": "eng",
  "maxItems": 100,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

Tips:

- Use only the languages that are really in your images. Every extra language makes loading slower and can lower accuracy.
- For a mix of languages in one image, join the codes, for example `eng+vie`.
- Codes are checked before any image is read. A code that is not in the list below stops the run with an error that names it, and nothing is charged.

All accepted codes: `afr`, `amh`, `ara`, `asm`, `aze`, `aze_cyrl`, `bel`, `ben`, `bod`, `bos`, `bre`, `bul`, `cat`, `ceb`, `ces`, `chi_sim`, `chi_sim_vert`, `chi_tra`, `chi_tra_vert`, `chr`, `cos`, `cym`, `dan`, `deu`, `div`, `dzo`, `ell`, `eng`, `enm`, `epo`, `equ`, `est`, `eus`, `fao`, `fas`, `fil`, `fin`, `fra`, `frk`, `frm`, `fry`, `gla`, `gle`, `glg`, `grc`, `guj`, `hat`, `heb`, `hin`, `hrv`, `hun`, `hye`, `iku`, `ind`, `isl`, `ita`, `ita_old`, `jav`, `jpn`, `jpn_vert`, `kan`, `kat`, `kat_old`, `kaz`, `khm`, `kir`, `kmr`, `kor`, `kor_vert`, `kur`, `lao`, `lat`, `lav`, `lit`, `ltz`, `mal`, `mar`, `mkd`, `mlt`, `mon`, `mri`, `msa`, `mya`, `nep`, `nld`, `nor`, `oci`, `ori`, `pan`, `pol`, `por`, `pus`, `que`, `ron`, `rus`, `san`, `sin`, `slk`, `slv`, `snd`, `spa`, `spa_old`, `sqi`, `srp`, `srp_latn`, `sun`, `swa`, `swe`, `syr`, `tam`, `tat`, `tel`, `tgk`, `tgl`, `tha`, `tir`, `ton`, `tur`, `uig`, `ukr`, `urd`, `uzb`, `uzb_cyrl`, `vie`, `yid`, `yor`.

- A proxy is off by default. Turn it on only if the server hosting your images blocks direct downloads.

### Pricing and cost examples

You pay per image read and saved to the dataset ("Image read" event). Platform usage and proxy traffic are included in the per-image price. Each run also has a one-time start charge of $0.00005.

| Apify plan | Price per 1,000 images |
|------------|------------------------|
| Free (default price) | $3.00 |
| Bronze | $2.80 |
| Silver | $2.60 |
| Gold, Platinum, Diamond | $2.50 |

Cost examples on the Free plan:

- 100 images ≈ $0.30
- 1,000 images ≈ $3.00
- 10,000 images ≈ $30.00 (≈ $25.00 on Gold and higher plans)

The Apify Free plan includes $5 of platform credit every month. If you spend it only on this Actor, that covers about 1,660 images per month.

You are charged only for images saved to the dataset. Images that fail to download (after up to 3 attempts), are not images, are empty or larger than 15 MB, and images where OCR fails, save nothing and are not charged. They are listed in the key-value store record `FAILED_URLS` with the reason. An image with no text is still a result (`hasText: false`) and is charged. Duplicate URLs in the input are read once. If **Languages** is not in the `code+code` format or contains a code that is not in the list of accepted codes, the run stops with an error before any image is read. To set a hard cap, enter a maximum total charge per run in the run options. The Actor stops as soon as that limit is reached.

### Use it via API, on a schedule, or from an AI agent

**JavaScript** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('tamnt67/image-ocr').call({
    imageUrls: [{ url: 'https://tesseract.projectnaptha.com/img/eng_bw.png' }],
    languages: 'eng',
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("tamnt67/image-ocr").call(run_input={
    "imageUrls": [{"url": "https://tesseract.projectnaptha.com/img/eng_bw.png"}],
    "languages": "eng",
})

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

**cURL** (runs the Actor and returns the text in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/tamnt67~image-ocr/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"imageUrls": [{"url": "https://tesseract.projectnaptha.com/img/eng_bw.png"}], "languages": "eng"}'
```

The sync endpoint waits for the run to finish, so use it for a few images and the client libraries for large batches.

**Schedules:** create an Apify Schedule for this Actor or a saved task to read a regularly updated list of image URLs, for example a linked text file, every day.

**AI agents:** the Apify MCP server at https://mcp.apify.com lets AI assistants such as Claude or Cursor run this Actor and read its results.

### FAQ

#### How much does Image to Text OCR cost?

Image to Text OCR costs $3 per 1,000 images on the Free plan and $2.80, $2.60 or $2.50 per 1,000 on higher Apify plans. 100 images cost about $0.30 on the Free plan. The Free plan's $5 monthly credit covers about 1,660 images.

#### How many results do I get?

Image to Text OCR returns one record for each image it reads, up to **Max images** (default 100, maximum 10,000). Images that fail are listed in `FAILED_URLS` instead.

#### How can I process more images?

Add more URLs, or link a text file with one URL per line, and raise **Max images** up to 10,000. For more than that, split the list over several runs of Image to Text OCR.

#### Can I run it on a schedule or through the API?

Yes. Image to Text OCR works with Apify Schedules and with the Apify API through the JavaScript and Python clients or a single cURL call. See the API section above for working examples.

#### How fresh is the result?

Image to Text OCR downloads each image at the time of the run and reads it then. Nothing is cached, so if the image at a URL changes, the next run reads the new image. Every record has a `scrapedAt` timestamp.

#### Are my images sent to a third-party OCR service?

No. Image to Text OCR downloads each image from its URL and runs Tesseract inside the Actor on the Apify platform. No third-party OCR API is called. The text is saved only to your own run's dataset. The images must be reachable by URL, so do not use public links for confidential documents unless you are comfortable with that.

### Limitations

- Works best on clear, printed text. Handwriting, very small text, heavy noise or curved text give lower confidence and more errors.
- Images that fail to download, are not images or are larger than 15 MB are skipped, listed in the key-value store record `FAILED_URLS` and not charged. Images with no text are still a result (`hasText: false`).
- The layout is returned as plain text with line breaks; tables are not rebuilt.
- Images must be reachable by an `http://` or `https://` URL. Direct file upload and images behind a login are not supported.
- One **Languages** setting applies to every image in the run. Tesseract does not detect the language by itself.
- **Max images** counts the URLs the Actor tries, including those that fail.
- Images are read one at a time, so very large batches take a while.

### Changelog

- 1.0 update (2026-11-19): an API call that leaves out `imageUrls` no longer gets the example value added; the example is used only when the run has no input source at all.
- 1.0 (2026-11-19): unknown language codes are now rejected at the start with a clear error that names them, instead of failing the run while loading the OCR model; codes are no longer case-sensitive.

### Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

### Support

Found a problem or missing field? Report problems in the Issues tab of this Actor.

# Actor input Schema

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

Links to images (PNG, JPG, WebP, BMP, GIF, TIFF), up to 15 MB each.

## `languages` (type: `string`):

Tesseract language codes joined with +, for example eng, vie, eng+deu, chi_sim, jpn, ara.

## `maxItems` (type: `integer`):

Read at most this many images.

## `proxyConfiguration` (type: `object`):

Optional proxy for downloading the images.

## Actor input object example

```json
{
  "imageUrls": [
    {
      "url": "https://tesseract.projectnaptha.com/img/eng_bw.png"
    }
  ],
  "languages": "eng",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset with one record per result.

## `resultsCsv` (type: `string`):

The same dataset exported as CSV.

# 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": [
        {
            "url": "https://tesseract.projectnaptha.com/img/eng_bw.png"
        }
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tamnt67/image-ocr").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": [{ "url": "https://tesseract.projectnaptha.com/img/eng_bw.png" }],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("tamnt67/image-ocr").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": [
    {
      "url": "https://tesseract.projectnaptha.com/img/eng_bw.png"
    }
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call tamnt67/image-ocr --silent --output-dataset

```

## MCP server setup

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

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/HgTLSAS7qsxdNlZ0Q/builds/wcH1YkYtTbfNmf9ct/openapi.json
