
by Perplexity
The Perplexity Search API returns real-time, ranked web results as JSON, with page text extracted into each result. It is for developers who want raw search results to feed their own models, agents or pipelines.
APIUsage-based
Step 1: Create a Perplexity API account and generate an API key in the API Console.
Step 2: Install the SDK with pip install perplexityai or npm install @perplexity-ai/perplexity_ai.
Step 3: Set the PERPLEXITY_API_KEY environment variable.
Step 4: Call client.search.create with a query and max_results.
Step 5: Add domain, language, date or region filters as needed, and pass the results to your own model.
The max_results setting accepts values from 1 to 20 and defaults to 10.
No. It returns ranked results with extracted page text and no generated answer. For cited answers, Perplexity recommends its Agent API.
Yes. Perplexity offers an interactive Playground where you can try Search with no API key.
Yes. Perplexity provides an API MCP server for Claude Code, Cursor, VS Code and other MCP clients.
Perplexity ComputerCloud AI agent for research, analysis, file creation, coding, and multi-step work.
Perplexity Hybrid ComputeHybrid AI mode that keeps private-file work on a Mac while using cloud models for research and reasoning.
Perplexity PagesAI research and publishing workflow for gathering web sources and turning synthesized information into structured shareable pages
ExaExa is a search API for AI agents that returns web data, page contents and structured research results. It offers search, contents, agent and monitor endpoints.