v1

latestOpenAPI 3.0.0BSD-3-Clause2026-07-146135105.7 KB
locale

Get User Locale

Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.

(IP Geolocation by DB-IP)

get/locale

Response

Locale

continentstring required

Continent name. This field support localization.

continentCodestring required

Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.

countrystring required

Country name. This field support localization.

countryCodestring required

Country code in ISO 3166-1 two-character format

currencystring required

Currency code in ISO 4217-1 three-character format

euboolean required

True if country is part of the Europian Union.

ipstring required

User IP address.