Learning resourcesReviewed · Perplexity

Perplexity Search API Overview

Perplexity's Search API Overview is a guide for developers adding web search to apps and AI agents, but the API returns ranked sources rather than a written answer. It explains Python, TypeScript and HTTP access, search filters, batching, pricing and how to pass extracted snippets to your own model.

Researched 14 Nov 2026

In short.

Perplexity's Search API Overview is a developer guide to retrieving web sources for apps and AI agents, but the API does not write answers or return full pages. It documents structured results, search filters, batches of up to five queries and integration options. Listed prices are $5 per 1,000 successful web requests and $1 per 1,000 successful Fast Search requests, with no Search API token charges. Search quality, latency and reliability were not tested; content-reuse rights are not established by the page.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at [https://docs.perplexity.ai/docs/search/overview.md], supplied as selected-page.txt. It includes the examples, controls, pricing, limitations and descriptions of related interfaces. Linked documentation, the documentation index, SDK packages, service terms and the Playground are excluded. No code, API request or integration was executed; operational behavior and comparative performance remain untested.

The overview

Identity

This is Perplexity's Search API Overview at [https://docs.perplexity.ai/docs/search/overview.md]. It explains the hosted Search API, whose endpoint is POST [https://api.perplexity.ai/search], and how developers can use its structured results in their own software.

The resource is documentation rather than a downloadable model or application. It includes Python, TypeScript and cURL examples, response fields, request controls, billing details and guidance on choosing between Search API and Agent API.

Assessment

The guide is useful when you want control over which sources your application keeps and which passages reach a model. It gives enough detail to understand a basic integration, including handling empty snippets and duplicate URLs.

Its practical boundary is retrieval: your application must handle the results and arrange any answer generation separately. The page supplies no comparative benchmarks or measured evidence of relevance, latency or reliability.

Users

The main audience is developers building search features, research applications or AI agents that need web sources. Beginners get short client examples; experienced developers get request limits, billing rules and integration choices.

People who want an immediately written answer with citations are directed to Agent API. The linked Search Playground offers a way to explore search without an API key, according to the overview.

Capabilities

Requests accept one query or up to five related queries processed independently. Search types are web, fast and people. The documented default is 10 results; web search allows 1 to 20, while people search allows up to 50.

Controls include up to 20 domain filters in either inclusion or exclusion mode, up to 20 language codes, country relevance, recency windows and publication or update date windows. Date-filter inputs use MM/DD/YYYY.

Each result contains a title, URL, query-relevant snippet, publication date and last-updated date. Snippets may be empty and dates may be null. The response also includes a request ID and a server_time field that may be null.

Using it

Requirements

API access uses a Perplexity API key. The examples use either the Python package perplexityai, imported as perplexity, the TypeScript package @perplexity-ai/perplexity_ai, or an HTTP client such as cURL.

A model is needed separately if your application should turn sources into a generated answer. The overview does not specify minimum Python or Node.js versions, account eligibility, key-creation steps or deployment requirements.

Mechanism

Your code submits queries and filters to the search endpoint and receives ranked results as JSON. The snippet is extracted text relevant to the query, rather than a generated answer or the complete source page.

For a multi-query request, independently processed queries feed one results list. The examples remove duplicate URLs and discard blank snippets before assembling context for a model. Keeping the URLs allows the downstream application to cite sources.

The overview does not explain the ranking algorithm, index coverage or cache-refresh schedule.

Setup

For Python, the documented installation command is pip install perplexityai. For TypeScript, it is npm install @perplexity-ai/perplexity_ai. Set PERPLEXITY_API_KEY in the environment; both client examples use a default client that reads that variable.

Call client.search.create with query and optionally max_results. Direct HTTP requests use a Bearer authorization header and a JSON body. The page also points to CLI, MCP and agent SDK integrations, but their detailed setup is outside this overview.

Example

