# Perplexity Research

> Web research via Perplexity Sonar API -- search, fact-check, analyze trends

- Skill: `qwwiwi/perplexity-research-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add qwwiwi/perplexity-research-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/qwwiwi/perplexity-research-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: qwwiwi (https://skillmd.com/u/qwwiwi)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/qwwiwi/perplexity-research-2

---


# Perplexity Research -- Web Search

Search the web, fact-check claims, analyze trends, and find best practices using the Perplexity Sonar API.

## Usage

When the user asks to research a topic, fact-check, or find current information:

1. Get API key from `~/.claude-lab/shared/secrets/perplexity.env`
2. Query Perplexity Sonar API
3. Return structured results with sources

## API Key

- Paid: perplexity.ai (API access required)
- Store key in: `~/.claude-lab/shared/secrets/perplexity.env`

## Example

```bash
PPLX_KEY=$(cat ~/.claude-lab/shared/secrets/perplexity.env)
curl -X POST "https://api.perplexity.ai/chat/completions" \
  -H "Authorization: Bearer $PPLX_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sonar",
    "messages": [
      {"role": "user", "content": "What are the best practices for Claude Code agent architecture in 2026?"}
    ]
  }'
```

## When to Use

- Current events, news, trends
- Best practices and recommendations
- Fact-checking claims
- Competitor analysis
- Technology comparisons
- Market research

