PieBox
文档中心

搜索

Serper 实时搜索与 Exa 深度语义搜索

实时搜索(Serper)

搜索并读取实时网页内容。

请求:

POST /v2/extend/web/serper/search

参数:

参数类型必填说明
qstring搜索关键词
glstring国家代码(如 cn、us)
hlstring语言(如 zh-cn、en)
typestring搜索类型:search、images、videos、news
max_resultsnumber最大结果数(上限 10)

示例:

curl https://tokenhub.piegateway.me/v2/extend/web/serper/search \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{"q": "2026年最新AI新闻", "gl": "cn", "hl": "zh-cn"}'

深度搜索(Exa)

语义搜索,搜索更深入精准。

请求:

POST /v2/extend/web/exa/search

参数:

参数类型必填说明
querystring搜索查询
typestring搜索方式:neural / keyword / auto
numResultsnumber返回结果数
categorystring类别过滤
includeDomainsarray仅搜索指定域名
excludeDomainsarray排除指定域名

示例:

curl https://tokenhub.piegateway.me/v2/extend/web/exa/search \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{"query": "大语言模型最新研究", "numResults": 5}'