Search
Real-time search with Serper and semantic search with Exa
Real-Time Search (Serper)
Search and read real-time web content.
Request:
POST /v2/extend/web/serper/searchParameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Search keywords |
| gl | string | No | Country code (e.g. us, cn) |
| hl | string | No | Language (e.g. en, zh-cn) |
| type | string | No | Search type: search, images, videos, news |
| max_results | number | No | Maximum number of results (up to 10) |
Example:
curl https://tokenhub.piegateway.me/v2/extend/web/serper/search \
-H "X-API-Key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{"q": "latest AI news 2026", "gl": "us", "hl": "en"}'Deep Search (Exa)
Semantic search for deeper, more precise results.
Request:
POST /v2/extend/web/exa/searchParameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Search query |
| type | string | No | Search mode: neural / keyword / auto |
| numResults | number | No | Number of results to return |
| category | string | No | Category filter |
| includeDomains | array | No | Only search specified domains |
| excludeDomains | array | No | Exclude specified domains |
Example:
curl https://tokenhub.piegateway.me/v2/extend/web/exa/search \
-H "X-API-Key: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{"query": "latest LLM research", "numResults": 5}'