Ranked sources AI search returns (Perplexity Search API)
ai_search_sourcesCheck which pages Perplexity AI returns as sources for up to 10 queries in one call, and see if your domain ranks among them. Track source share over time to identify competitors AI search keeps citing.
Instructions
Ask Perplexity's Search API which pages it retrieves as sources for up to 10 questions in one call, and whether your domain is among them. Unlike ai_citation_check it only returns ranked results (title, URL, snippet, date) with no answer generation, so it is cheaper and repeatable: track share of sources over time and see which competitors AI search keeps pulling from. Requires PERPLEXITY_API_KEY (paid; https://www.perplexity.ai/settings/api).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Your domain to locate in the rankings, e.g. 'example.com'. | |
| country | No | 2-letter country code for localized results, e.g. 'ES', 'US'. | |
| queries | Yes | Questions a customer would type, e.g. ['best guided tour of the Alcazar', 'mejores tours en Sevilla']. | |
| recency | No | Only pages published within this window. | |
| language | No | Restrict results to this language code, e.g. 'es'. | |
| maxResults | No | Results per query. | |
| contextSize | No | How much page text Perplexity retrieves per result; 'low' is enough for a source list and costs least. | low |
| searchDomains | No | Restrict to these domains, or exclude one by prefixing '-', e.g. ['-pinterest.com']. Max 20. |