Overview
POST /search runs your query against Perplexity’s web index and returns ranked pages. For each page you get its title and URL, text extracted from the page that is relevant to your query (snippet), and dates. The API does not call a model and does not write an answer. Your code decides what to keep and what to pass to a model. If you have not made a request yet, start with the quickstart.
What a result contains
The response also has a request
id. Results are ordered best match first.
Because snippet is text extracted for your query, the same page can return different text for different queries. POST /search takes queries, not URLs, and has no parameter to fetch a page live or control cache age. Use the date filters and the date and last_updated fields to select and check freshness.
Several queries in one request
Passquery as an array of up to five queries to search several angles of a topic in one request. max_results caps the combined results list across all queries, not each query, so some queries can contribute no results. Raise max_results when you send several queries, and dedupe by url before you pass results to a model.
A request with several queries is billed once and uses one rate-limit unit per query, so the three-query request below uses three units.
Response
Response
Search types
search_type selects the index. All three return the same response format.
Request controls
The API reference documents the request parameters. Agent API fields such as
model, instructions, and tools are not part of a search request.
Errors
A request that breaks a limit in the table returns HTTP 400 with anerror object, and an invalid API key returns HTTP 401 with "type": "invalid_api_key". This is the response to a request with six queries:
Price and rate limit
Search is billed per successful request, with no token charges, and Fast Search has a lower per-request price. See Search API pricing. The rate limit is 50 query units per second at every usage tier; see Search API rate limits.Search API or Agent API
Other ways to call Search
- Perplexity API MCP server: the
perplexity_searchtool for Claude Code, Cursor, VS Code, and other MCP clients. - Perplexity CLI:
pplx search webreturns the same JSON from a shell. - Search SDK: a Python library for composing multi-step retrieval in code.
- Interactive Playground: try queries in the browser.
- Search Evals: an eval framework for comparing the Search API with other web search APIs.
fetch_url tool.
Next Steps
Filters
Restrict results by date, language, and domain.
Search Types
Fast Search for lower latency, and People Search for professional profiles.
Best Practices
Write queries, fan out with several queries, and handle rate limits.
API Reference
Request parameters, response schema, and errors.