Web Search Pro
Multi-engine web search with full parameter control for AI agents.
A precision supplement to OpenClaw's built-in web_search (Brave/Perplexity), providing
domain filtering, deep search, news mode, date ranges, and content extraction
that the built-in search does not support.
多引擎精细化网络搜索,为 AI Agent 设计。
作为 OpenClaw 内置 web_search(Brave/Perplexity)的精细化补充,提供域名过滤、
深度搜索、新闻模式、日期范围、内容提取等内置搜索不支持的能力。
配置一个或多个 API Key,自动选择最优引擎。
Engines / 引擎
| Engine |
Strengths |
Free Tier |
API Key Env |
| Tavily |
AI-optimized, best answer quality, full filters, extract |
1000/month |
TAVILY_API_KEY |
| Exa |
Semantic/neural search, deep research |
$10 credit |
EXA_API_KEY |
| Serper |
Real Google SERP, best news coverage |
100/month |
SERPER_API_KEY |
| SerpAPI |
Multi-engine (Google/Bing/Baidu/Yandex/DuckDuckGo) |
250/month |
SERPAPI_API_KEY |
Auto-Select Priority / 自动选择优先级
When --engine is not specified, the skill picks the best available engine:
| Query Type |
Priority |
Reason |
| Default |
Tavily > Exa > Serper > SerpAPI |
Tavily has best AI answer + full filters |
--deep |
Tavily > Exa |
Both have dedicated deep search modes |
--news |
Serper > Tavily |
Google News has widest coverage |
--include-domains |
Tavily > Exa > Serper > SerpAPI |
Tavily/Exa have native domain filters |
--search-engine baidu |
SerpAPI |
Only SerpAPI supports Baidu/Yandex |
| Chinese queries |
SerpAPI (Baidu) > Serper |
Baidu has better Chinese results |
Search / 搜索
# Basic search (auto-select engine)
node {baseDir}/scripts/search.mjs "query"
# Force specific engine
node {baseDir}/scripts/search.mjs "query" --engine tavily
# Domain filtering (only search specific sites)
node {baseDir}/scripts/search.mjs "query" --include-domains "github.com,stackoverflow.com"
# Exclude domains
node {baseDir}/scripts/search.mjs "query" --exclude-domains "pinterest.com,quora.com"
# Date range (absolute)
node {baseDir}/scripts/search.mjs "query" --from 2026-01-01 --to 2026-02-09
# Time range (relative)
node {baseDir}/scripts/search.mjs "query" --time-range week
# Deep/advanced search
node {baseDir}/scripts/search.mjs "query" --deep
# News search
node {baseDir}/scripts/search.mjs "query" --news --days 7
# Multi-engine: Baidu search
node {baseDir}/scripts/search.mjs "query" --engine serpapi --search-engine baidu
# More results
node {baseDir}/scripts/search.mjs "query" -n 10
# JSON output (for programmatic use)
node {baseDir}/scripts/search.mjs "query" --json
Extract / 内容提取
Extract readable content from URLs (Tavily Extract or Exa livecrawl):
node {baseDir}/scripts/extract.mjs "https://example.com/article"
node {baseDir}/scripts/extract.mjs "url1" "url2" "url3"
node {baseDir}/scripts/extract.mjs "url" --engine exa
node {baseDir}/scripts/extract.mjs "url" --json
All Options / 全部参数
| Option |
Description |
Engines |
--engine <name> |
Force engine: tavily|exa|serper|serpapi |
all |
-n <count> |
Number of results (default: 5) |
all |
--deep |
Deep/advanced search mode |
tavily, exa |
--news |
News search mode |
tavily, serper, serpapi |
--days <n> |
Limit news to last N days |
tavily |
--include-domains <d,...> |
Only search these domains |
all (native: tavily, exa) |
--exclude-domains <d,...> |
Exclude these domains |
all (native: tavily, exa) |
--time-range <range> |
day|week|month|year |
all |
--from <YYYY-MM-DD> |
Results after this date |
all |
--to <YYYY-MM-DD> |
Results before this date |
all |
--search-engine <name> |
SerpAPI sub-engine: google|bing|baidu|yandex|duckduckgo |
serpapi |
--country <code> |
Country code (us, cn, de...) |
serper, serpapi |
--lang <code> |
Language code (en, zh, de...) |
serper, serpapi |
--json |
Raw JSON output |
all |
Setup / 配置
Add API keys to your environment (e.g., ~/.openclaw/.env):
# Configure at least one (recommended: Tavily)
TAVILY_API_KEY=tvly-xxxxx # https://tavily.com (1000 free/month)
EXA_API_KEY=exa-xxxxx # https://exa.ai ($10 free credit)
SERPER_API_KEY=xxxxx # https://serper.dev (100 free/month)
SERPAPI_API_KEY=xxxxx # https://serpapi.com (250 free/month)
Notes / 说明
- At least one API key must be configured
- Domain filtering via
--include-domains/--exclude-domains works natively on Tavily and Exa; on Serper/SerpAPI it's implemented via site: query operators
--deep mode uses more API credits (Tavily: 2x, Exa: varies)
- Extract only works with Tavily and Exa
- All output is Markdown-formatted for AI agent consumption; use
--json for programmatic access
1---
2name: web-search-pro
3description: |
4 Multi-engine web search with full parameter control. Supports Tavily, Exa, Serper, and SerpAPI
5 with domain filtering, date ranges, deep search, news mode, and content extraction.
6 Auto-selects the best engine based on query type and available API keys.
7 多引擎精细化搜索:支持域名过滤、日期范围、深度搜索、新闻模式、内容提取。
8 根据查询类型和可用 API Key 自动选择最优引擎。
9homepage: https://github.com/Zjianru/web-search-pro
10metadata:
11 source: https://skillmd.com/skills/modbender/web-search-pro
12 clawdbot:
13 emoji: 🔎
14 requires:
15 bins:
16 - node
17 env_any:
18 - TAVILY_API_KEY
19 - EXA_API_KEY
20 - SERPER_API_KEY
21 - SERPAPI_API_KEY
22---
23
24# Web Search Pro
25
26Multi-engine web search with full parameter control for AI agents.
27A precision supplement to OpenClaw's built-in `web_search` (Brave/Perplexity), providing
28domain filtering, deep search, news mode, date ranges, and content extraction
29that the built-in search does not support.
30
31多引擎精细化网络搜索,为 AI Agent 设计。
32作为 OpenClaw 内置 `web_search`(Brave/Perplexity)的精细化补充,提供域名过滤、
33深度搜索、新闻模式、日期范围、内容提取等内置搜索不支持的能力。
34配置一个或多个 API Key,自动选择最优引擎。
35
36## Engines / 引擎
37
38| Engine | Strengths | Free Tier | API Key Env |
39|--------|-----------|-----------|-------------|
40| **Tavily** | AI-optimized, best answer quality, full filters, extract | 1000/month | `TAVILY_API_KEY` |
41| **Exa** | Semantic/neural search, deep research | $10 credit | `EXA_API_KEY` |
42| **Serper** | Real Google SERP, best news coverage | 100/month | `SERPER_API_KEY` |
43| **SerpAPI** | Multi-engine (Google/Bing/Baidu/Yandex/DuckDuckGo) | 250/month | `SERPAPI_API_KEY` |
44
45## Auto-Select Priority / 自动选择优先级
46
47When `--engine` is not specified, the skill picks the best available engine:
48
49| Query Type | Priority | Reason |
50|------------|----------|--------|
51| Default | Tavily > Exa > Serper > SerpAPI | Tavily has best AI answer + full filters |
52| `--deep` | Tavily > Exa | Both have dedicated deep search modes |
53| `--news` | Serper > Tavily | Google News has widest coverage |
54| `--include-domains` | Tavily > Exa > Serper > SerpAPI | Tavily/Exa have native domain filters |
55| `--search-engine baidu` | SerpAPI | Only SerpAPI supports Baidu/Yandex |
56| Chinese queries | SerpAPI (Baidu) > Serper | Baidu has better Chinese results |
57
58## Search / 搜索
59
60```bash
61# Basic search (auto-select engine)
62node {baseDir}/scripts/search.mjs "query"
63
64# Force specific engine
65node {baseDir}/scripts/search.mjs "query" --engine tavily
66
67# Domain filtering (only search specific sites)
68node {baseDir}/scripts/search.mjs "query" --include-domains "github.com,stackoverflow.com"
69
70# Exclude domains
71node {baseDir}/scripts/search.mjs "query" --exclude-domains "pinterest.com,quora.com"
72
73# Date range (absolute)
74node {baseDir}/scripts/search.mjs "query" --from 2026-01-01 --to 2026-02-09
75
76# Time range (relative)
77node {baseDir}/scripts/search.mjs "query" --time-range week
78
79# Deep/advanced search
80node {baseDir}/scripts/search.mjs "query" --deep
81
82# News search
83node {baseDir}/scripts/search.mjs "query" --news --days 7
84
85# Multi-engine: Baidu search
86node {baseDir}/scripts/search.mjs "query" --engine serpapi --search-engine baidu
87
88# More results
89node {baseDir}/scripts/search.mjs "query" -n 10
90
91# JSON output (for programmatic use)
92node {baseDir}/scripts/search.mjs "query" --json
93```
94
95## Extract / 内容提取
96
97Extract readable content from URLs (Tavily Extract or Exa livecrawl):
98
99```bash
100node {baseDir}/scripts/extract.mjs "https://example.com/article"
101node {baseDir}/scripts/extract.mjs "url1" "url2" "url3"
102node {baseDir}/scripts/extract.mjs "url" --engine exa
103node {baseDir}/scripts/extract.mjs "url" --json
104```
105
106## All Options / 全部参数
107
108| Option | Description | Engines |
109|--------|-------------|---------|
110| `--engine <name>` | Force engine: tavily\|exa\|serper\|serpapi | all |
111| `-n <count>` | Number of results (default: 5) | all |
112| `--deep` | Deep/advanced search mode | tavily, exa |
113| `--news` | News search mode | tavily, serper, serpapi |
114| `--days <n>` | Limit news to last N days | tavily |
115| `--include-domains <d,...>` | Only search these domains | all (native: tavily, exa) |
116| `--exclude-domains <d,...>` | Exclude these domains | all (native: tavily, exa) |
117| `--time-range <range>` | day\|week\|month\|year | all |
118| `--from <YYYY-MM-DD>` | Results after this date | all |
119| `--to <YYYY-MM-DD>` | Results before this date | all |
120| `--search-engine <name>` | SerpAPI sub-engine: google\|bing\|baidu\|yandex\|duckduckgo | serpapi |
121| `--country <code>` | Country code (us, cn, de...) | serper, serpapi |
122| `--lang <code>` | Language code (en, zh, de...) | serper, serpapi |
123| `--json` | Raw JSON output | all |
124
125## Setup / 配置
126
127Add API keys to your environment (e.g., `~/.openclaw/.env`):
128
129```bash
130# Configure at least one (recommended: Tavily)
131TAVILY_API_KEY=tvly-xxxxx # https://tavily.com (1000 free/month)
132EXA_API_KEY=exa-xxxxx # https://exa.ai ($10 free credit)
133SERPER_API_KEY=xxxxx # https://serper.dev (100 free/month)
134SERPAPI_API_KEY=xxxxx # https://serpapi.com (250 free/month)
135```
136
137## Notes / 说明
138
139- At least one API key must be configured
140- Domain filtering via `--include-domains`/`--exclude-domains` works natively on Tavily and Exa; on Serper/SerpAPI it's implemented via `site:` query operators
141- `--deep` mode uses more API credits (Tavily: 2x, Exa: varies)
142- Extract only works with Tavily and Exa
143- All output is Markdown-formatted for AI agent consumption; use `--json` for programmatic access