Overview

API Endpoints

POST/v1/search

The unified search endpoint. The gateway routes the query to the best data sources based on intent, then fuses and re-ranks the results. API key is optional — anonymous traffic is rate-limited per IP and consumes the daily free quota.

Authorization
Authorizationstring

Sent as the Authorization header. Your key is used only by your browser for this request — it is never sent to Docsbook or stored.

Body
querystringrequired

Search query

max_resultsint

Number of results to return, e.g. 10. Defaults to 10. Range: 1–20

tagstring

Sub-domain capability tag, a single value in the form {domain}.{sub_domain}, e.g. code.doc

zonestring

Region, one of cn or intl

languagestring

Preferred language, e.g. zh-CN or en

paramsobject

Extended parameters passed through to the routed data source, e.g. {"ticker": "AAPL"}

formatstring

Output format, one of json or markdown

Example
curl -X POST https://api.anysearch.com/v1/search \
  -H "Authorization: Bearer YOUR_ANYSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Go 1.26 release notes",
    "tag": "code.doc",
    "params": {"library": "golang"},
    "max_results": 10
  }'
Errors

See the full Error Codes reference for every status the gateway can return.

Updated

Was this page helpful?