Skip to main content
POST
Search

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for POST /v3/search.

Perplexity's Search API shape (query, max_results, search_domain_filter, country) plus model, the Eden AI provider that runs the search. Any other field (search_recency_filter, max_tokens_per_page, depth, ...) is refused with a 422 naming it (extra="forbid"): the facade maps only these fields onto each provider, so an unmapped one is never dropped without an error.

query
string
required

The search query. At most 128 characters on deepseek.

Minimum string length: 1
model
string | null

Search provider, e.g. tavily. Optional when the provider is in the path (POST /v3/search/{provider}). List the ids with GET /v3/search/models.

max_results
integer
default:10

Most results to return (1-20). A provider may return fewer; on zai the results are cut to this number after the search.

Required range: 1 <= x <= 20
search_domain_filter
string[] | null

Domains to restrict results to, or, with a leading -, domains to exclude (-pinterest.com). Allow and deny entries cannot be mixed. Up to 20.

Required array length: 1 - 20 elements
country
string | null

ISO 3166-1 alpha-2 country code to bias results toward, e.g. US.

Pattern: ^[A-Za-z]{2}$

Response

200 - application/json

Successful Response

Search results, in Perplexity's response shape. provider and cost are Eden extensions.

id
string
required

Eden AI request id; quote it when reporting a problem.

results
SearchResult · object[]
required
provider
string
required

Eden extension: provider that ran the search.

cost
number
required

Eden extension: cost in USD.