Ai
Perplexity logo

Perplexity API

perplexity.ai

AI answer engine. Returns the AI answer with citations and web sources.

Actions
1
Category
Ai
Login
Not required
Output
JSON

Call the Perplexity API

Submit a task, then poll the job until it settles. This example runs perplexity.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "perplexity",
    "params": {
      "query": "What is the capital of France?"
    }
  }'

1 action on perplexity.ai

Read

  • Perplexity Ask

    perplexityread2 credits / call

    Ask Perplexity any question and get its AI-generated answer with rich citations (title, snippet, domain, thumbnail), web sources, related queries, and — when present — media and shopping results. Anonymous, no login; set country (2-letter ISO) for geolocated results — works across all regions (us/gb/de/fr/in). Typical response ~2-15s.

    query
    string · required
    focus
    string
    country
    string

Perplexity API questions

Is there an API for Perplexity?
Perplexity does not offer a public data API for this, but Anakin Wire provides 1 maintained endpoint for perplexity.ai. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Perplexity data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when perplexity.ai changes its markup, Anakin updates the action.
Do I need a Perplexity account?
No. Every Perplexity action listed here runs anonymously — no account and no credentials required.
What does the Perplexity API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Ai APIs

All Ai sites