# Image OCR - Extract Text from Image URLs, 22 Languages (`scrapewise/image-ocr`) Actor

Scrape text from images with image OCR: paste image links (PNG, JPEG, WebP, GIF, BMP, TIFF) and get the text, a confidence score and, optionally, line and word positions in 22 languages. Pay per image read; links that are not images, missing or empty come back as free error rows.

- **URL**: https://apify.com/scrapewise/image-ocr.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.37 / 1,000 image reads

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: extract text from image links, 22 languages

Image OCR reads the text in pictures. Paste a list of **image links** and get one clean row per image: the full text, a **confidence score**, the language, the image size and, if you want it, the **position of every line and word** in pixels. No account, no API key and no image upload needed: you only send links.

It is built for the jobs that come back every week: turning screenshots, scanned pages, signs, posters, menus, price tags, memes and product photos into text you can search, count, translate, feed to a spreadsheet or hand to an AI model. It runs on plain CPU, so it is fast and the price per image stays low and predictable.

### At a glance

| What | Price |
|---|---|
| Image read (text found) | **US$ 1.80 per 1,000 images** (US$ 0.0018 each) |
| Run start | US$ 0.005 per run |

- 1,000 images = US$ 1.80 plus the run start.
- Images with no readable text, links that are not images, links that fail to download and repeated links are **never charged**: they come back as free rows with an `errorCode`.
- `maxItems` is a hard cap, and a spending limit set on the run stops it cleanly with everything delivered so far.
- Speed measured on a normal home computer: from a fraction of a second up to about two seconds per image, depending on size and amount of text. Several images are read at the same time.

