APIs · Google Search

Locations, languages & devices

A search has a country, a language, optionally a place inside the country, and a device.

Country

country is a two-letter ISO code; any country Google serves is accepted. It is returned as search_parameters.gl. The playground offers these five; the language defaults to the country’s.

CountrycountryDefault locale
United KingdomGBen-GB
United StatesUSen-US
GermanyDEde-DE
FranceFRfr-FR
PolandPLpl-PL

Language

locale is a language code, with or without a region: en, en-GB, de, fr-FR. It is returned as search_parameters.hl.

Google domain

google_domain picks the Google host, for example google.co.uk or google.de. Only (www.)google.<tld> hosts are accepted. Omitted: www.google.com with the country applied.

A place below country level

Send uule, Google’s encoding of a named place (w+CAIQICI…: a city, a state or a postal code), and the results, local ones above all, are what Google shows for that place, whatever address the request leaves from. For example w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM is Austin, Texas, United States. The value is w+CAIQICI, a length byte and the canonical place name in base64; most SERP tooling generates it from the name. A UULE of coordinates (a+…) is refused with 422. Search tier only.

Device

device is desktop (default), mobile (the page Google serves an Android phone) or iphone and ipad (the page Safari gets on them), each with its own ranking and blocks. Same price. The answer echoes it as search_parameters.device. Search tier only.

A request can fail with 503 while capacity for a country is warming up. It is not billed.

Talk to the team

What are you building?

Your message goes to our team on Telegram. See our Privacy Policy.