image_urlstringобязательно
Parameter defines the URL for an image to perform the reverse image search. NOTE: The image's width and height must each be 4,000 pixels or less.
https://api.sandbase.ai/v1/api/bing/reverse-imageSearch Bing Visual Search with an image URL and get visually similar images, pages that contain the image and related searches.
PNG, JPEG, WebP или GIF · максимум 20 MiB
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Search Bing Visual Search with an image URL and get visually similar images, pages that contain the image and related searches.
curl -X POST "https://api.sandbase.ai/v1/api/bing/reverse-image" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/320px-Camponotus_flavomarginatus_ant.jpg"}'
The result is returned in outputs[0].data as structured JSON.
| Name | Type | Required | Description |
|---|---|---|---|
image_url | string | Yes | Parameter defines the URL for an image to perform the reverse image search. NOTE: The image's width and height must each be 4,000 pixels or less. |
mkt | string | No | The market where the results come from (e.g. en-US). Typically, mkt is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing Reverse Image API |
cat | string | No | Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.3 means cropping 30% from the top. The minimum and maximum for this coordinate are 0 and 1, respectively. |
cal | string | No | Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.3 means cropping 30% from the left. The minimum and maximum for this coordinate are 0 and 1, respectively. |
car | string | No | Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.8 means cropping the right, 80% from the left. The minimum and maximum for this coordinate are 0 and 1, respectively. |
cab | string | No | Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.8 means cropping the bottom, 80% from the top. The minimum and maximum for this coordinate are 0 and 1, respectively. |
next_page_token | string | No | Parameter defines the next page token. It is used for retrieving the next page results. |
count | string | No | Parameter controls the number of results per page. This parameter defaults to 35. This parameter is only a suggestion and might not reflect the returned results. The minimum and maximum for this parameter are 0 and 150, respectively. |
json_restrictor | string | No | Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
$0.010 per successful call. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/bing/reverse-image" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/320px-Camponotus_flavomarginatus_ant.jpg"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
image_urlstringобязательноParameter defines the URL for an image to perform the reverse image search. NOTE: The image's width and height must each be 4,000 pixels or less.
mktstringThe market where the results come from (e.g. `en-US`). Typically, `mkt` is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing Reverse Image API delivers results. The market must be in the form <language code>-<country code>. For example, en-US. The string is case insensitive. For a list of possible market values, see Market Codes. NOTE: If known, you are encouraged to always specify the market. Specifying the market helps Bing route the request and return an appropriate and optimal response. If you
catstringParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.3` means cropping 30% from the top. The minimum and maximum for this coordinate are `0` and `1`, respectively.
calstringParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.3` means cropping 30% from the left. The minimum and maximum for this coordinate are `0` and `1`, respectively.
carstringParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.8` means cropping the right, 80% from the left. The minimum and maximum for this coordinate are `0` and `1`, respectively.
cabstringParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.8` means cropping the bottom, 80% from the top. The minimum and maximum for this coordinate are `0` and `1`, respectively.
next_page_tokenstringParameter defines the next page token. It is used for retrieving the next page results.
countstringParameter controls the number of results per page. This parameter defaults to `35`. This parameter is only a suggestion and might not reflect the returned results. The minimum and maximum for this parameter are `0` and `150`, respectively.
json_restrictorstringParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Bing Reverse Image SearchЭтот API Bing | $0.01 за запрос | JSON |
Bing | $0.015 за запрос | JSON |
Bing | $0.015 за запрос | JSON |
Bing | $0.01 за запрос | JSON |
Bing | $0.01 за запрос | JSON |
Bing | $0.015 за запрос | JSON |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/bing/reverse-image, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.01 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: image_url (string). Необязательные: mkt (string), cat (string), cal (string), car (string), cab (string) и next_page_token (string) и еще 2. В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно).
Нет. Bing Reverse Image Search работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Bing.