PieBox
Documentation

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/search

Parameters:

ParameterTypeRequiredDescription
qstringYesSearch keywords
glstringNoCountry code (e.g. us, cn)
hlstringNoLanguage (e.g. en, zh-cn)
typestringNoSearch type: search, images, videos, news
max_resultsnumberNoMaximum 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/search

Parameters:

ParameterTypeRequiredDescription
querystringYesSearch query
typestringNoSearch mode: neural / keyword / auto
numResultsnumberNoNumber of results to return
categorystringNoCategory filter
includeDomainsarrayNoOnly search specified domains
excludeDomainsarrayNoExclude 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}'