What the Perplexity Search API does
The Perplexity Search API, launched in September 2025, gives developers the raw search layer behind Perplexity: you send a query and get back ranked web results (title, URL, snippet, publication and last-updated dates) instead of a written answer. Perplexity says the results come from its own index of hundreds of billions of webpages, updated continuously. You decide what to do with the results, which makes it a building block for agents and retrieval-augmented generation (RAG) rather than a chatbot.
One request can carry up to five queries and still bills as a single request. Results can be filtered by domain (up to 20), language (up to 20 language codes), country, publication date range, last-updated date range and recency, and you can ask for between 1 and 20 results. Official SDKs exist for Python (perplexityai) and TypeScript (@perplexity-ai/perplexity_ai), and Perplexity lists integrations with n8n, Haystack, Mastra and Composio.
This is not the Sonar API. Perplexity ended Sonar Chat Completions on September 27, 2026 and now points developers who want a cited, written answer to its Agent API, which can call web search as a tool.
