Skip to main content
GET
cURL
Perplexity endpoints require a paid plan (Starter or higher). Without one, this endpoint returns 402 plan_upgrade_required. See Pricing for details.

Authorizations

Authorization
string
header
required

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

Query Parameters

prompt
string
required

The prompt sent to Perplexity

Required string length: 1 - 8000
geo
string

Country to use when submitting the prompt

Required string length: 2 - 64

Response

Structured Perplexity response.

provider
enum<string>
required
Available options:
perplexity
request_id
string
required
prompt
string
required
model
string | null
required
answer_markdown
string | null
required
sources
object[]
required