Perplexity Scraper API for Answers & Citations

Scrape consumer Perplexity answers, citations and related questions as JSON. Collect source URLs and available rich cards for GEO research.

Perplexity answer comparing wireless earbuds, with citations and the sources panel open.

Response structure

The common response contains text, sources and timing. Depending on the answer, additional data can include search queries, follow-up questions, images, videos, places, hotels and shopping cards.

  • text, sources: the answer and its numbered source entries, including their URLs.
  • markdown, searchQueries: enable the matching payload.include flags to request these fields.
  • related_queries: suggested follow-up questions; these are separate from the searches in searchQueries.
  • shopping_cards, places, hotels, videos, images: include these in your analysis only when the response supplies them.
{
  "task": {
    "taskType": "PERPLEXITY"
  },
  "response": {
    "sources": [
      {
        "url": "https://www.rtings.com/headphones/reviews/best/wireless-earbuds",
        "label": "The 6 Best Wireless Earbuds of 2026 - RTINGS.com",
        "position": 1,
        "description": "The best wireless earbuds we've tested are the Sony WF-1000XM6. These buds offer top-tier ANC performance."
      },
      {
        "url": "https://www.businessinsider.com/guides/tech/best-earbuds",
        "label": "The best earbuds of 2026, tested by audio experts - Business Insider",
        "position": 2,
        "description": "The best wireless earbuds offer great audio quality in a compact design. These are our top picks from Sony, Bose, Technics, Anker, Apple, and JLab."
      },
      {
        "url": "https://theeditorial.news/tv-electronics/airpods-pro-3-vs-sony-wf-1000xm5-vs-bose-quietcomfort-ultra-anc-depth-measured-battery-life-test-mp40j2sy",
        "label": "AirPods Pro 3 vs Sony WF-1000XM5 vs Bose QuietComfort Ultra",
        "position": 3,
        "description": "Six wireless earbuds tested for ANC depth, battery life, and codec support. AirPods Pro 3, Sony WF-1000XM5, and Bose QuietComfort Ultra measured."
      },
      {
        "url": "https://www.nytimes.com/wirecutter/reviews/best-wireless-earbuds/",
        "label": "The 4 Best Wireless Bluetooth Earbuds of 2026 - The New York Times",
        "position": 4,
        "description": "The Soundcore Liberty 5 Pro is a versatile, comfortable pair of earbuds with good sound, fantastic noise cancellation, and great noise-reducing microphones."
      },
      {
        "url": "https://www.soundguys.com/best-wireless-earbuds-2-14313/",
        "label": "The best wireless earbuds of 2026: Lab-tested by experts",
        "position": 5,
        "description": "We tested hundreds of wireless earbuds to determine which is worth your money, including top picks for sound quality and working out."
      },
      {
        "url": "https://www.tomsguide.com/audio/earbuds/best-noise-canceling-earbuds",
        "label": "Best noise-canceling earbuds in 2026 - Tom's Guide",
        "position": 6,
        "description": "Silence the world around you with the best noise-cancelling earbuds recommended by our audio experts"
      },
      {
        "url": "https://www.wallpaper.com/tech/best-wireless-in-ear-headphones",
        "label": "The best wireless in-ear headphones, tested by experts",
        "position": 7,
        "description": "Our latest round up of the best wireless in-ear headphones includes products from Apple, Bang & Olufsen, Bose, JBL, Nothing, and Sony"
      },
      {
        "url": "https://www.reddit.com/r/SonyHeadphones/comments/1npfoif/wh_1000xm5_or_airpods_pro_3/",
        "label": "WH 1000XM5 or AirPods Pro 3 : r/SonyHeadphones - Reddit",
        "position": 8,
        "description": "WH 1000XM5 or AirPods Pro 3"
      },
      {
        "url": "https://www.pcguide.com/deals/sonys-wh-1000xm5-anc-headphones-are-back-to-their-best-price-at-amazon/",
        "label": "Sony's WH-1000XM5 ANC headphones are back to their ...",
        "position": 9,
        "description": "Sony's WH-1000XM range of headphones has been a long-standing favorite. And the XM5 models could be yours at this record low price."
      },
      {
        "url": "https://progressiveradionetwork.com/best-wireless-earbuds/",
        "label": "12 Best Wireless Earbuds (June 2026) Models Tested",
        "position": 10,
        "description": "Discover the best wireless earbuds with our expert reviews of 12 models. From premium ANC to budget picks, we tested Sony, Bose, Apple, and more for sound quality and comfort."
      }
    ],
    "text": "For commuting, I’d choose **Sony for strongest all-around isolation**, **Bose for maximum ANC comfort**, or **AirPods for Apple integration**.\n\n| Earbuds | Noise cancellation | Battery life* | Best for |\n|---|---|---:|---|\n| **Sony WF-1000XM5** | Excellent; measured 32 dB attenuation in key transit-noise frequencies | 8h / 24h case | Android and mixed devices |\n| **Bose QuietComfort Ultra** | Class-leading ANC, especially for buses and trains | 6h / 24h case | Long, noisy commutes |\n| **Apple AirPods Pro 3** | Very strong ANC, adaptive transparency | 6.5–8h / 24–30h case | iPhone users |\n\n\\*Approximate playback with ANC enabled; results vary by volume, codec, and features. Sony measured longest in one 2026 comparison, while Bose delivered the strongest ANC in expert testing; AirPods Pro 3 offers the smoothest iOS integration.[1][2][3]\n\n**My pick:** Sony WF-1000XM5 for the best balance of isolation and battery. Choose Bose if comfort and maximum noise reduction matter more than runtime.",
    "markdown": "For commuting, I’d choose **Sony for strongest all-around isolation**, **Bose for maximum ANC comfort**, or **AirPods for Apple integration**.\n\n| Earbuds | Noise cancellation | Battery life* | Best for |\n|---|---|---:|---|\n| **Sony WF-1000XM5** | Excellent; measured 32 dB attenuation in key transit-noise frequencies | 8h / 24h case | Android and mixed devices |\n| **Bose QuietComfort Ultra** | Class-leading ANC, especially for buses and trains | 6h / 24h case | Long, noisy commutes |\n| **Apple AirPods Pro 3** | Very strong ANC, adaptive transparency | 6.5–8h / 24–30h case | iPhone users |\n\n\\*Approximate playback with ANC enabled; results vary by volume, codec, and features. Sony measured longest in one 2026 comparison, while Bose delivered the strongest ANC in expert testing; AirPods Pro 3 offers the smoothest iOS integration.[1][2][3]\n\n**My pick:** Sony WF-1000XM5 for the best balance of isolation and battery. Choose Bose if comfort and maximum noise reduction matter more than runtime."
  }
}

