We’re excited to share two improvements that just went live for the Sonar API!
1. Expanded domain filters
You can now include up to 20 entries in search_domain_filter
(previously 10).
This gives you more flexibility when allowlisting or denylisting sources for your queries.
2. Snippets in search_results
Each item in the search_results
array now includes a snippet
— a short summary/description, similar to what you’d see in a search engine. This helps you quickly evaluate the relevance of results before diving into the full source.
Example
If I were to prompt:
What is Comet by Perplexity?
The response would include search_results
like:
"search_results": [
{
"title": "Comet: Perplexity's AI browser gets personal - IBM Think",
"url": "https://www.ibm.com/think/news/comet-perplexity-take-agentic-browser",
"date": "2025-07-18",
"last_updated": "2025-07-18",
"snippet": "With the launch of Comet, Perplexity is tackling a new challenge: reinventing how everyday users interact with the web ..."
}
]