Google 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.
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" } }'
An example answer, from the contract. Run it on your own input with your API key.
{ "object": "run", "id": "run_owxe3bvgryms4hc4eeg2mk64hi", "livemode": true, "source": "google_lens", "operation": "matches/search", "version": "1.0.0", "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 }, "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" } ] }
27 fields per match
Every call returns them for each record, in the results of its JSON answer.
Search by image
27 fields- object
- text
- The kind of record: a page matching an image.
- match
- id
- id
- Google's id of the page's document for a visual match (3l11OeqcfrA-SM); the page's address for an exact one, which Google gives no id.
3l11OeqcfrA-SM- position
- number
- Its rank in Lens's tab.
- 1
- type
- text
- The tab it comes from.
- visual
- title
- text
- The page's title, as Lens shows it.
- Acme corner sofa in grey velvet
What it costs
Billed by the call: 1 credits, whatever the page holds (up to 60 matchs). Pick how many calls a month.
1 credit a call
Calls a month
100
Frequently asked questions
What people ask before calling google_lens/matches/search.
Search by image
When do I 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.
What do I give it?
image_url(required): 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: 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: Words Lens adds to the image ("velvet", "Togo armchair"): the matches are those of both.language: The language of Google's words (titles Google writes, stock, dates), as Google'shl.country: The country whose stores and prices Lens lists, as Google'sgl(ISO 3166-1 alpha-2, lower case): with fr, French stores in euros.
What does it return?
The pages Google Lens matches an image with, about 60, with their title, site, photo and price, as Lens lists them. Every record has the same fields, empty ones included: they are all listed above.
How do I get the next page?
Each answer ends with next: the following call, whole. Send it as it is; it is null after the last page. A page holds 60 records at most.
Pricing
What does a call cost?
1 credit a call, whatever the tab holds. An image Google cannot read, a search with no match and a failed call are free.
When is a call free?
- an empty page (past the end, or nothing found)
- a call that fails
Errors
What can go wrong?
invalid_image(422):image_urlis not an image's address (http or https); not charged.invalid_type(422):typeis visual or exact; not charged.image_unreadable(422): Google could not download the image atimage_url(not public, or not an image); not charged.site_unavailable(503, retry): Google did not answer in time or answered its check instead of the search; retry later (not charged).unexpected_answer(424): Google 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.
How long can a call take?
30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.
API and agents
Can my AI agent run it?
Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs google_lens/matches/search. Its page for agents, in Markdown: google_lens/matches/search.md.
Where is its full description?
The contract, as JSON: https://api.lobstr.io/v2/catalog/google_lens/matches/search: every option, every field, the price and the errors. This page is drawn from it.
Ready to call it?
An API key in a minute, then the call above, from your code or your agent.