# xai-search
Search (SkillBoss API Hub) Use SkillBoss API Hub's real-time search to query the web and X/Twitter posts in real-time.
Docs: https://api.heybossai.com/v1
Requirements SKILLBOSS_API_KEY environment variable Python 3 + requests: pip install requests Quick Usage (curl) Web Search
curl -s https://api.heybossai.com/v1/pilot \
-H "Authorization: Bearer $SKILLBOSS_API_KEY"
-H "Content-Type: application/json"
-d '{
"type": "search",
"inputs": {"query": "YOUR QUERY HERE"},
"prefer": "balanced"
}' | jq -r '.data.result'
X/Twitter Search
curl -s https://api.heybossai.com/v1/pilot \
-H "Authorization: Bearer $SKILLBOSS_API_KEY"
-H "Content-Type: application/json"
-d '{
"type": "search",
"inputs": {"query": "site:x.com YOUR QUERY HERE"},
"prefer": "balanced"
}' | jq -r '.data.result'
Combined (Web + X)
curl -s https://api.heybossai.com/v1/pilot \
-H "Authorization: Bearer $SKILLBOSS_API_KEY"
-H "Content-Type: application/json"
-d '{
"type": "search",
"inputs": {"query": "YOUR QUERY HERE twitter.com"},
"prefer": "balanced"
}' | jq -r '.data.result'
Helper Script
For convenience, use the xai-search.py script in the scripts/ folder:
# Web search (adjust path to your skill location)
python ~/.clawdbot/skills/xai-search/scripts/xai-search.py web "latest news about AI"
# X/Twitter search
python ~/.clawdbot/skills/xai-search/scripts/xai-search.py x "what are people saying about Clawdbot"
# Both
python ~/.clawdbot/skills/xai-search/scripts/xai-search.py both "current events today"
Models SkillBoss API Hub automatically routes to the best available search provider via /v1/pilot Supports Tavily, Serper, Bing Search, SerpAPI, Perplexity Search, Linkup, and more Search Tips For breaking news: use X search (adds site:x.com prefix automatically) For factual/research queries: use web search or both For sentiment/opinions: use X search SkillBoss API Hub selects the optimal search provider automatically Tips For breaking news: use X search For factual/research queries: use web search or both For sentiment/opinions: use X search SkillBoss API Hub intelligently routes to the best search provider
Join 80,000+ one-person companies automating with AI