All APIs
Searchactive

Perplexity Search API: key, pricing, and benchmark

Perplexity Search passed every retrieval attempt and returned complete date metadata in this test. It fits agents that need raw ranked results and filtering. New-project billing setup is separate from our historical run on an existing organization.

Last checked Oct 27, 2026 7 primary sources
Payment setupCard required for a new API group
Signup pathEmail verification; our address recovered an existing organization
API accessA dedicated benchmark key was created manually

API limits and source records

Base URL, authentication, pricing, SDKs, rate limits, and checked documentation.

API basics
Base URL
https://api.perplexity.ai/search
Authentication
Bearer API key
Free tier
No general Search API free tier verified
Credit card
Card required for a new API group
Rate limit
50 query units per second with a 50-unit burst; each query in an array consumes a unit
Testing
An interactive Search playground is available without an API key; API calls require an account and key
2 official SDKs
7 checked sources
Pricing, status, and alternatives

Can a coding agent use Perplexity Search? Yes.

Give the agent a server-side API key and use the official SDK or REST endpoint. The API returns raw results rather than a generated answer, which keeps citation selection in the agent loop.

Reliable retrieval; paid account setup
Review fit, workflows, and caveats

Good fit

  • Agents that need ranked sources instead of generated answers
  • Research workflows that use date, domain, language, or region filters
  • Teams already using Perplexity's API platform

Check before shipping

  • Documented new-project setup includes a payment method
  • Current MCP, CLI and Fast Search modes were not exercised in the August retrieval run
  • Observed cost was not isolated from the recovered account

Common workflows

  • Ground coding agents with current sources
  • Retrieve ranked web results
  • Filter results by domain, language, region, or date
  • Extract page content into snippets
Recommended setupOfficial TypeScript SDK
Node.js / TypeScriptnpm install @perplexity-ai/perplexity_ai

Set PERPLEXITY_API_KEY in the agent's environment; never place the key in generated source.

Pythonpip install perplexityai

The official client reads PERPLEXITY_API_KEY automatically.

Direct RESTPOST https://api.perplexity.ai/search

Send the key as Authorization: Bearer and normalize title, URL, snippet, and date fields.

Open official setup documentation

See something inaccurate?

Email faizank@docsalot.dev with the API name and an official source link.