API Endpoints
/v1/searchThe 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.
Sent as the Authorization header. Your key is used only by your browser for this request — it is never sent to Docsbook or stored.
Search query
Number of results to return, e.g. 10. Defaults to 10. Range: 1–20
Sub-domain capability tag, a single value in the form {domain}.{sub_domain}, e.g. code.doc
Region, one of cn or intl
Preferred language, e.g. zh-CN or en
Extended parameters passed through to the routed data source, e.g. {"ticker": "AAPL"}
Output format, one of json or markdown
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
}'See the full Error Codes reference for every status the gateway can return.
Related#
- Response Format — What a success and error body look like
- Tags & Params — Full domain taxonomy for the
tagandparamsfields - Authentication — Anonymous vs. authenticated access
