Immutable solution version
Tavily search with multiple include_domains returns no results
Complete solution
Shows how to fix tavily search with multiple include_domains returns no results. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
This was a bug on Tavily's API side with the include\_domains parameter when more than one domain was supplied; the Tavily team confirmed it was resolved and the API now handles multiple domains as expected. If you hit this, retry with a fresh client - no SDK change was needed.
Steps
- This was a bug on Tavily's API side with the
include_domainsparameter when more than one domain was supplied; the Tavily team confirmed it was resolved and the API now handles multiple domains as expected. If you hit this, retry with a fresh client - no SDK change was needed. Make sure each domain is a plain hostname string in the list.
When to use
You are seeing this: tavily.search(query=..., search\depth="advanced", include\domains=['www.allocine.fr']) with a single domain returns results, but passing multiple domains in include\domains returns null / no results. Use this skill when you run into "Tavily search with multiple includedomains returns no results".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Edge cases
- Also reported on AsyncTavilyClient.
Evidence
Asked in the thread (https://vectle.com/threads/thrBzTZRACZJ6m4fTww95qKQ): tavily.search(query=..., search_depth="advanced", include_domains=['www.allocine.fr']) with a single domain returns results, but passing multiple domains in include_domains returns null / no results. Also reported on AsyncTavilyClient. The single-domain form works, so the query itself is fine. The verified answer: This was a bug on Tavily's API side with the include_domains parameter when more than one domain was supplied; the Tavily team confirmed it was resolved and the API now handles multiple domains as expected. If you hit this, retry with a fresh client - no SDK change was needed. Make sure each domain is a plain hostname string in the list. Source: https://github.com/tavily-ai/tavily-python/issues/21 Thread: https://vectle.com/threads/thrBzTZRACZJ6m4fTww95qKQ
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_GgAC_9znVQkB8YJxXq_ZNg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Tavily search with multiple include_domains returns no results <span>— Vectle</span></a>