Skip to content
OperationsGoogle Lens

Search by image

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

google_lens/matches/search1 credit a callv1.1.1

When to use it

You have a photo (a piece of furniture, a garment, a product) and want the pages that show it or something like it: stores selling it, with their price and stock, and any page with a similar image. Pass the image's public address. type picks Lens's tab: visual matches (similar images, default) or exact matches (the same image elsewhere). Add words with query to narrow it ("velvet", "black"). country sets the stores and the currency.

Try it

The options on the left write the call; the answer on the right is the contract's example. With your API key, the same call returns live data.

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"
    }
  ]
}

Options

image_urlstringrequired
The image's public address, which Google downloads (no sign-in, 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).
type"visual" | "exact"Default 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).
querystring
Words Lens adds to the image ("velvet", "Togo armchair"): the matches are those of both.
languagestringDefault en
The language of Google's words (titles Google writes, stock, dates), as Google's hl.
countrystringDefault 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.

Record

Each record of results, in the envelope every call returns (Run an operation).

objectstring
The kind of record: a page matching an image.
idstring
Google's id of the page's document for a visual match (3l11OeqcfrA-SM); the page's link for an exact one, which Google gives no id.
positioninteger
Its rank in Lens's tab.
typestring
The tab it comes from.
titlestring
The page's title, as Lens shows it.
urlstring
The page. An exact match's comes as Google gives it signed out, its own redirect to the page (https://www.google.com/goto?url=...), which opens it with no cookie. Google adds Lens's session to it (gsessionid), left out: not needed to open the page, and not the match's but the search session's.
source.namestring
Its name as Lens writes it: Amazon, Maisons du Monde.
source.domainstring
Its host: www.amazon.com. Null for an exact match whose url is Google's redirect.
source.icon_urlstring
Its icon as Lens shows it (often the image itself, data:...).
price.amountfloat
price.currencystring
price.textstring
in_stockboolean
true when Lens says it is in stock, false when out of stock, null when it says neither.
rating.valuefloat
rating.scalefloat
rating.countinteger
product.idstring
Google Shopping's id of the product (4593364531341020711).
product.titlestring
Its title as Google Shopping gives it, longer than the card's (cut too when long, ending in ...).
product.brandstring
Its brand (Ledrem), when Google says one.
product.descriptionstring
The store's words about it, as Google cuts them (ending in ...).
product.price.amountfloat
product.price.currencystring
date_textstring
The date Lens gives an exact match's page, as it writes it in language ("13 Jan 2021"); null for a visual match.
thumbnail.urlstring
thumbnail.widthinteger
thumbnail.heightinteger
image.urlstring
image.widthinteger
image.heightinteger
ids.image_idstring
ids.document_idstring
source_urlstring
The image's search on Lens.
observed_atdate
When it was read, UTC.

Errors

Its own, besides those of every call (Errors). A failed call is free.

CodeStatusWhat it means
invalid_image422image_url is not an image's address (http or https); not charged.
invalid_type422type is visual or exact; not charged.
image_unreadable422Google could not download the image at image_url (not public, or not an image); not charged.
site_unavailable503Google did not answer in time or answered its check instead of the search; retry later (not charged). Retryable.
unexpected_answer424Google answered in a shape we do not read yet; we are told and fix it, and it is not charged. Retrying now gives the same.

Price

1 credit a call, whatever the tab holds. An image Google cannot read, a search with no match and a failed call are free. What a credit costs on each plan: Credits and pricing.

Changelog

1.1.12026-12-01
Google's sign-in gate ("Sign in to continue") instead of the matches is a refusal: the call is made again on another IP, then answers site_unavailable to retry, never 0 records.
1.1.02026-12-01
A visual match from a store says product when Google Shopping knows what the page sells: its id, its whole title, its brand, the store's description and its exact price (the card's is rounded). Null otherwise.
1.0.22026-11-25
url says that Lens's session (gsessionid) is left out of an exact match's link, and why.
1.0.12026-11-25
An exact match's url is Google's redirect as it gives it signed out, absolute and without Lens's session; its stock is read ("Out of stock").
1.0.02026-11-24
First version on the API v2.