Skip to content

general 字段说明

general 是一个对象,表示本次搜索请求的通用上下文信息,主要包含搜索来源与关键词。

字段名说明
count搜索全站结果总数
engine当前使用的搜索引擎标识。例如:google、bing 等
search_type搜索类型。例如:url,binary。
url用户实际搜索的关键词或短语
type搜索类型,当前为 lens,表示以图搜图
hl搜索结果语言

测试用例

bash
curl --location 'https://api.serp.hk/serp/google/lens/advanced' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
        "hl": "zh-cn", 
        "url": "https://www.shutterstock.com/image-photo/potala-palace-summer-lhasa-tibet-260nw-518790361.jpg"
}' --compressed

返回结果

json
{
    "count": 194000000,
    "engine": "google",
    "type": "lens",
    "url": "https://www.shutterstock.com/image-photo/potala-palace-summer-lhasa-tibet-260nw-518790361.jpg",
    "hl": "zh-cn",
    "search_type": "url"
}