Perplexity API sources: the Sonar API vs the Perplexity website
Perplexity's API and its website both search the web and list sources, but they are different surfaces. For the same prompt they listed different sites, and only the website shows which sources the answer actually used. If you care about what Perplexity users see, measure the website; if you build on the API, measure the API. Keep them apart.
Two surfaces
Perplexity's own documentation describes the API's search results as entries with a title, URL and date (docs.perplexity.ai, checked 2026-12-02). Here is what the two AskCrawl engines return:
| Perplexity Sonar API | Perplexity web | |
|---|---|---|
| Surface | Official API | Website |
| Model in this sample | sonar | Not recorded |
| Login state | Not confirmed | Signed in |
| Country | Not selectable | Not selectable |
| Sources in this sample | 10 | 10 |
| Used vs only found | Cannot tell: cited is null | 2 used, 8 only found |
| Other fields | — | Follow-up questions |
| Typical wait | About 5 s | Usually 9–30 s |
| Price per answer | $0.0092 | $0.0032 |
Same prompt, different sources
Both were asked “What is the best CRM software for small businesses?”, once each. The API listed 8 domains and the website 10; 5 appeared on both.
- Public samples
- 2026-11-29
- 1 run per surface
| Where it appeared | Domains | Which |
|---|---|---|
| Both surfaces | 5 | fitsmallbusiness.com, zdnet.com, pcmag.com, techradar.com, zendesk.com |
| Website only | 5 | toolrankers.com, wise.com, honeybook.com, freshworks.com, optimonk.com |
| API only | 3 | zapier.com, capterra.com, attio.com |
On the website, 2 of the 10 sources were used in the answer; the rest were only found. The API response does not say which sources the answer relied on, so those are reported as unknown rather than guessed. One run per surface shows the difference in format; it is not a measurement.
Collect both in one job
Send both engine IDs in one request. Each answer keeps its own engine, surface and capture conditions, and the reports group them separately.
# 1. Quote: free, creates nothing
curl https://api.askcrawl.com/v1/answers/quote \
-H "Authorization: Bearer $ASKCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompts": ["What is the best CRM software for small businesses?"],
"engines": ["perplexity.web","perplexity.api"],
"samples": 3
}'
# 2. Submit: charged. At most $0.0372; refused if it could cost more than X-Max-Price
curl https://api.askcrawl.com/v1/answers \
-H "Authorization: Bearer $ASKCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-H "X-Max-Price: 0.04" \
-d '{
"prompts": ["What is the best CRM software for small businesses?"],
"engines": ["perplexity.web","perplexity.api"],
"samples": 3
}'
# 3. Check progress and read answers (free). Replace JOB_ID with the id returned above
curl https://api.askcrawl.com/v1/jobs/JOB_ID -H "Authorization: Bearer $ASKCRAWL_API_KEY"
curl "https://api.askcrawl.com/v1/answers?job_id=JOB_ID" -H "Authorization: Bearer $ASKCRAWL_API_KEY"# pip install "git+https://github.com/askcrawlhq/askcrawl-python"
# export ASKCRAWL_API_KEY="your key"
from askcrawl import AskCrawl
client = AskCrawl()
prompts = ["What is the best CRM software for small businesses?"]
engines = ["perplexity.web","perplexity.api"]
quote = client.quote(prompts, engines, samples=3) # free
job = client.ask(prompts, engines, samples=3, max_price=quote["max_charge"]) # charged
job = client.wait(job["id"])
# Which domains did each surface list, and which did the website use?
seen = {}
for answer in client.answers(job["id"]):
for source in answer["citations"] or []:
seen.setdefault(source["domain"], set()).add((answer["engine"], source["cited"]))
for domain, marks in sorted(seen.items()):
print(domain, sorted(marks, key=str))How to read it
- A site that appears on one surface and not the other in a single run may simply have been missed that time. Repeat each prompt before drawing conclusions.
- For a citation rate, only answers whose sources are marked used or found count; the API's unknown sources stay out of the denominator.
- The website is collected signed in and neither surface takes a country, so check prompts where location matters with another engine.