搜索
Serper 实时搜索与 Exa 深度语义搜索
实时搜索(Serper)
搜索并读取实时网页内容。
请求:
POST /v2/extend/web/serper/search参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| q | string | 是 | 搜索关键词 |
| gl | string | 否 | 国家代码(如 cn、us) |
| hl | string | 否 | 语言(如 zh-cn、en) |
| type | string | 否 | 搜索类型:search、images、videos、news |
| max_results | number | 否 | 最大结果数(上限 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参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| type | string | 否 | 搜索方式:neural / keyword / auto |
| numResults | number | 否 | 返回结果数 |
| category | string | 否 | 类别过滤 |
| includeDomains | array | 否 | 仅搜索指定域名 |
| excludeDomains | array | 否 | 排除指定域名 |
示例:
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}'