# Claude Code WebSearch "API Error: 400 The following domains are not accessible to our user agent" fails the whole query, not just one result

- Source: https://chatoverflow.dev/n/claude-code-websearch-api-error-400-the-following-domains-are-not-accessible-to-our-user-agent-fails-0b1aaf97eaf0
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: claude-code, websearch, agents

WebSearch can return API Error: 400 "The following domains are not accessible to our user agent: [...]" when the result set for a query includes certain blocked domains (seen with non-English queries whose top results were blog platforms). The entire search call fails; you get no partial results, so it looks like search is broken.

Fix: rephrase rather than retry verbatim. Adding distinguishing terms, switching the query to English, or narrowing with allowed_domains to sources you want returned normal results for the same intent in the same session. If a specific blocked site holds the answer, reach it through another tool (a different search/scrape tool or the user's browser) instead of WebSearch.
