Perplexity AI API
Perplexity AI API — free tier with API key
Perplexity AI API exposes a free-tier JSON API. Register for an API key if required; we verified a public or demo endpoint.
GET https://api.perplexity.ai/search
{
"error": {
"message": "Invalid API key provided. Ensure your API key is correct and active.",
"type": "invalid_api_key",
"code": 401
}
}curl "https://api.perplexity.ai/search"const res = await fetch("https://api.perplexity.ai/search");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.perplexity.ai/search")
print(res.json())THIS API IS DEAD — NOTHING TO RUN
/searchPROBEDPerplexity AI API — free tier with API key
/search?limit=5Paginated variant with limit parameter.
/v1/modelsModels — documented GET route.
/v1/async/sonarSonar — documented GET route.
/v1/async/sonar/Sonar — documented GET route.
/v1/analytics/computer/usageUsage — documented GET route.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
Perplexity AI API: common questions
Is Perplexity AI API free to use?
Yes — Perplexity AI API is a free science & space API. Free tier: Free tier — API key required. Whether the free tier allows commercial use is unclear — check the provider docs.
Does Perplexity AI API need an API key?
Yes — Perplexity AI API needs a free API key, which you pass on each request. Rate limits: Unpublished.
Can I call Perplexity AI API from the browser?
Yes — Perplexity AI API returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is Perplexity AI API up right now?
As of our last scheduled check, Perplexity AI API is dead. We re-probe it every sweep — the status badge and uptime chart above always show the latest.