Get the same structured response a user sees in Perplexity AI — including inline citations, source cards, related questions, and follow-up queries — as clean JSON.
curl "https://api.scrapellm.com/scrapers/perplexity" \ -H "X-API-Key: your_api_key" \ -G \ --data-urlencode "prompt=What brands do marketers recommend?" \ --data-urlencode "country=US" // Response { "scraper": "perplexity", "status": "done", "result": "Marketers commonly recommend...", "links": [ { "url": "...", "text": "..." } ], "credits_used": 3 }
Built for developers and data teams who need reliable, structured output at any volume.
Extracts every inline citation Perplexity uses, with source URLs and titles.
Full structured source cards as shown in the Perplexity sidebar.
Captures Perplexity's suggested follow-up questions for deeper research.
Response delivered in markdown and plain text formats.
Route requests through any country for localised Perplexity results.
Fire-and-forget async requests with webhook callbacks.
One GET request. Structured JSON back. Works in any language.
import requests response = requests.get( "https://api.scrapellm.com/scrapers/perplexity", headers={"X-API-Key": "your_api_key"}, params={ "prompt": "What brands do marketers recommend?", "country": "US", } ) print(response.json())
const params = new URLSearchParams({ prompt: 'What brands do marketers recommend?', country: 'US', }); const response = await fetch( `https://api.scrapellm.com/scrapers/perplexity?${params}`, { headers: { 'X-API-Key': 'your_api_key' } } ); const data = await response.json(); console.log(data);
curl "https://api.scrapellm.com/scrapers/perplexity" \ -H "X-API-Key: your_api_key" \ -G \ --data-urlencode "prompt=What brands do marketers recommend?" \ --data-urlencode "country=US"
| Field | Type | Description |
|---|---|---|
| result | string | Plain text response from Perplexity |
| result_markdown | string | Markdown-formatted response |
| links | array | Cited sources with URL and title |
| related_questions | array | Follow-up questions suggested by Perplexity |
| credits_used | integer | Credits consumed by this request |
| elapsed_ms | float | Request duration in milliseconds |
Teams across marketing, SEO, research, and product use ScrapeLLM to get structured Perplexity AI data at the scale that matters.
Access all major AI and search providers through a single, consistent API.
500 free credits. No credit card. Structured JSON in minutes.