Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
Google Lens APITry it

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.

Try the Google Lens API

Pick an operation: its request in cURL, Python or Node, and its answer.

1Request
The image's public address, which Google downloads (no sign-in, no cookie): a photo on a store, a copy on your own storage.
1 credit a call
Code, from the fields above
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"
    }
  }'
2Response

An example answer. Run it on your own input.

{
  "object": "run",
  "id": "run_owxe3bvgryms4hc4eeg2mk64hi",
  "livemode": true,
  "source": "google_lens",
  "operation": "matches/search",
  "version": "1.1.1",
  "schema_url": "https://api.lobstr.io/v2/catalog/google_lens/matches/search",
  "options": {
    "image_url": "https://www.example.com/sofa.jpg"
  },
  "fields": null,
  "status": "succeeded",
  "count": 1,
  "has_more": false,
  "next": null,
  "cost": {
    "credits": 1
  },
  "results": [
    {
      "object": "match",
      "id": "3l11OeqcfrA-SM",
      "position": 1,
      "type": "visual",
      "title": "Acme corner sofa in grey velvet",
      "url": "https://www.acme-furniture.example/products/corner-sofa",
      "source": {
        "name": "Acme Furniture",
        "domain": "www.acme-furniture.example",
        "icon_url": null
      },
      "price": {
        "amount": 1175,
        "currency": "USD",
        "text": "$1,175*"
      },
      "in_stock": true,
      "rating": {
        "value": 4.5,
        "scale": 5,
        "count": 12
      },
      "product": {
        "id": "4593364531341020711",
        "title": "Acme corner sofa in grey velvet, right-facing chaise, 4 seats",
        "brand": "Acme",
        "description": "A deep corner sofa in soft grey velvet, with a right-facing chaise and four seats ...",
        "price": {
          "amount": 1174.99,
          "currency": "USD"
        }
      },
      "date_text": null,
      "thumbnail": {
        "url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:example",
        "width": 188,
        "height": 268
      },
      "image": {
        "url": "https://www.acme-furniture.example/images/corner-sofa.jpg",
        "width": 1400,
        "height": 2000
      },
      "ids": {
        "image_id": "_A58_Sfqj08pVM",
        "document_id": "3l11OeqcfrA-SM"
      },
      "source_url": "https://lens.google.com/uploadbyurl?url=https%3A%2F%2Fwww.example.com%2Fsofa.jpg&hl=en&gl=us",
      "observed_at": "2026-11-24T17:21:00Z"
    }
  ]
}

Google Lens API operations

1 operations, one key, the same envelope: results, count, cost and next for the following page.

Use the Google Lens API in your agent

One key, then your agent or your code calls every operation of this page.

  1. 01

    Connect lobstr.io

    Add the lobstr.io MCP server to Claude, ChatGPT, Cursor or any MCP client, or take an API key for your code.

    Claude
    ChatGPT
    Cursor
  2. 02

    Ask, or call

    Tell your agent what you need from Google Lens: it finds the operations that fit and runs them. From your code, it is one POST to /v2/run.

    Here is a photo of a corner sofa I like: find the stores that sell it or one like it, with their price, and tell me which have it in stock.

    Search by image
  3. 03

    Pay per call

    1 credit a call that returns data, from your plan’s credits. The free plan gives 100 credits a month.

    60 matchs 1
    Empty pageFree
    Failed callFree

Why lobstr.io

What you get when your agent or your code calls Google Lens through lobstr.io.

01

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.

02

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.

lobstr.ioConnected
find_operations
get_operation
run_operation
get_balance
send_feedback
03

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.

Last 30 days

lobstr.io or the Cloud Vision API

What Google’s own Cloud Vision API gives, and what lobstr.io gives, for the same images.

Cloud Vision APIlobstr.io
Google LensNo public API: Cloud Vision’s web detection is the closestLens’s own tabs, visual matches and exact matches, as Lens lists them
An image10 results by default: matching and similar images, the pages that show them, web entities and a best guess labelAbout 60 visual matches, or up to a few hundred exact matches, in one call
Stores and pricesNone: images, pages and labels onlyEach 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 month1 credit a call: $0.50 to $2 per 1,000 calls
To startA Google Cloud project with billing, the API enabled and credentialsAn API key, with 100 free credits a month

From Google’s documentation, 3 December 2026.

What it costs

Set what you need from each operation in a month: the credits add up, and the plan that holds them is the price.

Every plan
Search by image1,00017 credits

1 credit a call: 60 matchs.

A month

Free

17 credits a month: the free plan holds 100.

Live

Google Lens API reliability

Every call counts; a day is green at 95% successful.

Successful calls
90.79%
Median call
4.3 s
90 days agoToday
95% or more (SLA)90 to 95%75 to 90%Under 75%

A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.

Google Lens API FAQ

What people ask before calling the Google Lens API.

Matches, stores and prices

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.

Using the API

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.

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.

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, 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.

Ready to call it?

An API key in a minute, then the call above, from your code or your agent.