urlstringобязательно
Public URL of the image to search with.
https://api.sandbase.ai/v1/api/google/lensReverse image search: find web pages and visual matches for an image URL.
PNG, JPEG, WebP или GIF · максимум 20 MiB
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
The Google Lens API runs a reverse image search on a public image URL. It returns a list of web pages and visual matches, each with a title, source site, link and image. The only input is the url of the image.
curl -X POST "https://api.sandbase.ai/v1/api/google/lens" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://i.imgur.com/HBrB8p0.png"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Public URL of the image to search with. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"results": [
{
"image": "https://preview.redd.it/arnold-schwarzenegger-and-danny-devito-v0-mnja7ruli9dh1.…",
"link": "https://www.reddit.com/r/CelebrityLookalikes/comments/1uwlrps/arnold_schwarzeneg…",
"source": "Reddit",
"thumbnailUrl": "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQd3AyHbyvFtdWZ50GZr6_g7e9I…",
"title": "Arnold Schwarzenegger und Danny DeVito : r/CelebrityLookalikes"
}
],
"url": "https://i.imgur.com/HBrB8p0.png"
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the search returned matches. The request still succeeds when nothing is found, and found is false in that case. |
data.url | The image URL that was searched, echoed back from the request. |
data.results[].title | Title of the matching web page or post. |
data.results[].link | URL of the web page that contains the matching image. |
data.results[].source | Name of the site that hosts the match, such as Reddit or Facebook. |
data.results[].image | URL of the matching image on the source site. Some values are cut or point to a resized preview. |
data.results[].thumbnailUrl | URL of a small thumbnail of the match. |
url must point to a public image. Pages that need a login will not work.url. It has no pagination parameters.Billed at the actual cost of each call, about $0.00085 for the request above. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/google/lens" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://i.imgur.com/HBrB8p0.png"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
urlstringобязательноPublic URL of the image to search with.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Google LensЭтот API Google | От $0.00085 за запрос | JSON |
Google | $0.01 за запрос | JSON |
Google | $0.015 за запрос | JSON |
Google | От $0.002 за запрос | JSON |
Google | От $0.0015 за запрос | JSON |
Google | $0.01 за запрос | JSON |
Руководства:Best Google API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/google/lens, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.00085 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Google Lens работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Google.