logo

Localization & Supported Domains

Configure language, country, location, and Google domain for targeted search results

The Google Search API provides multiple localization parameters to control exactly which results you get. You can set the interface language, target country, specific location, and Google domain to see results exactly as your target audience sees them.


Language Parameter (hl)

The hl (Host Language) parameter controls the language of the Google UI (buttons, labels, and interface text). It uses ISO 639-1 language codes. We support all 150+ Google interface languages.

Common Languages

en English (default)ja Japanese
tr Turkishko Korean
de Germanar Arabic
fr Frenchru Russian
es Spanishzh-cn Chinese (Simplified)
it Italianzh-tw Chinese (Traditional)
pt Portuguesepl Polish
nl Dutchhi Hindi
sv Swedishth Thai

All Supported hl Values

ach Luoaf Afrikaansak Akan
am Amharicar Arabicaz Azerbaijani
be Belarusianbem Bembabh Bihari
bn Bengalibr Bretonbs Bosnian
bt Bhutanesebg Bulgarianca Catalan
chr Cherokeeckb Kurdish (Sorani)co Corsican
crs Seychellois Creolecs Czechcy Welsh
da Danishde Germanee Ewe
el Greeken Englisheo Esperanto
es Spanishes-419 Spanish (Latin America)et Estonian
eu Basquefa Persianfi Finnish
fo Faroesefr Frenchfy Frisian
ga Irishgaa Gagd Scots Gaelic
gl Galiciangn Guaranigu Gujarati
ha Hausahaw Hawaiianhe Hebrew
hi Hindihr Croatianht Haitian Creole
hu Hungarianhy Armeniania Interlingua
id Indonesianig Igbois Icelandic
it Italianiw Hebrew (legacy)ja Japanese
jw Javaneseka Georgiankg Kongo
kk Kazakhkl Greenlandickm Cambodian
kn Kannadako Koreankri Krio
ku Kurdishky Kyrgyzla Latin
lg Lugandaln Lingalalo Laothian
loz Lozilt Lithuanianlua Tshiluba
lv Latvianmfe Mauritian Creolemg Malagasy
mi Maorimk Macedonianml Malayalam
mn Mongolianmo Moldavianmr Marathi
ms Malaymt Maltesemv Maldives
my Myanmar (Burmese)ne Nepalinl Dutch
nn Norwegian (Nynorsk)no Norwegiannso Northern Sotho
ny Chichewanyn Runyakitaraoc Occitan
om Oromoor Oriyapa Punjabi
pcm Nigerian Pidginpl Polishps Pashto
pt Portuguesept-br Portuguese (Brazil)pt-pt Portuguese (Portugal)
qu Quechuarm Romanshrn Kirundi
ro Romanianru Russianrw Kinyarwanda
sd Sindhish Serbo-Croatiansi Sinhalese
sk Slovaksl Sloveniansn Shona
so Somalisq Albaniansr Serbian
sr-me Montenegrinst Sesothosu Sundanese
sv Swedishsw Swahilita Tamil
te Telugutg Tajikth Thai
ti Tigrinyatk Turkmentl Filipino
tn Setswanato Tongatr Turkish
tt Tatartum Tumbukatw Twi
ug Uighuruk Ukrainianur Urdu
uz Uzbekvi Vietnamesevu Vanuatu
wo Wolofws Samoaxh Xhosa
yi Yiddishyo Yorubazh-cn Chinese (Simplified)
zh-tw Chinese (Traditional)zu Zulu

hl sets the search context. Google treats it as a hint, so results may still include other languages. Use lr for strict language filtering.


Country Parameter (gl)

The gl (Geo Location) parameter determines from which country's perspective results are ranked and returned. It uses ISO 3166-1 alpha-2 country codes. We support all 240+ Google geo location codes.

Common Countries

us United States (default)de Germany
gb United Kingdomfr France
tr Turkeyes Spain
ca Canadait Italy
au Australianl Netherlands
jp Japanbr Brazil
kr South Koreain India
mx Mexico

All Supported gl Values

Americas

us United Statesgy Guyana
ca Canadaht Haiti
mx Mexicohn Honduras
ar Argentinajm Jamaica
bo Boliviamq Martinique
br Brazilni Nicaragua
cl Chilepa Panama
co Colombiapy Paraguay
cr Costa Ricape Peru
cu Cubapr Puerto Rico
dm Dominicapm Saint Pierre and Miquelon
do Dominican Republicvc Saint Vincent
ec Ecuadorsr Suriname
sv El Salvadortt Trinidad and Tobago
fk Falkland Islandsum US Minor Outlying Islands
gf French Guianauy Uruguay
gd Grenadave Venezuela
gp Guadeloupevg British Virgin Islands
gt Guatemalavi US Virgin Islands