Track brand mentions and citations in Perplexity

Inspect cited domains and the questions Perplexity explores around a topic. Use these observations to identify content gaps and then compare evidence against the answer with Source Influence.

How to collect Perplexity answers with the API

Store your dashboard API key in the server environment variable QUERYING_API_KEY, then run this request. The country code selects the collection market; it does not translate the question.

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "taskType": "PERPLEXITY",
  "payload": {
    "prompt": "best wireless earbuds for commuting",
    "country": "US"
  }
}'

Read the completed response

Replace TASK_ID with task.id from the submission. Poll at intervals while QUEUED or RUNNING; when COMPLETED, read the engine fields inside response. Handle FAILED as an error. Retrieve and store the result within 24 hours of completion, or receive it by webhook.

curl https://api.querying.ai/v1/async/task/TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

Cost and availability

Request cost by plan
Plan1 request1,000 requests
Basic≈ $0.00200≈ $2.00
Max≈ $0.00095≈ $0.95

Effective rates assume all included monthly credits are used.

Each completed task uses 1 credits. Failed tasks are not charged. Check supported regions and plan concurrency.

Limits when interpreting results

Media and shopping fields only exist when Perplexity returns those blocks. An empty optional array is not evidence that a brand never appears. Compare multiple prompts and collection times.

Full API documentation

Explore related capabilities