据 AlphaMoat 统计,截至 2026-09,xAI Search 累计下载 3,866 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 2,693 位,在「知识管理」分类(442 个)中排名第 246 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 128 | 3,682 | 1 | - |
| SkillHub ↗ | 240 | 3,866 | 1 | — |
各平台的计数口径不同,统计时间不一致。
该技能通过 xAI 的 Grok API 实时搜索 X/Twitter 和网页,利用 grok-3-fast 等模型的 web_search 与 x_search 智能体工具,支持 curl 直接调用或 scripts/xai-search.py 辅助脚本,可按账号、日期范围、图片/视频理解等过滤 X 搜索,按域名过滤 Web 搜索;突发新闻与舆情用 X 搜索,事实与研究类查询用 Web 搜索或两者并用。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 3,866 | — | 1 |
| 2026-08 | 3,629 | +1.8% | 1 |
| 2026-07 | 3,565 | +5.3% | 1 |
| 2026-06 | 3,387 | +2.8% | 1 |
| 2026-05 | 3,295 | — | 1 |
| 2026-03 | 2,972 | — | 1 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
---
name: xai-search
description: Search X/Twitter and the web in real-time using xAI's Grok API with agentic search tools.
metadata: {"clawdbot":{"emoji":"🔍"}}
---
# xAI Search (Grok API)
Use xAI's agentic search to query X/Twitter and the web in real-time. This leverages Grok's `web_search` and `x_search` tools.
**Docs:** https://docs.x.ai/docs/
## Requirements
- `XAI_API_KEY` environment variable
- Python 3 + xai-sdk: `pip install xai-sdk`
## Quick Usage (curl)
### Web Search
```bash
curl -s https://api.x.ai/v1/chat/completions \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-3-fast",
"messages": [{"role": "user", "content": "YOUR QUERY HERE"}],
"tools": [{"type": "function", "function": {"name": "web_search"}}]
}' | jq -r '.choices[0].message.content'
```
### X/Twitter Search
```bash
curl -s https://api.x.ai/v1/chat/completions \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-3-fast",
"messages": [{"role": "user", "content": "YOUR QUERY HERE"}],
"tools": [{"type": "function", "function": {"name": "x_search"}}]
}' | jq -r '.choices[0].message.content'
```
### Combined (Web + X)
```bash
curl -s https://api.x.ai/v1/chat/completions \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-3-fast",
"messages": [{"role": "user", "content": "YOUR QUERY HERE"}],
"tools": [
{"type": "function", "function": {"name": "web_search"}},
{"type": "function", "function": {"name": "x_search"}}
]
}' | jq -r '.choices[0].message.content'
```
## Helper Script
For convenience, use the `xai-search.py` script in the `scripts/` folder:
```bash
# 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
- `grok-3-fast` — fast, good for quick searches
- `grok-4-1-fast` — reasoning model, better for complex queries
## X Search Filters
You can filter X searches by:
- `allowed_x_handles` / `excluded_x_handles` — limit to specific accounts
- `from_date` / `to_date` — date range (ISO8601 format)
- `enable_image_understanding` — analyze images in posts
- `enable_video_understanding` — analyze videos in posts
## Web Search Filters
- `allowed_domains` / `excluded_domains` — limit to specific sites
- `enable_image_understanding` — analyze images on pages
## Tips
- For breaking news: use X search
- For factual/research queries: use web search or both
- For sentiment/opinions: use X search
- The model will make multiple search calls if needed (agentic)
把长文本、文档与网页内容压缩成要点和关键词的摘要工具。
通过 IMA OpenAPI 管理笔记与知识库内容。
规定如何为网页请求选择合适工具的必读指引。
调用百度 AI 搜索接口做网页检索的技能。
用 uvx 直接调用 markitdown,把各类文件转成 Markdown。
面向 OpenClaw 的默认网页搜索,实时检索多个引擎。
用 DuckDuckGo 接口做网页、新闻、图片与视频检索的技能。
检索并发现可用 OpenClaw 技能的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。