Anspire Web Search
Use the Anspire search API when the request depends on real-time web information.
When to use
- The user asks to search the web, browse, look up, or verify recent information
- The question depends on current events, recent news, policy changes, market updates, releases, or other time-sensitive facts
- The answer would be unreliable without live internet access
When not to use
- The request can be answered from stable knowledge alone
- The user only wants rewriting, translation, brainstorming, or code edits unrelated to live information
ANSPIRE_API_KEYis unavailable
Required behavior
- Build a concise search query from the user's request.
- Call the Anspire API with
curl --get --data-urlencodeso the query is encoded safely. - Read the JSON response and extract the most relevant items, typically
title,url, andsnippet. - Summarize the results in Chinese unless the user asks for another language.
- Mention the source domains or titles for important claims.
- If the API call fails or returns no useful results, say so clearly and do not fabricate a live answer.
API call
QUERY="latest OpenClaw releases"
curl --silent --show-error --fail --location --get \
"https://plugin.anspire.cn/api/ntsearch/search" \
--data-urlencode "query=$QUERY" \
--data-urlencode "top_k=10" \
--header "Authorization: Bearer $ANSPIRE_API_KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
微信扫一扫