What you get
The Search API is one endpoint,POST https://api.perplexity.ai/search. You send a query and get back ranked web results as structured data for your own code to filter, store, or hand to a model. There is no generated answer and no token billing.
Each result has:
The response also carries a request
id. A server_time field is present and may be null.
Response
Controls
Full parameter reference: POST /search. Agent API fields such as
model, preset, instructions, and tools are not part of a search request.
Price and rate limit
Details: Search API pricing and Search API rate limits.
Search API or Agent API
Ways to call it
- Quickstart with the Perplexity Python library, the TypeScript SDK, and cURL
- Perplexity CLI for the same ranked results as JSON from a shell
- As a function tool in the OpenAI, Anthropic, and Gemini SDKs
- Search SDK, a Python library for composing multi-step retrieval in code
- Interactive Playground, no API key required