{"operation":"matches/search","version":"1.0.0","status":"pilot","title":"Search by image","summary":"The pages Google Lens matches an image with, about 60, with their title, site, photo and price, as Lens lists them.","use_when":"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.","categories":["E-commerce"],"icon":"lens","source":"google_lens","input":{"type":"object","required":["image_url"],"additionalProperties":false,"properties":{"image_url":{"type":"string","format":"uri","maxLength":2000,"description":"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).","examples":["https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcRtwvnhth3bbPZp8cYnVYym3L787a2w_WCoc_Law7PKs97RFrKqSXG59okHwit9PfkPE4GVoSAfvvlMujwhuovSeImTivbjaZkz1kfb2UCC"]},"type":{"enum":["visual","exact"],"default":"visual","description":"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":{"type":"string","maxLength":500,"description":"Words Lens adds to the image (\"velvet\", \"Togo armchair\"): the matches are those of both.","examples":["velvet"]},"language":{"type":"string","pattern":"^[a-z]{2}(-[A-Z]{2})?$","default":"en","description":"The language of Google's words (titles Google writes, stock, dates), as Google's `hl`.","examples":["en"]},"country":{"type":"string","pattern":"^[a-z]{2}$","default":"us","description":"The country whose stores and prices Lens lists, as Google's `gl` (ISO 3166-1 alpha-2, lower case): with fr, French stores in euros.","examples":["us"]}}},"pagination":{"style":"none","page_size":60},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","type","title","url","source","price","in_stock","rating","date_text","thumbnail","image","ids","source_url","observed_at"],"properties":{"object":{"const":"match","description":"The kind of record: a page matching an image."},"id":{"type":"string","description":"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."},"position":{"type":"integer","minimum":1,"description":"Its rank in Lens's tab."},"type":{"enum":["visual","exact"],"description":"The tab it comes from."},"title":{"type":"string","description":"The page's title, as Lens shows it."},"url":{"type":"string","format":"uri","description":"The page."},"source":{"type":"object","additionalProperties":false,"required":["name","domain","icon_url"],"description":"The site the page is on.","properties":{"name":{"type":["string","null"],"description":"Its name as Lens writes it: Amazon, Maisons du Monde."},"domain":{"type":["string","null"],"description":"Its host: www.amazon.fr."},"icon_url":{"type":["string","null"],"description":"Its icon as Lens shows it (often the image itself, data:...)."}}},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency","text"],"description":"The price Lens shows for the page (a store selling it): `amount`, `currency` (ISO 4217) and `text` as Google wrote it (\"1 175 €*\": * is Google's \"check the site\"); null otherwise.","properties":{"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"text":{"type":"string"}}},"in_stock":{"type":["boolean","null"],"description":"true when Lens says it is in stock, false when out of stock, null when it says neither."},"rating":{"type":["object","null"],"additionalProperties":false,"required":["value","scale","count"],"description":"The product's rating on the page and its reviews count, when Lens shows them.","properties":{"value":{"type":"number"},"scale":{"const":5},"count":{"type":["integer","null"]}}},"date_text":{"type":["string","null"],"description":"The date Lens gives an exact match's page, as it writes it in `language` (\"13 Jan 2021\"); null for a visual match."},"thumbnail":{"type":["object","null"],"additionalProperties":false,"required":["url","width","height"],"description":"The image as Lens shows it, its size in pixels when Lens says it.","properties":{"url":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]}}},"image":{"type":["object","null"],"additionalProperties":false,"required":["url","width","height"],"description":"The image on the page: its address (visual matches) and its size in pixels.","properties":{"url":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]}}},"ids":{"type":"object","additionalProperties":false,"required":["image_id","document_id"],"description":"Google's ids of a visual match: its image's and its page's.","properties":{"image_id":{"type":["string","null"]},"document_id":{"type":["string","null"]}}},"source_url":{"type":"string","format":"uri","description":"The image's search on Lens."},"observed_at":{"type":"string","format":"date-time","description":"When it was read","UTC.":null}}},"price":{"credits_per_call":1,"description":"1 credit a call, whatever the tab holds. An image Google cannot read, a search with no match and a failed call are free.","free":["empty","failed"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"invalid_image","status":422,"retryable":false,"message":"`image_url` is not an image's address (http or https); not charged."},{"code":"invalid_type","status":422,"retryable":false,"message":"`type` is visual or exact; not charged."},{"code":"image_unreadable","status":422,"retryable":false,"message":"Google could not download the image at `image_url` (not public, or not an image); not charged."},{"code":"site_unavailable","status":503,"retryable":true,"message":"Google did not answer in time or answered its check instead of the search; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"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."}],"examples":[{"request":{"image_url":"https://www.example.com/sofa.jpg"},"records":[{"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"}]}],"health":{"canaries":[{"image_url":"https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcRtwvnhth3bbPZp8cYnVYym3L787a2w_WCoc_Law7PKs97RFrKqSXG59okHwit9PfkPE4GVoSAfvvlMujwhuovSeImTivbjaZkz1kfb2UCC","min_records":40},{"image_url":"https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcSkf7dfVSVgYMXeH987Wrvt4o_yLt3sBCfqcep3tE5O5uVzE7QodSwTgaAw5cmv8jJw1RluWEqKuHuJb7eAwnaiOdn9VRp5","type":"exact","min_records":20}],"required_fields":["id","title","url","source.domain"]},"changelog":[{"version":"1.0.0","date":"2026-11-24","notes":"First version on the API v2."}],"object":"operation","id":"google_lens/matches/search","site":{"title":"Google Lens","domain":"lens.google.com","color":"#EA4335"}}