Appearance
general 字段说明
general 是一个对象,表示本次搜索请求的通用上下文信息,主要包含搜索来源与关键词。
| 字段名 | 说明 |
|---|---|
engine | 当前使用的搜索引擎标识(例如:google, bing)。 |
query | 用户实际搜索的关键词或短语。 |
type | 搜索类型(例如:scholar 表示论文检索,search 表示普通搜索)。 |
page | 当前结果的页数 |
测试用例
bash
curl --location 'https://api.serp.hk/serp/google/scholar/advanced' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"q": "Deep Learning",
"gl": "US",
"hl": "en"
}' --compressed返回结果
json
{
"engine": "google",
"page": 1,
"query": "Deep Learning",
"type": "scholar"
}