Ranked sources AI search returns (Perplexity Search API)
ai_search_sourcesRetrieves Perplexity search sources for up to 10 questions in one call and checks whether your domain appears among them, so you can track AI search source share over time.
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. |