Skip to content
登录 注册

谷歌反向图片搜索API

使用谷歌反向图片搜索,查找某张图片在网络上出现的位置。设置 engine=google_reverse_image,并在 image_url 参数中传入一个可公开访问的图片 URL。

GET https://serp.shifter.io/v1?engine=google_reverse_image&api_key=YOUR_API_KEY
ParameterTypeRequiredDescription
api_keystringyes您的 SERP API 密钥
enginestringyes必须为 google_reverse_image
image_urlstringyes要搜索的图片的 URL(必须经过 URL 编码)
devicestringnodesktopmobiletablet
google_domainstringno要使用的谷歌域名
locationstringno地理定位位置名称
uulestringno谷歌编码的位置字符串
hlstringno界面语言代码
glstringno国家代码
lrstringno语言限制,格式为 lang_xx
Terminal window
curl "https://serp.shifter.io/v1?engine=google_reverse_image&api_key=YOUR_API_KEY&image_url=https%3A%2F%2Fencrypted-tbn1.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcRjlJi4t9H9nOiAAv_nRGq8arI_Ed9ILW1lY9lKWa63q8AL_UwI"
{
"search_parameters": {
"engine": "google_reverse_image",
"image_url": "https://encrypted-tbn1.gstatic.com/images?q=tbn:..."
},
"image_sizes": [
{ "size": "1920 x 1080", "image": "https://...", "link": "https://..." }
],
"inline_images": [
{ "source": "https://example.com", "thumbnail": "https://..." }
],
"image_results": [
{
"position": 1,
"title": "Image from example.com",
"link": "https://example.com/page",
"source": "example.com",
"thumbnail": "https://..."
}
]
}