# 🚀 Google Lens OCR · 5,000 Free Images/Month (`omkar-cloud/google-lens-ocr`) Actor

Google Lens OCR gets you the text in any image ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — full text, language, paragraphs, lines and words with positions, or a translation. 💰 $1 per 1,000 images, no start fee. Read your first 5,000 images free every month 🚀

- **URL**: https://apify.com/omkar-cloud/google-lens-ocr.md
- **Developed by:** [Omkar Cloud](https://apify.com/omkar-cloud) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.

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

## Google Lens OCR

Google Lens OCR by Omkar Cloud gets you 🎯 accurate, 🔍 detailed text from any image — read by Google Lens.

Google Lens OCR reads screenshots, documents, signs, receipts and product labels in 100+ languages, so you get the text and can successfully complete your project.

**$1 per 1,000 images.** And with Apify's free plan you get $5 of credit every month, so your first **~5,000 images each month are free**.

This is an excellent Actor made by Omkar Cloud, which is Rated Excellent — [4.7 based on 30 reviews on Trustpilot](https://www.trustpilot.com/review/omkar.cloud).

👉 [**Try Google Lens OCR free**](https://console.apify.com/actors/K6uy3bKlpBRmfxdKa?addFromActorId=K6uy3bKlpBRmfxdKa) — your first ~5,000 images are Free.

### What can I get

- 📝 **The full text of any image** — with its language, in reading order
- 📐 **Paragraphs, lines & words with positions** — bounding boxes for every block
- 🌐 **Translation from 100+ languages** — paragraph by paragraph, next to the original
- ⚡ **About a second per image** — built for thousands of pictures

### Why Google Lens OCR

Most other OCR actors fail you in one of four ways:

- 🗄️ **Inaccurate, cached, stale data**
- 🧩 **Low-detail data** — a few links per picture, never the full picture
- 💸 **Pay more to get the same data**
- 🪦 **Works today, breaks next month** — nobody maintains it

Google Lens OCR is scraped live on every run, priced honestly, and actively maintained.

### Example: Text From a Textbook Page

```json
{
  "input_image": "https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/1844/2017/06/15212914/images-textwrap-square.png",
  "mode": "text",
  "language": "en",
  "text": "The simplest model of communication relies on three distinct parts: sender, message, and receiver.",
  "paragraphs": [
    {
      "position": 1,
      "text": "The simplest model of communication relies on three distinct parts: sender, message, and receiver.",
      "writing_direction": "left_to_right",
      "bounding_box": { "x": 0.02107, "y": 0.01537, "width": 0.91379, "height": 0.03692 }
    }
  ]
}
```

And in **Translate** mode (a Tokyo restaurant sign, into English):

```json
{
  "source_language": "ja",
  "target_language": "en",
  "status": "success",
  "paragraphs": [
    { "position": 4, "original_text": "一軒まるごと!", "translated_text": "A whole house!" }
  ]
}
```

*Trimmed for readability.*

### Get Started with 5,000 Free Images

1. [Hit **Try for Free Button**](https://console.apify.com/actors/K6uy3bKlpBRmfxdKa?addFromActorId=K6uy3bKlpBRmfxdKa) — the input is pre-filled with a textbook page and a Tokyo street sign.
2. Enjoy your data 😎.

### What you can scrape

Paste picture links — or web page links, their main image is used. Each picture becomes one row.

| Mode | You get |
|---|---|
| **Image to text (OCR)** | Full text, language, and paragraphs → lines → words with positions |
| **Translate** | The text translated paragraph by paragraph, next to the original and its position |

Read part of a picture with **Region**.

### Pricing

High value, Low price.

| What | Price | What you get |
|---|---|---|
| **Images** | **$1 per 1,000** | The text of the picture, or its translation |

No start fee — you pay only for the pictures you read. Control your spend with **Max pictures**: 1,000 pictures ≈ $1.

💡 Apify's free plan includes $5 of credit every month — about **5,000 free images, every month**.

👉 [**Read your first 5,000 images free**](https://console.apify.com/actors/K6uy3bKlpBRmfxdKa?addFromActorId=K6uy3bKlpBRmfxdKa)

### Run It from Code

Grab your API token from [Integrations Settings here](https://console.apify.com/settings/integrations) and replace `<YOUR_API_TOKEN>` below.

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

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("omkar-cloud/google-lens-ocr").call(run_input={"images": ["https://upload.wikimedia.org/wikipedia/commons/a/a5/Illuminated_facade_of_a_3-storey_restaurant_with_Japanese_signs_and_red_paper_lanterns%2C_Chiyoda%2C_Tokyo.jpg"], "mode": "translate", "targetLanguage": "en"})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["input_image"], row.get("translated_text") or row.get("text"))
```

**Node.js** (`npm install apify-client`)

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('omkar-cloud/google-lens-ocr').call({ images: ["https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/1844/2017/06/15212914/images-textwrap-square.png"], level: "words" });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### FAQ

**How much does a run cost?** $1 per 1,000 images, flat — OCR and translation cost the same.

**Which languages work?** Google Lens reads 100+ languages, including Japanese, Chinese, Arabic and Hindi, and detects the language for you.

**What are the coordinates?** Fractions of the picture (0-1) from its top-left corner: x, y, width, height.

### 💬 Have Questions? We Have Answers.

You're a business owner — we know how hard completing a project can be. So we offer full support: just message us and we'll reply ✅ with a solution within 1 working day.

[![Message Us on WhatsApp](https://raw.githubusercontent.com/omkarcloud/assets/master/images/whatsapp-us.png)](https://api.whatsapp.com/send?phone=918178804274\&text=I%20need%20help%20with%20using%20the%20Google%20Lens%20OCR%20Actor.)

[![Ask Us on Email](https://raw.githubusercontent.com/omkarcloud/assets/master/images/ask-on-email.png)](mailto:happy.to.help@omkar.cloud?subject=Help%20with%20Google%20Lens%20OCR%20Actor\&body=I%20need%20help%20with%20using%20the%20Google%20Lens%20OCR%20Actor.)

You are important to us — just message us and we will solve your problem ✅ within 1 working day. 🩷 Pinky Promise 🤙!

### Related Actors

- 🔍 [**Google Lens Scraper**](https://apify.com/omkar-cloud/google-lens-scraper) — search by image — what it is, visual matches, products with prices. $2.50 per 1,000 images.
- 🔍 [**Reverse Image Search**](https://apify.com/omkar-cloud/google-reverse-image-search) — every page that uses your picture, with dates. $2.50 per 1,000 images.
- 🔎 [**Google Search Scraper**](https://apify.com/omkar-cloud/google-search-scraper) — full Google results pages: organic, AI Overview, People also ask. $2.50 per 1,000 pages.

### Popular Actors by Omkar Cloud

- [**G2 Product Scraper**](https://apify.com/omkar-cloud/g2-product-scraper) — G2 product details, ratings & AI-found contacts
- [**Website Email Contact Scraper**](https://apify.com/omkar-cloud/website-email-contact-scraper) — emails, phones & socials from any website
- [**AliExpress Product Scraper**](https://apify.com/omkar-cloud/aliexpress-product-scraper) — live product details, SKU variants, stock & shipping
- [**Booking Scraper**](https://apify.com/omkar-cloud/booking-scraper) — Booking.com hotels: prices, ratings, rooms & amenities
- [**IMDb Scraper**](https://apify.com/omkar-cloud/imdb-scraper) — IMDb titles: ratings, votes, cast, box office & charts

👉 [**Read your first 5,000 images free now**](https://console.apify.com/actors/K6uy3bKlpBRmfxdKa?addFromActorId=K6uy3bKlpBRmfxdKa)

# Actor input Schema

## `images` (type: `array`):

Picture links (JPEG, PNG, WebP, GIF) or web page links (its main image is used). Each picture becomes one row.

## `mode` (type: `string`):

Image to text returns the full text, its language and paragraphs / lines / words with positions. Translate returns the text translated paragraph by paragraph, next to the original.

## `targetLanguage` (type: `string`):

2-letter code of the language to translate into (en, es, fr, de, ja, zh, ...). Translate mode only.

## `sourceLanguage` (type: `string`):

2-letter code of the language in the picture. Leave empty to auto-detect. Translate mode only.

## `language` (type: `string`):

2-letter code of the text's language. Leave empty to auto-detect. Image-to-text mode only.

## `level` (type: `string`):

How much layout detail each row carries. Image-to-text mode only.

## `region` (type: `string`):

Search only part of each picture: x,y,width,height as fractions 0-1 (top-left origin) or in pixels, e.g. 0.25,0.1,0.5,0.6. Leave empty for the whole picture.

## `maxResults` (type: `integer`):

Stop after this many pictures. Each picture is one row, billed once per run.

## Actor input object example

```json
{
  "images": [
    "https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/1844/2017/06/15212914/images-textwrap-square.png",
    "https://upload.wikimedia.org/wikipedia/commons/a/a5/Illuminated_facade_of_a_3-storey_restaurant_with_Japanese_signs_and_red_paper_lanterns%2C_Chiyoda%2C_Tokyo.jpg"
  ],
  "mode": "text",
  "targetLanguage": "en",
  "level": "lines",
  "maxResults": 100
}
```

# Actor output Schema

## `results` (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 = {
    "images": [
        "https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/1844/2017/06/15212914/images-textwrap-square.png",
        "https://upload.wikimedia.org/wikipedia/commons/a/a5/Illuminated_facade_of_a_3-storey_restaurant_with_Japanese_signs_and_red_paper_lanterns%2C_Chiyoda%2C_Tokyo.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("omkar-cloud/google-lens-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 = { "images": [
        "https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/1844/2017/06/15212914/images-textwrap-square.png",
        "https://upload.wikimedia.org/wikipedia/commons/a/a5/Illuminated_facade_of_a_3-storey_restaurant_with_Japanese_signs_and_red_paper_lanterns%2C_Chiyoda%2C_Tokyo.jpg",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("omkar-cloud/google-lens-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 '{
  "images": [
    "https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/1844/2017/06/15212914/images-textwrap-square.png",
    "https://upload.wikimedia.org/wikipedia/commons/a/a5/Illuminated_facade_of_a_3-storey_restaurant_with_Japanese_signs_and_red_paper_lanterns%2C_Chiyoda%2C_Tokyo.jpg"
  ]
}' |
apify call omkar-cloud/google-lens-ocr --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,omkar-cloud/google-lens-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/K6uy3bKlpBRmfxdKa/builds/d1DaP0PpSJGcJWiAm/openapi.json