### Quick start

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/2014_A1_road_sign_Maltby.jpg/960px-2014_A1_road_sign_Maltby.jpg"
  ]
}
```

Portuguese invoices, with the position of every line:

```json
{
  "imageUrls": ["https://example.org/scans/invoice-1.png", "https://example.org/scans/invoice-2.png"],
  "languages": ["por"],
  "detail": "lines"
}
```

Run it with an empty input and it reads a built-in example image, so you can see the output before you send your own links.

### Input

| Field | What it does |
|---|---|
| `imageUrls` | Public links to images, one per line (http or https). PNG, JPEG, WebP, GIF, BMP and TIFF. Links with `data:image/...;base64,...` also work. Up to 15 MB and 40 million pixels per image. |
| `languages` | The languages that appear in the pictures, up to 4. Default `eng`. Mixed pictures (for example English and Spanish) work by picking both. |
| `detail` | `text` (text and confidence), `lines` (adds every line with its box) or `words` (adds every word with its box). Default `text`. |
| `pageMode` | `auto` (default), `block` (one block of text), `line` (a single cropped line, like a captcha-sized label or a license plate crop) or `sparse` (text scattered over the picture, like labels on a diagram or a meme). |
| `minConfidence` | Words the reader is less sure about than this number (0 to 100) are dropped. Default 30, which removes most of the noise in photos. Use 0 to keep everything. |
| `maxItems` | Cap for the whole run (default 50, 0 = no cap). |

`urls`, `images`, `imageUrl`, `startUrls`, `language` and `maxImages` are accepted too, so inputs written for other OCR tools keep working. Language names like `en`, `pt`, `es`, `fr`, `de`, `zh` are understood as well.

#### Languages

English `eng`, Portuguese `por`, Spanish `spa`, French `fra`, German `deu`, Italian `ita`, Dutch `nld`, Russian `rus`, Ukrainian `ukr`, Polish `pol`, Turkish `tur`, Arabic `ara`, Hebrew `heb`, Hindi `hin`, Japanese `jpn`, Korean `kor`, Chinese simplified `chi_sim`, Chinese traditional `chi_tra`, Thai `tha`, Vietnamese `vie`, Indonesian `ind` and Greek `ell`. Pick only the languages that are really in your pictures: every extra language makes the result a bit slower and a bit less accurate.

### Output

One row per image that had text:

| Field | What it is |
|---|---|
| `imageUrl` | The link you sent (a `data:` link is shown as a short id) |
| `text` | All the text, one line per line of the picture, with a blank line between paragraphs or blocks |
| `confidence` | Average confidence of the words, 0 to 100 |
| `language` | The languages used, for example `eng` or `por+eng` |
| `characterCount`, `wordCount`, `lineCount` | Size of the extracted text |
| `width`, `height` | Size of the original image in pixels |
| `imageFormat` | `jpeg`, `png`, `webp`, `gif`, `bmp` or `tiff` |
| `imageBytes` | File size in bytes |
| `lines` | With `detail` set to `lines` or `words`: every line as `text`, `confidence` and `box` (`x`, `y`, `width`, `height` in pixels of the original image) |
| `words` | With `detail` set to `words`: the same for every word |
| `processingMs` | Time spent reading this image |
| `scrapedAt` | When the row was made (UTC) |
| `errorCode`, `error` | Empty on a good row |

The Actor reads the text and returns it. It does not keep the image and does not send it back.

#### Example

A road sign photo, `detail: lines` (one real row, fields shortened where marked):

```json
{
  "imageUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/2014_A1_road_sign_Maltby.jpg/960px-2014_A1_road_sign_Maltby.jpg",
  "text": "Doncaster\n\nA1((™ 18)|\n\nMaltby\nA634",
  "confidence": 74.1,
  "language": "eng",
  "characterCount": 29,
  "wordCount": 5,
  "lineCount": 4,
  "width": 960,
  "height": 720,
  "imageFormat": "jpeg",
  "imageBytes": 128807,
  "lines": [
    {"text": "Doncaster", "confidence": 96.5, "box": {"x": 199, "y": 145, "width": 164, "height": 27}},
    {"text": "A1((™ 18)|", "confidence": 46.6, "box": {"x": 195, "y": 180, "width": 182, "height": 48}},
    {"text": "Maltby", "confidence": 96.3, "box": {"x": 139, "y": 294, "width": 105, "height": 31}},
    {"text": "A634", "confidence": 84.4, "box": {"x": 137, "y": 331, "width": 95, "height": 26}}
  ],
  "processingMs": 302,
  "errorCode": null,
  "error": null
}
```

The text of the sign is read cleanly (96% on the place names). The route symbol in the second line is a graphic and comes out with a low line confidence, which is what the score is for: filter on `confidence` or on each line's `confidence` to keep only what you trust.

A clean typed invoice line in Portuguese, with accents and currency, was read at 96.5 confidence in about 0.1 s in our test.

### How accurate is it?

Printed text on a clear background (documents, screenshots, signs, labels, posters) is read well. Accuracy drops on:

- handwriting and very decorative fonts,
- text smaller than about 12 pixels high, strong blur, heavy compression or glare,
- text curved around objects, or on busy photo backgrounds.

Small images are enlarged before reading and large ones are reduced, so you do not need to prepare them. If a result looks wrong, try `pageMode` (`line` for one cropped line, `sparse` for scattered text), check that the right `languages` are selected, and look at `confidence`: it tells you which rows to review. This is a classic OCR reader, not an AI vision model: it does not describe pictures or understand layout meaning, it returns the characters it sees.

In our test on 29 mixed public photos and posters from a public image archive (many of them photos with little or no text), the Actor read text from the ones that had some and returned a free `NO_TEXT_FOUND` row for the rest, so you only pay for images where text came out.

### Errors you may see

Every error is a row with `errorCode` and is never charged:

| errorCode | Meaning |
|---|---|
| `INVALID_URL` | The link is not a valid public http or https address, or the data link is broken |
| `HTTP_ERROR` | The image server answered with an error status (for example 403 or 404) |
| `NOT_AN_IMAGE` | The link returns a web page, PDF or another file that is not a readable image |
| `TOO_LARGE` | More than 15 MB or more than 40 million pixels |
| `DOWNLOAD_FAILED` | The image could not be downloaded (timeout, connection error, too many redirects) |
| `NO_TEXT_FOUND` | The image is fine but no word reached `minConfidence`. Try a lower `minConfidence`, another `pageMode` or another language |
| `TIMEOUT` | One image took too long to read |
| `OCR_FAILED` | The image could not be read |
| `INVALID_INPUT` | A language or option has a wrong value (the message says what is accepted) |

Only public addresses are fetched: links to local or private network addresses are refused.

### Integrations, scheduling and AI agents

- **Schedule** the same list of image links daily or weekly in [Apify schedules](https://docs.apify.com/platform/schedules) to keep a text index of a folder of public images up to date.
- **Export** the dataset as JSON, CSV, Excel or XML, or read it from the [Apify API](https://docs.apify.com/api/v2).
- **Connect** it to Make, n8n, Zapier or Google Sheets through [Apify integrations](https://docs.apify.com/platform/integrations): for example, send each new product photo link, get the text on the label, and write it to a sheet.
- **Chain** it after other Actors that return image links (product photos, social posts, ads) to turn those pictures into searchable text.
- **AI agents:** call it as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) in Claude, ChatGPT, Cursor or any MCP client, for example "read the text in these 20 screenshots and list every price you find". The plain text and the confidence score are easy for a model to use, and the cost is a fraction of a cent per image.

### Typical uses

- **Searchable archives:** turn scans, screenshots and photographed documents into text for search and tagging.
- **Product and catalog data:** read labels, packaging and price tags from product photos.
- **Ads and social images:** read the text inside banners, posters and meme-style posts to track messages and offers.
- **Data entry:** pull numbers and names out of invoices, tickets and forms before checking them by hand (use `lines` to find where each value sits).
- **AI pipelines:** cheap first pass that extracts text so only the hard images go to a more expensive vision model.
- **Accessibility:** produce text alternatives for pictures that contain text.

### FAQ

**Do I have to upload the images?** No. You send public links and the Actor downloads each picture only to read it. For private files, use a `data:` link with the image inside it.

**Does it read PDFs?** No, only image files. A link that returns a PDF gets a free `NOT_AN_IMAGE` row.

**Can it read several languages in one picture?** Yes. Pick up to 4 languages and the reader uses them together.

**How do I get the position of the text?** Set `detail` to `lines` or `words`. Each entry has a `box` with `x`, `y`, `width` and `height` in pixels of the original image, so you can draw boxes or crop regions.

**Why did I get `NO_TEXT_FOUND`?** Either there is no text in the picture, or the reader was less sure than `minConfidence`. Lower `minConfidence`, try `pageMode: sparse` for scattered text, and check the language.

**Are rotated photos handled?** Photos saved with a rotation flag (most phone photos) are turned upright automatically. Text printed upside down or at a steep angle inside the picture is not guaranteed.

**Do transparent PNGs work?** Yes, they are placed on a white background before reading.

**Is it legal?** The Actor only downloads the image links you provide and returns the text. You are responsible for having the right to read the images you send and for how you use the result under the laws that apply to you.

**Something broke or a field is missing?** Open an issue on the Actor page.

### Limitations

- Image files only (no PDF, SVG or video). Animated GIFs are read from their first frame.
- Printed text is the target. Handwriting is not supported.
- Languages are limited to the 22 listed above, up to 4 per run.
- One image counts as one image, however much text it holds; very large images are reduced to a working size before reading.
- The confidence score is the reader's own estimate of each word, not a guarantee.

### Changelog

- **1 Nov 2026:** first version: text, confidence, 22 languages, line and word positions, page layout modes, free error rows.

# Actor input Schema

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

Public links to the images, one per line (http or https). PNG, JPEG, WebP, GIF, BMP and TIFF up to 15 MB and 40 million pixels. You can also paste data:image/...;base64 links. Leave empty to see an example.

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

Pick every language that appears in the images (up to 4). The more languages, the slower and the less accurate the result, so pick only what you need.

## `detail` (type: `string`):

How much to return for each image. Positions are boxes in pixels of the original image (x, y, width, height).

## `pageMode` (type: `string`):

Tell the reader what the picture looks like when automatic gets it wrong: a cropped single line works best with 'A single line of text', labels spread over a picture with 'Scattered text'.

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

Words the reader is less sure about than this are dropped. Raise it to remove noise from photos, lower it to 0 to keep everything.

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

Hard cap on the images read in the run. 0 = no cap.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/2014_A1_road_sign_Maltby.jpg/960px-2014_A1_road_sign_Maltby.jpg"
  ],
  "languages": [
    "eng"
  ],
  "detail": "text",
  "pageMode": "auto",
  "minConfidence": 30,
  "maxItems": 50
}
```

# Actor output Schema

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

No description

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

No description

# 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://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/2014_A1_road_sign_Maltby.jpg/960px-2014_A1_road_sign_Maltby.jpg"
    ],
    "languages": [
        "eng"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/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": ["https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/2014_A1_road_sign_Maltby.jpg/960px-2014_A1_road_sign_Maltby.jpg"],
    "languages": ["eng"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/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": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/2014_A1_road_sign_Maltby.jpg/960px-2014_A1_road_sign_Maltby.jpg"
  ],
  "languages": [
    "eng"
  ],
  "maxItems": 50
}' |
apify call scrapewise/image-ocr --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/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/IV3XzohozXDifGPzu/builds/yAWdq7ZOcKdarVssZ/openapi.json
