Documentation Index

Fetch the complete documentation index at: https://docs.perplexity.ai/llms.txt

Use this file to discover all available pages before exploring further.

Power your products with unparalleled real-time, web-wide research and Q&A capabilities.

Quickstart GuideGetting started is simple and fast—make your first API call within minutes.

Get Started Get Your API Key

Example Code

from perplexity import Perplexity

client = Perplexity()

search = client.search.create(
    query=[\
      "What is Comet Browser?",\
      "Perplexity AI",\
      "Perplexity Changelog"\
    ]
)

for result in search.results:
    print(f"{result.title}: {result.url}")

Available APIs

Agent API

Access third-party models with web search tools and presets.

Search API

Get raw, ranked web search results with advanced filtering and real-time data.

Embeddings API

Generate high-quality embeddings for semantic search and RAG pipelines.