# Image to Text — OCR for Screenshots & Scanned Pages, Bulk URLs (`steadyfetch/image-to-text-ocr`) Actor

Image to text for your picture links: one row per image with the text in reading order, lines as written, its language and size. Screenshots, signs, scanned pages, posters. PNG, JPG, WEBP, GIF. Pay per image read, no start fee.

- **URL**: https://apify.com/steadyfetch/image-to-text-ocr.md
- **Developed by:** [Steadyfetch Team](https://apify.com/steadyfetch) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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 to Text — OCR for Screenshots & Scanned Pages, Bulk URLs

**Paste links to pictures and get the text in each one back as one row per image: the words in reading order, the lines as written, the language, and the picture's size. Screenshots, signs, scanned book and newspaper pages, posters, slides. From $2.00 per 1,000 images, no start fee.**

Support teams, researchers, marketers and data teams use image to text to turn piles of screenshots and scanned pages into searchable, copyable text: receipts and notices, archived newspaper pages, product labels, slides from a talk, screenshots of posts. This actor reads a whole list of picture links in one run and returns one flat row per image, ready to filter, search or export.

**Using an AI agent?** Pin this actor in Apify's MCP server with one link: `https://mcp.apify.com?tools=steadyfetch/image-to-text-ocr`

- **Actor id:** `steadyfetch/image-to-text-ocr`
- **Input:** `{ "imageUrls": ["https://example.com/screenshot.png"] }`
- **Cap the bill:** set `maxTotalChargeUsd` on the run (a run option, not Actor input), e.g. `0.25` for 100 images on any paid plan — the run reads only the images that can pay.
- **Price:** $0.002 per image read at Gold ($0.003 on the Apify free plan), no start fee. Full table below.
- **How often it changes:** a picture's text does not change, so read each picture once; schedule a run only for new links.

### What you get

One row per image (`rowType: "image"`), in the order of your list:

| Column | What it holds |
|---|---|
| `sourceUrl` · `imageIndex` | the image link you gave, and its place in your list |
| `text` | all the text in the picture, in reading order (top to bottom, left to right), lines joined by line breaks |
| `lines` | the same text as a list, one entry per line as it is written in the picture |
| `language` | the main language of the text as a two-letter code (`en`, `de`, `fr` …), or `null` when unsure |
| `charCount` · `lineCount` | how much text was read |
| `width` · `height` · `format` | the picture's size in pixels and its format (`png`, `jpeg`, `webp`, `gif`) |
| `readAt` | when the run read it |

Every row also carries `charged`, `chargedEvents`, `status`, `retryable` and `statusReason`, so you can reconcile your bill from the dataset itself. The text is copied as written: it is not translated, corrected or summarized.

### How to use it

1. Put your picture links in **Image links** — one per line, the address of the picture itself (`https://…/scan.png`), not of the page it sits on. PNG, JPG, WEBP or GIF (its first frame), up to 7 MB each, up to 100 per run.
2. Press Start — or call it from your code or agent with the input above.

Optional: **Max run seconds**. A short sign or screenshot reads in a few seconds; a dense printed page takes up to about 90 seconds. Up to four pictures are read at once.

Checked first, never charged: an entry that is not a public link to a picture, a pasted file (`data:` link), a link that opens a web page, a PDF, another file format, a link with nothing at the address, and a picture larger than **7 MB**. Each gets its own row saying why and what to send instead; the rest of the list goes ahead.

When a picture's site will not hand it over to the reader directly, this actor fetches the picture itself and sends it once more. That second try is on us: one image, one fee. Pictures are read, not stored by this actor.

### Pricing

Pay per image read, all-inclusive (no platform usage on top), no start fee:

| Event | Apify Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Image read (one picture read, its text delivered) | $0.003 | $0.0025 | $0.0022 | $0.002 |

From $2.00 per 1,000 images at Gold. The fee is the same for a three-word sign and a full newspaper page.

Every picture read is charged, including one where no text is found; that row says so. Never charged: a link refused before reading, a picture that could not be read on this run (`try_again`, `retry_later`), one with more text than one reading returns in full (`too_much_text` — crop it into parts), and the bare-Start sample.

Examples at Gold: 1 image = $0.002. 100 images = $0.20. 1,000 images = $2.00.

### Good to know

- **A time limit ends the reading, never the delivering**: pictures already read are delivered, and the receipt says which limit stopped the run.
- **Free plan:** on the Apify free plan your account reads five images per 24 hours; the row says when it resets. Paid plans have no daily allowance.
- **Standby endpoint:** one image per HTTP request (`GET /?imageUrl=https://example.com/screenshot.png`), at the same price per image. It keeps no account memory.
- **Small or blurry text:** a picture whose text a person could not read at its own size may come back with empty `text`; it was read, so it is charged. Send the largest copy you have.
- **Bare Start:** with no image set, the run reads one public-domain warning sign as a sample and charges nothing.
- **Honest rows:** `not_found` (nothing at the address), `too_much_text` (crop the picture), `try_again` (no answer in time — a re-run fixes it), `retry_later` (this actor's reading service refused the request or sent back no answer — run it again in a few minutes; when the row says the picture could not be re-sent, send a smaller copy of the picture, or a link that opens it directly; when it says the picture was not read in full, crop the picture into parts), `input_error` (the row names the fix). None is charged.
- The receipt is the last row (`run_summary`) and the run's `OUTPUT` record.

### Support

Questions, a picture that comes back wrong, or a column you need: open an issue on the Issues tab and it will be looked at.

If it earned its keep, a rating helps other buyers find it, and saving the actor keeps it one click away.

# Changelog

This Actor's version history is a separate document: https://apify.com/steadyfetch/image-to-text-ocr/changelog.md

# Actor input Schema

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

One public link to a picture per entry (PNG, JPG, WEBP, or GIF — its first frame), like https://example.com/screenshot.png: the address of the picture itself, not of the page it sits on. Up to 100 per run, 7 MB each. Each link is checked first, with nothing charged: one that opens a web page, a PDF, has nothing at the address or is larger than 7 MB gets its own row saying so, and the rest of the list goes ahead.

## `maxRunSeconds` (type: `integer`):

Optional. Stop starting new readings after this many seconds; pictures already read are always delivered. A short sign reads in a few seconds, a dense printed page in up to about 90; up to 4 are read at once. The least is 60.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Warning_sign_in_cologne.jpg/960px-Warning_sign_in_cologne.jpg"
  ]
}
```

# Actor output Schema

## `text` (type: `string`):

One row per image read in full (status delivered): text in reading order (empty when the picture holds no readable text), lines as written, language (ISO code, null when unsure), width, height, format, lineCount and charCount, with the link it came from. Each such row is charged ONE `image` and says charged: true with chargedEvents {"image": 1}. Every row carries charged, chargedEvents, status and retryable, so the invoice reconciles from the dataset itself.

## `notRead` (type: `string`):

One uncharged row of the same columns for each image that was not read: `too_much_text` (more text than one reading returns in full: crop it into parts), `input_error` (not a public picture link, a web page, a PDF, another format or over 7 MB: the row names which), `not_found` (nothing at the address), `try_again` (its site or the reading did not answer in time: run it again), `retry_later` (this actor's reading service refused the request or sent back no answer: run it again in a few minutes; when the row says the picture could not be re-sent, send a smaller copy of the picture, or a link that opens it directly; when it says the picture was not read in full, crop the picture into parts), `skipped_budget` / `skipped_deadline` (your maximum charge or the run clock came first) and `skipped.free_plan_allowance` (Apify free plan only; the row names the reset time).

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

The run's receipt: images read, images asked for, images with no text, characters delivered, the charged events and what stopped the run. Uncharged.

# 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/5/5e/Warning_sign_in_cologne.jpg/960px-Warning_sign_in_cologne.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyfetch/image-to-text-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/5/5e/Warning_sign_in_cologne.jpg/960px-Warning_sign_in_cologne.jpg"] }

# Run the Actor and wait for it to finish
run = client.actor("steadyfetch/image-to-text-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/5/5e/Warning_sign_in_cologne.jpg/960px-Warning_sign_in_cologne.jpg"
  ]
}' |
apify call steadyfetch/image-to-text-ocr --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyfetch/image-to-text-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/Rbaro3W4NoDsod4nj/builds/yWQ4BgOpOF8zqzyOY/openapi.json
