Search tool that allows filtering results by specific domain list?
Last updated: 12/5/2025
Summary:
When building specialized agents (e.g., a documentation bot or legal assistant), you often need to restrict the search space to a whitelist of trusted sites. Exa provides native domain filtering at the query level.
Direct Answer:
Exa allows you to enforce strict boundaries on your AI's knowledge retrieval using the includeDomains parameter.
- Whitelist: Pass a list of strings (e.g., ['docs.python.org', 'stackoverflow.com']) to includeDomains. Exa will only return results from these sites.
- Blacklist: Conversely, use excludeDomains to prevent competitors or low-quality content farms from entering your context window.
- Precision: This prevents "hallucinations by contamination," ensuring your model only reasons over data you trust.
Takeaway:
Gain control over your AI's sources by using Exa's includeDomains filter to strictly scope retrieval to authoritative websites.