The basic example searches for renewable energy technologies with max_results set to 10, then prints each result's title and URL. Perplexity shows four results from a recorded response, including one with an empty snippet.

A second example batches queries about US renewable energy tax credits and state renewable portfolio standards. It checks the five-query limit, trims snippets, drops blank text, removes duplicate URLs and builds source context. This illustrates preparing search output for an agent; it does not demonstrate a completed answer. Nothing was executed.

Assessment & evidence

Limitations

POST /search accepts queries, not URLs. It provides neither full-page text nor a parameter for forcing a live fetch or controlling cache age. An empty snippet leaves no extracted passage for a model to use.

Publication dates, update dates and server_time may be missing. Multiple queries can produce duplicate URLs. Agent API fields such as model, effort, instructions and tools are not Search API request fields.

The page does not establish exhaustive coverage, factual accuracy, ranking quality, response-time guarantees or uptime. Those properties remain unassessed.

Reasoning

The documented separation between retrieval and generation makes this approach suitable when you want your code to choose sources before a model writes an answer. That suitability follows from the API's output and controls; it is not a measured performance finding.

Batching can reduce billed requests for related searches because up to five queries share one billing unit. It does not reduce their rate-limit usage. Filters and date fields help narrow sources, but do not establish that a snippet is complete, correct or current.

Alternatives

The overview recommends Agent API with web_search for a finished answer with citations, and also for search inside an agent already running on Agent API. Fast Search is presented as a lower-cost, lower-latency search option; no comparative measurements are supplied.

For URLs you already have, it points to CLI content snippets and Search SDK content.snippets, which return query-relevant passages. It describes Agent API fetch_url as a tool used within a hosted agent run, rather than a standalone URL-fetch endpoint.

For integration convenience, the page points to an MCP server, CLI and Search SDK. The linked documentation and its additional requirements are outside the selected page.

Evidence

The evidence is the complete Perplexity Search API Overview at [https://docs.perplexity.ai/docs/search/overview.md]. It contains provider-authored explanations, request examples and a response presented as recorded by Perplexity.

The displayed response illustrates empty snippets and nullable metadata. It does not establish general search quality or production reliability. No API calls, package installations or examples were executed, and no independent test results are available.

Access & freshness

Costs

The overview lists web search at $5 per 1,000 successful requests and Fast Search at $1 per 1,000 successful requests. Billing is per successful POST request, with no token charges. A request containing five queries is billed once; invalid, rate-limited and failed requests are not billed.

Rate limits count queries rather than requests: the stated allowance is 50 query units per second across every usage tier. A five-query request consumes five units.

People Search pricing and any separate model, Agent API, infrastructure or tax costs are not established by this page. The listed Search API prices alone do not establish the total cost of an answer-generating application.

Rights

The overview does not state a licence or redistribution grant for its documentation, example code or returned third-party text. Access to search results does not establish permission to republish their contents.

Service terms, privacy commitments and query-retention rules are not provided here. Applicable service terms and original-source permissions would need to establish those rights and conditions.

Freshness

The page was captured on 14 November 2026. Its publication date and the SDK versions used in its examples are not stated. Prices, limits and integration descriptions reflect that captured text; subsequent changes are unknown.

For search-result freshness, the API offers recency and date filters plus publication and update metadata. These do not provide control over cache age, and null dates limit what an application can infer about an individual result.

Actions

Start with representative queries in the linked Search Playground at [https://console.perplexity.ai/project/playground/search], which the overview says requires no API key. Examine whether the returned snippets contain enough information for your intended task.

For an integration, enforce the five-query limit, remove duplicate URLs, handle blank snippets and null dates, and retain source URLs for citations. Compare web and fast search on your own queries before choosing based on cost or speed.

If you need complete page reading or finished answers, use the overview's alternative paths to identify the appropriate interface. Confirm current pricing and applicable content-use terms before committing to a deployment.

Evidence for this report

selected-page.txtselected · checked 2026-11-14