Skip to content
Agents tracked: 302 Downloads (7d): 239M down 5.7% GitHub stars: 6.4M VS Code installs: 151M Releases (7d): 342 Agent status: 2 with issues Updated Oct 9, 2026

Perplexity API (Sonar / Search API) by Perplexity AI

Raw web search results API plus an Agent API that answers with live-web citations.

Web search APIs Official MCP server

Price
$5 / 1k requests
list price
Free tier
No
SDK downloads
368K
npm @perplexity-ai/perplexity_ai · PyPI perplexityai
Status
Up
0 incidents in 30 days

Pricing

Free tier—
Cheapest paid plan—
Usage priceSearch API $5.00 per 1K requests; Fast Search $1.00 per 1K; Agent API web_search tool $0.0025 per call + model tokens
Good to knowSonar Chat Completions support ended 2026-09-27; Perplexity says to migrate to the Agent API (sync Sonar requests are being re-routed to it). Search API bills per successful POST /search (up to 5 queries per request = 1 unit). No free tier stated on the pricing page.

From the official pricing page, checked Oct 9, 2026. Prices change: confirm before you buy.

Use it from an agent

MCP serverOfficial: @perplexity-ai/mcp-server
npmnpm install @perplexity-ai/perplexity_ai
PyPIpip install perplexityai
GitHubperplexityai/perplexity-py · 76 stars · last push Oct 7, 2026

Alternatives to Perplexity API (Sonar / Search API)

All web search apis

APIFreePrice SDK downloads / wkGitHub starsMCP
Serper
Fast, low-cost Google SERP API returning search, news, images, places and more as JSON.
2,500 free queries, no credit card $1 / 1k requests · free tier — — MCP (community)
Parallel
Agent-oriented web search, extract, deep-research task and monitoring APIs with citations.
$5 in free credits per month (plus up to $80... $5 / 1k requests · free tier 1.1M 28 MCP
Linkup
Web search API for AI agents with sourced answers, structured output, fetch and deep research.
$20 credit at signup (professional email),... $5 / 1k requests · free tier 167K 46 MCP
Brave Search API
Independent-index web search API (plus an Answers endpoint) for grounding agents.
$5 in free credits every month (credit card... $5 / 1k requests · free tier — 1,491 MCP
Exa
Neural web search API with page contents, answers and deep-research agent runs for LLMs.
$10 credits every month plus a $10... $7 / 1k requests · free tier 2.4M 234 MCP
Tavily
Web search, extract, crawl and research API that returns LLM-ready results for agents.
1,000 API credits/month, no credit card $8 / 1k requests · free tier 1.9M 1,423 MCP
Is Perplexity API (Sonar / Search API) right for you? Ask AgentGid →