Europe

gb United Kingdomlt Lithuania
uk United Kingdom (alt)lu Luxembourg
al Albanialv Latvia
ad Andorramc Monaco
at Austriamd Moldova
ba Bosnia and Herzegoviname Montenegro
be Belgiummk North Macedonia
bg Bulgariamt Malta
by Belarusnl Netherlands
ch Switzerlandno Norway
cz Czech Republicpl Poland
de Germanypt Portugal
dk Denmarkro Romania
ee Estoniars Serbia
es Spainru Russia
fi Finlandse Sweden
fo Faroe Islandssi Slovenia
fr Francesk Slovakia
ge Georgiasm San Marino
gi Gibraltarsj Svalbard
gg Guernseyua Ukraine
gl Greenlandva Vatican City
gr Greeceim Isle of Man
hr Croatiaje Jersey
hu Hungaryis Iceland
ie Irelandli Liechtenstein
it Italy

Asia Pacific

af Afghanistanmv Maldives
au Australiamy Malaysia
az Azerbaijanmm Myanmar
bd Bangladeshmn Mongolia
bn Bruneinr Nauru
bt Bhutannp Nepal
cc Cocos Islandsnz New Zealand
ck Cook Islandsnf Norfolk Island
cn Chinanu Niue
cx Christmas Islandpk Pakistan
fj Fijipg Papua New Guinea
fm Micronesiaph Philippines
gu Guampn Pitcairn
hk Hong Kongpw Palau
id Indonesiasb Solomon Islands
in Indiasg Singapore
jp Japanth Thailand
kh Cambodiatl Timor-Leste
ki Kiribatitk Tokelau
kp North Koreato Tonga
kr South Koreatv Tuvalu
kz Kazakhstantw Taiwan
kg Kyrgyzstanuz Uzbekistan
la Laosvn Vietnam
lk Sri Lankavu Vanuatu
mh Marshall Islandsws Samoa
mo Macaoas American Samoa
mp Northern Mariana Islandspf French Polynesia

Middle East & Africa

ae United Arab Emiratesmg Madagascar
bh Bahrainml Mali
bj Beninmr Mauritania
bf Burkina Fasomu Mauritius
bi Burundimw Malawi
bw Botswanamz Mozambique
cd Congo (DRC)na Namibia
cf Central African Republicne Niger
cg Congong Nigeria
ci Cote D'Ivoireom Oman
cm Cameroonps Palestinian Territory
cv Cape Verdeqa Qatar
dj Djiboutire Reunion
dz Algeriarw Rwanda
eg Egyptsa Saudi Arabia
eh Western Saharasc Seychelles
er Eritreasd Sudan
et Ethiopiash Saint Helena
ga Gabonsl Sierra Leone
gh Ghanasn Senegal
gm Gambiaso Somalia
gn Guineast Sao Tome and Principe
gq Equatorial Guineasz Swaziland
gw Guinea-Bissautd Chad
il Israeltg Togo
iq Iraqtn Tunisia
ir Irantr Turkey
jo Jordantz Tanzania
ke Kenyaug Uganda
km Comorosye Yemen
kn Saint Kitts and Nevisyt Mayotte
kw Kuwaitza South Africa
lb Lebanonzm Zambia
lc Saint Luciazw Zimbabwe
lr Liberials Lesotho
ly Libyama Morocco

Other Territories

ai Anguillaky Cayman Islands
ag Antigua and Barbudams Montserrat
aq Antarcticanc New Caledonia
aw Arubasy Syria
bb Barbadostc Turks and Caicos
bm Bermudatf French Southern Territories
bs Bahamastj Tajikistan
bv Bouvet Islandtm Turkmenistan
bz Belizewf Wallis and Futuna
gs South Georgiahm Heard Island
io British Indian Ocean Territory

gl sets the search context. Google treats it as a hint, so results may still include global results. Use cr for strict country filtering.


Country Restrict Parameter (cr)

The cr (Country Restrict) parameter applies strict country filtering. Only results originating from the specified country are returned. Format: countryXX where XX is the ISO 3166-1 alpha-2 country code in uppercase.

Common Values

