pplx-search-sdk
Skill by perplexityai
Installs and uses pplx-srch-sdk, a Python SDK for the Perplexity Search API. Use it to run web searches, fan out many queries concurrently, and get query-relevant excerpts from URLs in scripts or notebooks.
Install pplx-search-sdk
Built from the published package, never by AI.
git clone --depth 1 https://github.com/perplexityai/api-platform-developers /tmp/api-platform-developers && mkdir -p ~/.claude/skills && cp -r /tmp/api-platform-developers/skills/pplx-search-sdk ~/.claude/skills/pplx-search-sdkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/perplexityai/api-platform-developers /tmp/api-platform-developers && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/api-platform-developers/skills/pplx-search-sdk ~/.gemini/antigravity-cli/skills/pplx-search-sdkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The pplx-srch-sdk package is a public Python SDK for the Perplexity Search API. It lets code run live web searches with search.web, run many independent queries concurrently with search.web_many, and pull query-relevant excerpts from known URLs with content.snippets. A synchronous facade covers most work, and AsyncPplxClient offers the same surface for async code.
Search results come back as typed records such as WebHit. API failures raise typed exceptions that derive from APIError, and errors inside a fan-out batch are reported per query instead of stopping the run. The skill also lists common pitfalls, such as checking the error field on snippet results before using their text. It suits developers, data analysts and researchers who want web search inside Python scripts or notebooks.
Written from the project's SKILL.md and checked against it.
What it can do
- search.webRuns a live web search from Python and returns a list of WebHit records.
- search.web_manyRuns one independent search per query with bounded concurrency, returning one result per query.
- content.snippetsReturns query-relevant text excerpts for a list of specific URLs, one result per URL.
- AsyncPplxClientProvides the same search surface for async code, for custom concurrency or long-lived clients.
- Typed error handlingRaises typed exceptions such as RateLimitError and AuthenticationError derived from APIError.
- Fan-out utilitiesIncludes pplx_srch_sdk.utils helpers for partitioning, flattening, deduplication and JSONL artifacts.
What you need
- Python 3.12 or newer
- Linux (x86_64 or aarch64) or macOS
- Perplexity API key
- PERPLEXITY_API_KEY environment variable
Try asking
- Search the web for recent Rust async runtime news and list the top 5 hits.
- Run parallel searches on three national parks and count hits per query.
- Get query-relevant excerpts from these URLs about Python 3.13 changes.
Good to know
- The SDK never retries or throttles, so each call sends one billable request.
- Client-side timeouts are about 10 seconds for search and 30 seconds for snippets, and are not configurable.
- Date filters use MM/DD/YYYY strings and cannot be combined with recency_filter.
- There is no async version of web_many; use the fanout utility with the async client instead.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pplx-search-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pplx-search-sdk
All alternatives →Box lets an AI assistant search, read, upload, download, move, rename, delete, restore and share Box content. It also manages comments and metadata. It suits people who work with files stored in Box.
Guides AI assistants in using n8n-mcp MCP tools to search nodes, validate configs, browse templates and manage n8n workflows. Aimed at people building n8n workflows through MCP.
Manages citations across the research and writing process. It covers searching Google Scholar and PubMed, converting DOIs, PMIDs and arXiv IDs to BibTeX, and validating bibliographies. It is for researchers building bibliographies for manuscripts or theses.
Exa Search is a skill that guides an AI assistant to use the Exa MCP server for neural search. It covers web pages, code, companies, and people, and is for users who need current information or research during development tasks.
Runs recent community and social trend research over the last 30 days. It suits teams who need to know what people are saying now about a topic or launch.
seo-flow adds the FLOW SEO framework to Claude SEO. It surfaces stage-specific AI prompts from the FLOW knowledge base across the Find, Leverage, Optimize and Win stages. It is for SEO practitioners who want evidence-led prompts.
Compare with box, n8n-mcp-tools-expert or citation-management
pplx-search-sdk: common questions
Does importing pplx_srch_sdk require an API key?
No. Import succeeds without a key, but the first call raises AuthenticationError if PERPLEXITY_API_KEY is not set.
Does search.web return a list or a wrapped response?
It returns a bare list of WebHit objects, with no results wrapper, so hits can be indexed directly.
Why check the error field on snippet results?
A successful content.snippets call can still contain per-URL failures, which set error and leave text unset.
How do I install pplx-search-sdk?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pplx-search-sdk free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is pplx-search-sdk safe to use?
It scores 65 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pplx-search-sdk?
Similar skills: box, n8n-mcp-tools-expert, citation-management, exa-search.
