Perplexity Search API

Real-time web search with filtering by domain, language, date, and more. Returns search results, not LLM responses; no file uploads.

PerplexityResearch & SearchProprietary Endpoint

About Perplexity Search

Real-time web search with filtering by domain, language, date, and more. Returns search results, not LLM responses; no file uploads.

web searchno llm

Perplexity Search specs

Model ID
perplexity-search
Provider
Perplexity
Category
Research & Search
Input
text
Output
text
Endpoints
POST /v1/search

Perplexity Search API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Search Request
per request
$0.0060
Compare on the full pricing page

How to call the Perplexity Search API

Perplexity Search answers live queries through POST /v1/search. Send the search query with the model id perplexity-search and read structured results from the response. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/search \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "perplexity-search",
    "query": "latest developments in solid-state batteries"
  }'
Python
import requests

response = requests.post(
    "https://api.empiriolabs.ai/v1/search",
    headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
    json={
        "model": "perplexity-search",
        "query": "latest developments in solid-state batteries",
    },
)
print(response.json())
Full Perplexity Search API reference

Perplexity Search API parameters

Request parameters supported by the Perplexity Search API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
querystring--The natural-language search query.
max_resultsnumber101 to 20Maximum number of results to return.
max_tokensnumber10000001 to 1000000Maximum tokens extracted across all results.
max_tokens_per_pagenumber40961 to 16384Max tokens extracted per individual result page.
multi_query_modebooleanfalse-Let Perplexity expand the query into multiple parallel searches for broader coverage.
search_domain_filterstring--Comma-separated domains. Prefix with '-' to exclude. Max 20.
search_language_filterstring--Comma-separated ISO 639-1 codes (2 letters). Max 10.
search_recency_filterenumnonenone, hour, day, week, month, yearRelative time filter (hour | day | week | month | year).
search_after_date_filterstring--Use YYYY-MM-DD. Only include sources after this date.
search_before_date_filterstring--Use YYYY-MM-DD. Only include sources before this date.
last_updated_after_filterstring--Use YYYY-MM-DD. Only include sources after this date.
last_updated_before_filterstring--Use YYYY-MM-DD. Only include sources before this date.
countrystring--Two-letter ISO 3166-1 code (US, GB, etc.) for biasing results to a country.
display_server_timebooleanfalse-Include the server-time timestamp in the response payload.

Good to know

Returns title/url/snippet only — no LLM-style answer. Up to 5 queries via newline-separated multi_query.

Perplexity Search API: common questions

How much does the Perplexity Search API cost?

On EmpirioLabs, Perplexity Search is billed pay as you go: Search Request $0.0060 per request. The live rate card on this page always matches what the API charges.

Which endpoint does Perplexity Search use?

Perplexity Search is served through POST /v1/search on api.empiriolabs.ai with standard bearer-token authentication.

Can I try Perplexity Search in the browser before integrating?

Yes. The EmpirioLabs playground runs Perplexity Search in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Perplexity Search API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.