countryUS United StatescountryDE Germany
countryUK United KingdomcountryFR France
countryTR TurkeycountryES Spain
countryCA CanadacountryIT Italy
countryAU AustraliacountryNL Netherlands
countryJP JapancountryBR Brazil
countryKR South KoreacountryIN India
countryMX Mexico

All Supported cr Values

We support 240+ cr values — the full list mirrors the gl country codes in countryXX format. Every country code supported in gl is also supported in cr.

Americas

countryUS United StatescountryGY Guyana
countryCA CanadacountryHT Haiti
countryMX MexicocountryHN Honduras
countryAR ArgentinacountryJM Jamaica
countryBO BoliviacountryNI Nicaragua
countryBR BrazilcountryPA Panama
countryCL ChilecountryPY Paraguay
countryCO ColombiacountryPE Peru
countryCR Costa RicacountryPR Puerto Rico
countryCU CubacountrySR Suriname
countryDM DominicacountryTT Trinidad and Tobago
countryDO Dominican RepubliccountryUY Uruguay
countryEC EcuadorcountryVE Venezuela
countrySV El SalvadorcountryVI US Virgin Islands
countryGT GuatemalacountryVG British Virgin Islands

Europe

countryUK United KingdomcountryLT Lithuania
countryAL AlbaniacountryLU Luxembourg
countryAT AustriacountryLV Latvia
countryBA Bosnia and HerzegovinacountryMC Monaco
countryBE BelgiumcountryMD Moldova
countryBG BulgariacountryMK North Macedonia
countryBY BelaruscountryMT Malta
countryCH SwitzerlandcountryNL Netherlands
countryCZ Czech RepubliccountryNO Norway
countryDE GermanycountryPL Poland
countryDK DenmarkcountryPT Portugal
countryEE EstoniacountryRO Romania
countryES SpaincountryRU Russia
countryEU European UnioncountrySE Sweden
countryFI FinlandcountrySI Slovenia
countryFR FrancecountrySK Slovakia
countryGE GeorgiacountryUA Ukraine
countryGR GreececountryVA Vatican City
countryHR CroatiacountryIS Iceland
countryHU HungarycountryLI Liechtenstein
countryIE IrelandcountrySM San Marino
countryIT Italy

Asia Pacific

countryAU AustraliacountryMY Malaysia
countryBD BangladeshcountryMM Myanmar
countryCN ChinacountryNP Nepal
countryHK Hong KongcountryNZ New Zealand
countryID IndonesiacountryPH Philippines
countryIN IndiacountryPK Pakistan
countryJP JapancountrySG Singapore
countryKH CambodiacountryTH Thailand
countryKP North KoreacountryTW Taiwan
countryKR South KoreacountryVN Vietnam
countryKZ KazakhstancountryMN Mongolia
countryLA LaoscountryLK Sri Lanka
countryMO MacaocountryKG Kyrgyzstan

Middle East & Africa

countryAE United Arab EmiratescountryMA Morocco
countryBH BahraincountryNG Nigeria
countryDZ AlgeriacountryOM Oman
countryEG EgyptcountryPS Palestinian Territory
countryET EthiopiacountryQA Qatar
countryGH GhanacountrySA Saudi Arabia
countryIL IsraelcountrySD Sudan
countryIQ IraqcountryTN Tunisia
countryIR IrancountryTR Turkey
countryJO JordancountryTZ Tanzania
countryKE KenyacountryUG Uganda
countryKW KuwaitcountryZA South Africa
countryLB LebanoncountryZM Zambia
countryLY LibyacountryZW Zimbabwe

You can also combine cr values with boolean operators for complex filtering. For example, countryUS.countryUK restricts results to pages from either the US or UK.


Language Restrict Parameter (lr)

The lr (Language Restrict) parameter applies strict language filtering. Only results written in the specified language are returned. Format: lang_XX.

We support all 35 Google language restrict values:

lang_ar Arabiclang_hu Hungarianlang_pl Polish
lang_bg Bulgarianlang_id Indonesianlang_pt Portuguese
lang_ca Catalanlang_is Icelandiclang_ro Romanian
lang_cs Czechlang_it Italianlang_ru Russian
lang_da Danishlang_iw Hebrewlang_sk Slovak
lang_de Germanlang_ja Japaneselang_sl Slovenian
lang_el Greeklang_ko Koreanlang_sr Serbian
lang_en Englishlang_lt Lithuanianlang_sv Swedish
lang_es Spanishlang_lv Latvianlang_tr Turkish
lang_et Estonianlang_nl Dutchlang_zh-CN Chinese (Simplified)
lang_fi Finnishlang_no Norwegianlang_zh-TW Chinese (Traditional)
lang_fr Frenchlang_hr Croatian

