web-search
Web search and URL fetching via Perplexity (default: sonar, optional: sonar-pro). Use when searching the web, looking up information, fetching URL content, or configuring web search settings. Covers web_search tool (Perplexity direct API) and web_fetch tool (HTML to markdown extraction).
Best use case
web-search is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Web search and URL fetching via Perplexity (default: sonar, optional: sonar-pro). Use when searching the web, looking up information, fetching URL content, or configuring web search settings. Covers web_search tool (Perplexity direct API) and web_fetch tool (HTML to markdown extraction).
Teams using web-search should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/perplexity-web-search/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How web-search Compares
| Feature / Agent | web-search | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Web search and URL fetching via Perplexity (default: sonar, optional: sonar-pro). Use when searching the web, looking up information, fetching URL content, or configuring web search settings. Covers web_search tool (Perplexity direct API) and web_fetch tool (HTML to markdown extraction).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
Best AI Agents for Marketing
A curated list of the best AI agents and skills for marketing teams focused on SEO, content systems, outreach, and campaign execution.
Best AI Skills for ChatGPT
Find the best AI skills to adapt into ChatGPT workflows for research, writing, summarization, planning, and repeatable assistant tasks.
SKILL.md Source
# Web Search Skill
Web search via Perplexity (default: sonar) and URL content fetching. Sonar-pro is optional for deeper analysis.
## Credentials
This skill uses the Perplexity key configured in your OpenClaw setup. No shared or third-party keys are used.
If your environment is not already configured, set `PERPLEXITY_API_KEY` or configure the key in OpenClaw config.
**Recommended default (cost-effective):**
```json5
{
tools: {
web: {
search: {
provider: "perplexity",
perplexity: {
apiKey: "<your-perplexity-api-key>",
baseUrl: "https://api.perplexity.ai",
model: "sonar"
}
}
}
}
}
```
**Optional deep mode (higher quality, higher cost):**
```json5
{
tools: {
web: {
search: {
perplexity: {
model: "sonar-pro"
}
}
}
}
}
```
Use `sonar-pro` only when you explicitly need deeper analysis.
Get your API key at: https://www.perplexity.ai/settings/api
## Data Handling
- All search queries are sent to Perplexity's API (`https://api.perplexity.ai`)
- `web_fetch` fetched page contents are processed locally by OpenClaw (not sent to Perplexity)
- This instruction-only skill does not persist data by itself; query handling/retention is governed by OpenClaw + Perplexity policies
- Search queries are sent to Perplexity; do not include secrets or private data in queries
- Your own Perplexity API key and account terms apply
## web_search
Search the web. Returns AI-synthesized answers with citations.
Parameters:
- `query` (required) — search query
- `count` (1-10) — number of results
- `country` — 2-letter code: TR, US, DE, ALL
- `search_lang` — result language: tr, en, de, fr
- `freshness` — time filter: pd (day), pw (week), pm (month), py (year)
### Including Social Platform Results
For market research or user feedback queries, add social platform names naturally to the query. This makes Perplexity include results from Reddit, Twitter, Quora etc. alongside normal web results — no filtering, no restriction, just broader coverage.
```
web_search(query="cell tower finder app complaints features users want reddit twitter quora")
```
Perplexity will pull from both regular websites AND social platforms in one search.
For cases where you ONLY want a specific platform, use `site:` operator:
```
web_search(query="site:reddit.com best stud finder app")
```
Examples:
```
web_search(query="latest Flutter updates", freshness="pw")
web_search(query="İstanbul hava durumu", country="TR", search_lang="tr")
web_search(query="AI news", count=5, freshness="pd")
web_search(query="GLP-1 tracker app wish features complaints reddit twitter quora")
```
## web_fetch
Fetch URL content as markdown/text. No JS execution. Content is extracted locally.
Parameters:
- `url` (required) — HTTP/HTTPS URL
- `extractMode` — markdown (default) or text
- `maxChars` — truncation limit
## Perplexity Models (User Choice)
- `sonar` (default) — fast Q&A + web search, cost-effective
- `sonar-pro` — multi-step reasoning + web search (use when deeper analysis is needed)
- `sonar-reasoning-pro` — deep chain-of-thought research (expensive, use sparingly)
Set the model in config based on your budget/quality preference.Related Skills
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
Twitter Command Center (Search + Post)
Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the user completes OAuth in the browser. Use when the user asks about Twitter/X data, social listening, or posting without sharing account passwords.
openclaw-search
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.
search-for-service
Search and browse the x402 bazaar marketplace for paid API services. Use when you or the user want to find available services, see what's available, discover APIs, or need an external service to accomplish a task. Also use as a fallback when no other skill clearly matches — search the bazaar to see if a paid service exists. Covers "what can I do?", "find me an API for...", "what services are available?", "search for...", "browse the bazaar".
search-cluster
Aggregated search aggregator using Google CSE, GNews RSS, Wikipedia, Reddit, and Scrapling.
alphashop-sel-product-search
商品搜索API SKILL:通过关键词搜索发现Amazon/TikTok平台商品。 支持价格、销量、评分、上架时间等多维度筛选条件。 通过 AlphaShop REST API 调用遨虾AI选品系统的商品搜索服务。
1688-product-search
1688商品搜索SKILL:提供完整的1688商品搜索能力,包括类目查询、关键词搜索、图片搜索、商品详情、相关性商品、拉取货盘底池等9个核心接口。 支持多语言搜索和商品推荐,使用1688开放平台官方API,统一鉴权,Token全局缓存共享。
exa-web-search-free
Free AI search via Exa MCP. Web search for news/info, code search for docs/examples from GitHub/StackOverflow, company research for business intel. No API key needed.
duckduckgo-search
Performs web searches using DuckDuckGo to retrieve real-time information from the internet. Use when the user needs to search for current events, documentation, tutorials, or any information that requires web search capabilities.
youtube-search
YouTube Search API via AIsa unified endpoint. Search YouTube videos, channels, and playlists with a single AIsa API key — no Google API key or OAuth required. Use this skill when users want to search YouTube content. For other AIsa capabilities (LLM, financial data, Twitter, web search), see the aisa-core skill.
autoresearch-pro
Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).