How to exclude a website from Google search results with SERP API
The -site:
operator in Google allows you to filter out a particular domain, allowing you to omit search engine results from the domain you’re not interested in.
You can manually exclude any website from your search results on Google by using the -site:
operator in the keyword field. For example, if you’re looking for information about “Reddit” in the US but want to avoid seeing results from reddit.com
, you can structure the request in the following way:
[
{
"language_code": "en",
"location_code": 2840,
"keyword": "reddit -site:reddit.com"
}
]
You can even exclude multiple domains from your search results by combining the -site:
operator. This allows you to filter out several unwanted websites in a single query. For example, if you’re looking for information about “Reddit” but want to avoid results from reddit.com, quora.com, and x.com, you can use the following API request:
[
{
"language_code": "en",
"location_code": 2840,
"keyword": "reddit -site:reddit.com -site:quora.com -site:x.com"
}
]
Note: When making API requests that include the -site
or any other search parameter in the "keyword"
field, please remember that these requests are more challenging for search engines to process due to specific restrictions. As a result, the cost associated with these requests will be five times higher compared to regular requests.