通用搜索可调用
Google Images Search
按查询搜索 Google 图片与来源链接;返回链接不授予图片使用权。
- 接口地址
- POST https://api.serpbase.dev/google/image/search
- 价格
- 1 积分
- 鉴权方式
- X-API-Key
只有成功的请求才收费。每个接口有固定的积分价格(大多是 1 或 2 积分),失败的请求会自动退还积分。 计费 →
示例
cURL
curl -X POST 'https://api.serpbase.dev/google/image/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"query":"red pandas"}'返回 · 真实返回,已缩短
{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "google_images_search",
"query": "red pandas",
"images": [
{
"display_link": "en.wikipedia.org",
"display_url": "en.wikipedia.org",
"domain": "en.wikipedia.org",
"image_url": "https://upload.wikimedia.org/wikipedia/commons/f/fd/Red_Panda%2C_Gentle_Tree-Dweller_of_the_Himalaya…",
"link": "https://en.wikipedia.org/wiki/Red_panda",
"position": 1,
"rank": 1,
"source": "Wikipedia",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNeizrqHVhTRtzGZT4s3Pnmc_FSNTmyKg45Jj_Fn8k8A&s=10",
"thumbnail_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNeizrqHVhTRtzGZT4s3Pnmc_FSNTmyKg45Jj_Fn8k8A&s=10",
"title": "Red panda - Wikipedia",
"url": "https://en.wikipedia.org/wiki/Red_panda"
},
{
"display_link": "kids.nationalgeographic.com",
"display_url": "kids.nationalgeographic.com",
"domain": "kids.nationalgeographic.com",
"image_url": "https://i.natgeofe.com/k/63b1a8a7-0081-493e-8b53-81d01261ab5d/red-panda-full-body_16x9.jpg",
"link": "https://kids.nationalgeographic.com/animals/mammals/facts/red-panda",
"position": 2,
"rank": 2,
"source": "National Geographic Kids",
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSCqYcPPXKAmx1AUafJcJFQ3vJ9RQmG_9xH0vqAXEocBg&s=10",
"thumbnail_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSCqYcPPXKAmx1AUafJcJFQ3vJ9RQmG_9xH0vqAXEocBg&s=10",
"title": "Red Panda | National Geographic Kids",
"url": "https://kids.nationalgeographic.com/animals/mammals/facts/red-panda"
}
],
"page": 1,
"search_type": "images"
}常见问题
Google Images Search API 怎么收费?
每次请求消耗 1 积分。积分来自预付积分包或月度套餐,新账号自带免费积分。
如何调用 Google Images Search API?
向 https://api.serpbase.dev/google/image/search 发送 POST 请求,并在 X-API-Key 请求头中带上你的 API Key。返回 JSON,请检查 status(0 表示成功)。
Google Images Search API 现在可以用吗?
可以,任何有效的 API Key 都能调用。