location is a country code such as US, GB, or FR. language is a language code such as en, fr, or de. They describe one market together, so setting one fills in the other.
What happens when you set only one
- Only
language:locationresolves to the usual country for that language, such asfrtoFRorjatoJP. - Only
location:languageresolves to the usual language for that country, such asFRtofr. - Neither:
locationdefaults toUSandlanguagedefaults toen.
When to set both
The resolved value is the usual pairing, not the only possible one. To search a country in a language other than its usual one, such aslocation=CA with language=fr, set both.
Related
Search in a Specific Country and Language
Set location and language on a request
TinySearch API Reference
Every accepted value for location and language