M4vF14

Perplexity Search Skill

知識管理v1.0.0
作者:M4vF14更新於 2026-05-11perplexity-search-skill@clawhub_m4vf14/perplexity-search-skill
資訊檢索#Market Research#Search The Web#Current Information

據 AlphaMoat 統計,截至 2026-09,Perplexity Search Skill 累計下載 3,846 次、獲 2 個星標,在全部 5,078 個 AI 技能中排名第 2,722 位,在「知識管理」分類(442 個)中排名第 249 位。

累計安裝
124
累計下載
3846
星標
2
全站排名
#2,722
全站前 54% · 「知識管理」前 57%
平台累計安裝累計下載星標評論
ClawHub ↗12438462-
SkillHub ↗12337452—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它可按關鍵詞執行搜尋、限制結果數量、按近期時間範圍篩選,並輸出結構化結果或 JSON。執行需要配置 API key;查詢詞會傳送到 Perplexity,可能產生 API 費用,且結果中的遠端連結需檢查後再開啟。

資料釋出於 2026-10-29

可以用來做什麼

  • 搜尋當前資訊、新聞或市場主題
  • 按時間範圍篩選搜尋結果
  • 獲取結構化搜尋結果供後續整理

什麼時候用

  • 查詢內容允許傳送給 Perplexity,且已為 API key 和相關使用費用做好管理時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

用不含機密資訊的公開主題查詢近期網頁結果,並按時間篩選。
概述執行搜尋前需要確認的 API key、費用和查詢隱私事項。

月度資料趨勢

累計下載3846
2419318639522026-03 · 累計下載 25252026-05 · 累計下載 30712026-06 · 累計下載 32492026-07 · 累計下載 35592026-08 · 累計下載 37212026-09 · 累計下載 384626-0326-09
星標2
1222026-03 · 星標 12026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093846—2
2026-083721+4.6%2
2026-073559+9.5%2
2026-063249+5.8%2
2026-053071—2
2026-032525—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.9 KB · ClawHub v1.0.0
---
name: perplexity-search
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.
metadata:
  openclaw:
    emoji: 🔍
    requires:
      env:
        - PERPLEXITY_API_KEY
    primaryEnv: PERPLEXITY_API_KEY
展開全部(共 130 行)
---

# Perplexity Search

Search the web using Perplexity's Search API for ranked, real-time results.

## Quick Start

Basic search:

```bash
python3 {baseDir}/scripts/search.py "your search query"
```

With options:

```bash
# 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`:

```json
{
  "skills": {
    "perplexity-search": {
      "env": {
        "PERPLEXITY_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

**Option 2: Environment variable**

```bash
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`, or `year`
- `--json` - Output raw JSON instead of formatted results

## Response Format

The API returns:

```json
{
  "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:**
```bash
python3 {baseDir}/scripts/search.py "golf coaching Instagram trends" --count 10
```

**Recent News:**
```bash
python3 {baseDir}/scripts/search.py "AI regulation updates" --recency week
```

**Competitive Analysis:**
```bash
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

「知識管理」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。