perplexity-search
Search the web using Perplexity's Search API for ranked, real-time web results with advanced filtering. Use when you need to search for current information, market research, trending topics, or when Brave Search is unavailable. Supports recency filtering (day/week/month/year) and returns structured results with titles, URLs, and snippets.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- perplexity-search
- metadata
- { "openclaw": { "emoji": "?", "requires": { "env": [ "PERPLEXITY_API_KEY" ] }, "primaryEnv": "PERPLEXITY_API_KEY" } }
- description
- Search the web using Perplexity's Search API for ranked, real-time web results with advanced filtering. Use when you need to search for current information, market research, trending topics, or when Brave Search is unavailable. Supports recency filtering (day/week/month/year) and returns structured results with titles, URLs, and snippets.
02 资源文件 7
- 参考文档_meta.json298 B
- 参考文档CHANGELOG.md700 B
- 参考文档PUBLISHING.md2.7 KB
- 参考文档README.md2.2 KB
- 脚本scripts/search.py4.2 KB
- 参考文档SECURITY_AUDIT.md3.4 KB
- 参考文档skill.json1.0 KB
03 SKILL.md 正文
Perplexity Search
Search the web using Perplexity's Search API for ranked, real-time results.
Quick Start
Basic search:
python3 {baseDir}/scripts/search.py "your search query"
With options:
# Get 10 results
python3 {baseDir}/scripts/search.py "AI trends 2024" --count 10
# Filter by recency
python3 {baseDir}/scripts/search.py "recent AI news" --recency week
# Get raw JSON output
python3 {baseDir}/scripts/search.py "market research" --json
API Key Setup
The script requires a PERPLEXITY_API_KEY environment variable.
Option 1: Set in OpenClaw config (recommended)
Add to ~/.openclaw/openclaw.json:
{
"skills": {
"perplexity-search": {
"env": {
"PERPLEXITY_API_KEY": "your-api-key-here"
}
}
}
}
Option 2: Environment variable
export PERPLEXITY_API_KEY="your-api-key-here"
Get your API key from: https://perplexity.ai/account/api
Parameters
query- Search query string (required)--count N- Number of results (1-10, default: 5)--recency FILTER- Recency filter:day,week,month, oryear--json- Output raw JSON instead of formatted results
Response Format
The API returns:
{
"results": [
{
"title": "Article title",
"url": "https://example.com/article",
"snippet": "Brief excerpt from the page...",
"date": "2024-01-15",
"last_updated": "2024-02-01"
}
],
"id": "search-request-id"
}
Use Cases
Market Research:
python3 {baseDir}/scripts/search.py "golf coaching Instagram trends" --count 10
Recent News:
python3 {baseDir}/scripts/search.py "AI regulation updates" --recency week
Competitive Analysis:
python3 {baseDir}/scripts/search.py "AI golf training apps" --count 10
Pricing
Perplexity Search API: $5 per 1,000 requests
Track your usage at: https://perplexity.ai/account/api
Security
- API key loaded from environment only - never hardcoded
- Output sanitization prevents terminal injection
- Error messages don't expose sensitive information
- 30-second timeout prevents hanging requests
- Input validation on all parameters
Notes
- Results are ranked by relevance
- Includes real-time web data
- Supports filtering by recency
- Returns structured JSON or formatted text
- Rate limits apply based on your Perplexity plan
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.