Visitor Data

Visitor API returns a JSON in the following format to the success handler function when it is called successfully. You can write your code in the handler function to personalize your web pages with the returned data.

{
	"ipAddress":"118.211.184.103",
	"countryCode":"AU",
	"countryName":"Australia",
	"currencies":["AUD"],
	"languages":["eng"],
	"region":"nsw",
	"city":"sydney",
	"cityLatLong":"-33.868820,151.209295",
	"browser":"Chrome Mobile iOS",
	"browserVersion":"100",
	"deviceBrand":"Apple",
	"deviceModel":"iPad",
	"deviceFamily":"iPad",
	"os":"iOS",
	"osVersion":"15"
}

Here are the detail explanation of the return data:

JSON PathDescription
ipAddressThe IP address of the visitor.
countryCodeCountry from which the visitor is located in as an ISO 3166-1 alpha-2 country code.
countryNameThe full name of the country which the visitor is located in.
currenciesAn array of the official currencies of the country which the visitor is located in.
languagesAn array of the official languages of the country which the visitor is located in.
regionName of the region, state or province which the visitor is located in. The complete list of valid region values is found in the ISO-3166-2 standard.
cityName of the city which the visitor is located in.
cityLatLongLatitude and longitude of the city which the visitor is located in.
browserThe browser name which the visitor uses.
browserVersionThe browser version which the visitor uses.
deviceBrandThe brand of the device which the visitor uses. Only applicable to mobile devices.
deviceModelThe model of the device which the visitor uses. Only applicable to mobile devices.
deviceFamilyThe family of the device which the visitor uses. Only applicable to mobile devices.
osThe operating system name of the device which the visitor uses.
osVersionThe operating system version of the device which the visitor uses.