# Google Lens API

> Pass a photo’s address and get the pages Google Lens matches it with: the stores that sell it or something like it, with their price and stock, or every page that shows the very same image. JSON with the same fields every time, from your code or your agent.

1 operations, 1 credit a call, one API key. The page for people: https://www.lobstr.io/store/google_lens

## Operations

### Search by image: `google_lens/matches/search`

The pages Google Lens matches an image with, about 60, with their title, site, photo and price, as Lens lists them.

1 credit a call, 60 matchs a page. Its page: https://www.lobstr.io/store/google_lens/matches/search. Every option, field and error: https://api.lobstr.io/v2/catalog/google_lens/matches/search.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `image_url` (required) | string |  | The image's public address, which Google downloads (no sign-in, no cookie): a photo on a store, a copy on your own storage. |
| `type` | visual, exact | `visual` | Lens's tab: visual, the pages with a similar image (about 60, the stores among them with a price); exact, the pages with this very image (up to a few hundred, with its size on each). |
| `query` | string |  | Words Lens adds to the image ("velvet", "Togo armchair"): the matches are those of both. |
| `language` | string | `en` | The language of Google's words (titles Google writes, stock, dates), as Google's hl. |
| `country` | string | `us` | The country whose stores and prices Lens lists, as Google's gl (ISO 3166-1 alpha-2, lower case): with gb, British stores in pounds. |

## Call it

From code, one endpoint for every operation:

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source":"google_lens","operation":"matches/search","options":{"image_url":"https://www.example.com/sofa.jpg"}}'
```

The answer holds `results` (the records), `count`, `cost.credits` and `next`: the whole call for the following page, to send as it is; null on the last page. SDKs: `pip install lobstrio`, `npm install lobstrio` (https://docs.lobstr.io/sdks).

From an AI agent: the MCP server https://api.lobstr.io/v2/mcp with your API key, in Claude, ChatGPT, Cursor or any MCP client. Its tools: find_operations, get_operation, run_operation, get_balance, send_feedback. Setup for each agent: https://docs.lobstr.io/agents

The API key is in the dashboard, under API: https://app.lobstr.io/dashboard/api. No account yet? An agent can get one for the person it works for: https://www.lobstr.io/auth.md

## Why lobstr.io

- **One key, every source**: No Google Cloud project, no billing account, no Lens API to wait for. One lobstr.io key reaches Google Lens and 20 other sources, from Google Maps to LinkedIn Sales Navigator, on the same credits.
- **Built for agents**: Five MCP tools, nothing to learn: your agent finds the operation, reads what it takes and gives, runs it and follows next. Your code gets the same through the SDKs or plain HTTP.
- **Measured in public**: Every call of the last 90 days counts in the figures on this page, and a failed call is free. Its operation is also run every hour by our own checks.

## lobstr.io or the Cloud Vision API

| | Cloud Vision API | lobstr.io |
| --- | --- | --- |
| Google Lens | No public API: Cloud Vision’s web detection is the closest | Lens’s own tabs, visual matches and exact matches, as Lens lists them |
| An image | 10 results by default: matching and similar images, the pages that show them, web entities and a best guess label | About 60 visual matches, or up to a few hundred exact matches, in one call |
| Stores and prices | None: images, pages and labels only | Each store’s price and stock, the product’s rating, and the product Google Shopping knows the page sells |
| Price | $3.50 per 1,000 images past the first 1,000 a month | 1 credit a call: $0.50 to $2 per 1,000 calls |
| To start | A Google Cloud project with billing, the API enabled and credentials | An API key, with 100 free credits a month |

From Google’s documentation, 3 December 2026.

## Price

1 credit a call, whatever the page holds; an empty page and a failed call are free. The plans:

- Free: $0 a month, 100 credits a month
- Starter: $20 a month, 10,000 credits a month
- Pro: $100 a month, 100,000 credits a month
- Team: $500 a month, 1,000,000 credits a month

Every plan compared: https://www.lobstr.io/pricing.md

## Google Lens API reliability

Every call of the last 90 days, from our users and from our own checks. Its operation is also run every hour by our own checks. A failed call is free.

| Operation | Calls | Successful | Median call |
| --- | --- | --- | --- |
| `google_lens/matches/search` | 1,032 | 90.79% | 4.3 s |

## Google Lens API FAQ

### Is there an official Google Lens API?

No: Google offers no public Lens API. The closest is Cloud Vision’s web detection, which gives matching and similar images, the pages that show them and labels, 10 by default, with no store or price. lobstr.io reads Lens as people see it: about 60 visual matches with their stores and prices, or every page that shows the very same image.

### What is the difference between visual and exact matches?

They are Lens’s two tabs, set with type. visual, the default, gives about 60 pages with a similar image, the stores among them with their price. exact gives the pages that show this very image, up to a few hundred, each with the image’s size there and the date Lens gives the page: where a photo of yours is used.

### Can I get the store and the price?

Yes, when Lens shows them: each match has its site, its price (amount, currency, and the text as Google wrote it), whether it is in stock and the product’s rating. When Google Shopping knows what a store’s page sells, product gives its id, its whole title, its brand and its exact price. country sets the stores and the currency: gb lists British stores in pounds.

### Which images can I search?

Any image at a public address Google can download, with no sign-in and no cookie: a photo on a store, a copy on your own storage. Lens searches the part of the image it finds most salient, a sofa in a living room; add words with query ("velvet") to narrow the matches.

### Do I need a Google Cloud account?

No. A lobstr.io API key is all it takes, and the free plan gives 100 credits a month.

### What does a call cost?

1 credit an image, whatever the tab holds: 1,000 calls cost $0.50 to $2 depending on the plan. An image Google cannot read, a search with no match and a failed call are free.

### Can my AI agent use it?

Yes. Add the lobstr.io MCP server to Claude, ChatGPT, Cursor or any MCP client: the agent finds the operation, runs it and follows next by itself. [Setup for each agent](https://docs.lobstr.io/agents).

### Is there an SDK?

Yes: lobstrio, on PyPI and npm, with a typed method for each operation (client.google_lens.matches.search in Python). [The SDKs](https://docs.lobstr.io/sdks).

### Can I combine Google Lens with other sources?

Yes, on the same key and the same credits. Search the product Lens found by its name on [Google Shopping](https://www.lobstr.io/store/google_shopping/products/search), look for it second-hand on Facebook Marketplace, and pass a store’s domain to websites/contacts/get for its emails. An agent chains them by itself.

### How reliable is the Google Lens API on lobstr.io?

Every call of the last 90 days is drawn on this page, day by day, and a failed call is free. Its operation is also run every hour by our own checks, so a change on Google Lens shows within the hour.

## Related sources

- [Google Shopping: Search products](https://www.lobstr.io/store/google_shopping.md): The same product by its name: about 40 products a page, each with its price, store, delivery and rating. 40 credits a call.
- [Facebook Marketplace: Search listings](https://www.lobstr.io/store/facebook_marketplace.md): The same item second-hand, each listing with its price, its town and its seller. 1 credit a call.
- [Pinterest: Search pins](https://www.lobstr.io/store/pinterest.md): Pins of the same style or object, each with its image at full size and the page it comes from. 1 credit a call.
- [Websites: Get a website's contacts](https://www.lobstr.io/store/websites.md): The emails and phones on a store’s own website: pass it a match’s source.domain. 1 credit a call.
