Exclude domains filter more than exclude domains i entered

Hi i’m building news letter app with tavily.
so i need news, not sns contents(like youtube, x, facebook, instagram).

so i use this

search_params = {
    "query": topic,
    "max_results": 20,
    "include_raw_content": "markdown",
    "exclude_domains": ["youtube.com", "x.com", "instagram.com", "facebook.com"]
}
# topic was "엔비디아 젠슨 황 CEO는 삼성전자와 SK하이닉스 모두 필요하다며, 한국 기업의 기술력을 높이 평가했다. 그는 한국이 메모리 기술에서 세계적인 수준을 보유하고 있다며, 미래 기술 협력 의사를 밝혔다. 또한, 한국이 AI를 통해 성장할 수 있다고 강조했다."

but the response wasn’t satisfying.

so i tried without exclude domains. and the response was much better.

and i found the exclude domain filter more than exclude domains i entered.

(of course, to avoid i can set search topic as “news”, but it doesn’t work in korean news)

Is this an error that only applies to Korean?

Hi @otteru

If I understand correctly, you’re running into two main issues:

  1. You’ve excluded a few specific domains, but it seems like other domains are also being filtered out unexpectedly.

  2. You’re trying to get news results in Korean.

In that case, I’d recommend using the include_domains filter to explicitly list the domains you want results from. You can also set "country": "south korea" to help narrow the results to Korean news sources.