Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make google custom search location-aware

When I search for "football images" on google.co.uk, it knows that I mean the sport that elsewhere might be called "soccer". If I do the same search on google.com, I get American Football.

I'm using the custom search API - how can I tell it that I'm in the UK and would like results relevant to here?

like image 865
Lorna Mitchell Avatar asked May 28 '26 17:05

Lorna Mitchell


1 Answers

You can limit your engine to operate on sites from a particular country via "cr" param, e.g. in Custom Element it looks like this:

<gcse:search cr="gb"></gcse:search>

Google knows some synonyms on the web, but if your particular use case is not correctly recognized you can add it in Control Panel in Search Features > Synonyms

More on synonyms:

like image 84
Devnook Avatar answered Jun 04 '26 19:06

Devnook



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!