Location & UULE

For precise geographic targeting beyond country-level, use the location or uule parameter.

location

The location parameter accepts a location name in Google's canonical format. It is automatically encoded to a UULE string internally.

Format: City,State/Region,Country

Examples:

  • Istanbul,Istanbul,Turkey
  • New York,New York,United States
  • London,England,United Kingdom
  • Tokyo,Tokyo,Japan
  • Berlin,Berlin,Germany

uule

The uule parameter accepts a pre-encoded Google UULE location string. This is auto-generated from location when not provided.

If both location and uule are sent, uule takes priority. For most use cases, location is sufficient. Use uule only when you need to pass a pre-encoded value.


hl vs lr / gl vs cr

The Google Search API has two levels of language and country control:

Context (Hint) vs Strict Filter

Context (Hint)Strict Filter
Languagehl=tr: Google UI in Turkish. Results may include other languages.lr=lang_tr: Only Turkish-language pages are returned.
Countrygl=tr: Results from Turkey datacenter. May include global results.cr=countryTR: Only pages originating from Turkey.

When to Use What

  • hl + gl: Best for general localization. You want results relevant to a market but don't mind mixed languages.
  • lr + cr: Best for strict filtering. You need only pages in a specific language or from a specific country.
  • Combine both: Use hl/gl for context and add lr/cr when you need strict filtering on top.

Example: Turkish results from Turkey

/plugin/google/search?token=TOKEN&q=pizza&hl=tr&gl=tr&google_domain=google.com.tr

Example: Strictly Turkish-language pages from Turkey

/plugin/google/search?token=TOKEN&q=pizza&hl=tr&gl=tr&lr=lang_tr&cr=countryTR&google_domain=google.com.tr

Time-Based Filtering

The time_period parameter limits results to a specific recency window:

ValueDescription
last_hourResults from the last hour
last_dayResults from the last 24 hours
last_weekResults from the last 7 days
last_monthResults from the last 30 days
last_yearResults from the last 12 months

Supported Google Domains

The google_domain parameter accepts the following 84 domains. Prefixes (https://, http://, www.) are automatically stripped.

Americas

DomainCountry
google.comUnited States
google.caCanada
google.com.brBrazil
google.com.mxMexico
google.com.arArgentina
google.clChile
google.com.coColombia
google.com.pePeru

Europe

DomainCountry
google.co.ukUnited Kingdom
google.deGermany
google.frFrance
google.esSpain
google.itItaly
google.nlNetherlands
google.beBelgium
google.atAustria
google.chSwitzerland
google.seSweden
google.noNorway
google.dkDenmark
google.fiFinland
google.plPoland
google.ptPortugal
google.com.trTurkey
google.ieIreland
google.com.uaUkraine
google.roRomania
google.grGreece
google.huHungary
google.czCzech Republic
google.skSlovakia
google.bgBulgaria
google.hrCroatia
google.rsSerbia
google.siSlovenia
google.ltLithuania
google.lvLatvia
google.eeEstonia
google.ruRussia

Asia Pacific

DomainCountry
google.co.jpJapan
google.co.krSouth Korea
google.com.auAustralia
google.co.nzNew Zealand
google.co.inIndia
google.co.idIndonesia
google.co.thThailand
google.com.sgSingapore
google.com.myMalaysia
google.com.phPhilippines
google.com.vnVietnam
google.com.twTaiwan
google.com.hkHong Kong
google.com.pkPakistan
google.com.bdBangladesh
google.com.npNepal
google.lkSri Lanka
google.com.mmMyanmar
google.com.khCambodia
google.laLaos

Middle East & Africa

DomainCountry
google.co.zaSouth Africa
google.com.egEgypt
google.com.saSaudi Arabia
google.aeUAE
google.co.ilIsrael
google.com.ngNigeria
google.co.keKenya
google.com.ghGhana
google.com.etEthiopia
google.co.tzTanzania
google.co.ugUganda
google.com.lyLibya
google.dzAlgeria
google.co.maMorocco
google.tnTunisia
google.com.qaQatar
google.com.kwKuwait
google.com.bhBahrain
google.com.omOman
google.joJordan
google.com.lbLebanon
google.iqIraq

Central Asia & Caucasus

DomainCountry
google.azAzerbaijan
google.kzKazakhstan
google.geGeorgia

On this page