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.
使用 Perplexity 的搜索 API 搜索网络,获取排序后的实时结果。
基本搜索:
bash
python3 {baseDir}/scripts/search.py 你的搜索查询
带选项的搜索:
bash
脚本需要设置 PERPLEXITYAPIKEY 环境变量。
选项 1:在 OpenClaw 配置中设置(推荐)
添加到 ~/.openclaw/openclaw.json:
json
{
skills: {
perplexity-search: {
env: {
PERPLEXITYAPIKEY: 你的API密钥
}
}
}
}
选项 2:环境变量
bash
export PERPLEXITYAPIKEY=你的API密钥
从以下地址获取 API 密钥:https://perplexity.ai/account/api
API 返回:
json
{
results: [
{
title: 文章标题,
url: https://example.com/article,
snippet: 页面摘要...,
date: 2024-01-15,
last_updated: 2024-02-01
}
],
id: 搜索请求ID
}
市场调研:
bash
python3 {baseDir}/scripts/search.py 高尔夫教练 Instagram 趋势 --count 10
最新新闻:
bash
python3 {baseDir}/scripts/search.py AI监管更新 --recency week
竞争分析:
bash
python3 {baseDir}/scripts/search.py AI高尔夫训练应用 --count 10
Perplexity 搜索 API:每 1,000 次请求 $5
在以下地址跟踪使用情况:https://perplexity.ai/account/api
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 perplexity-search-skill-1776363024 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 perplexity-search-skill-1776363024 技能
skillhub install perplexity-search-skill-1776363024
文件大小: 9.48 KB | 发布时间: 2026-4-17 15:35