Display a list of sub-continents where visitors to your website are located.
This API produces a json array.
One or more of the following parameters are required:
date
Calculate top sub-continents from the specified date entered as yyyy-MM-dd. Default is the current date.
unixTime
Calculate the top subcontinents from the specified unix timestamp. Default is the current unix timestamp.
period
Specify the period:
timeZone
Calculate the top subcontinents for the specified timezone. Default is the site's defined timezone.
Optional parameters:
login
Your opentracker login email. Default is [demo@opentracker.net].
password
Your password.
ticketId
A ticketId can be used to provide credentials with an expiring token. A ticketId can be used instead of a login/ password combination. Further information can be found here.
segment
This is the property field based on which you want to segment the data. By default there are no segments. You can find more information here.
filter
You can choose to see no segments [none] (default), see all segments showAllSorts, or by specifying the name of the segment.
site
The site to display data for. Default is [www.opentracker.net].
locale
The locale parameter is an identifier for a particular combination of language and region (e.g. en_US) and determines the format of the data returned. A list of locales can be found here.
ignoreLocale
Display columns without language translation [false]|true.
dataType
The dataType parameter determines the format of the data returned. Values can be [ json ] | html | jsondatatable | jsonjqgrid
Display a top subcontinents list for the website www.opentracker.net for the user "demo@opentracker.net" with password "demo123":
HTTP GET/ POST:/api/location/top_sub_continents.jsp?period=1d&login=demo@opentracker.net&password=demo123&site=www.opentracker.net
Display a top subcontinents list for the website www.opentracker.net from 2024-03-19 and three weeks back display in html:
HTTP GET/ POST:/api/location/top_sub_continents.jsp?date=2024-03-19&login=demo@opentracker.net&password=demo123&site=www.opentracker.net&period=3w&dataType=html
Display a top subcontinents list for the website www.opentracker.net for 2024-03-19:
HTTP GET/ POST:/api/location/top_sub_continents.jsp?date=2024-03-19
This last example returns a json array with 'n' entries starting from the specified date formatted as:
{ "resultsList": [ { "No.":"1", "subcontinent":"Southern and Central Asia", "users":"912", "bar":"||||||||||||||||||||", "percentage":"24.5%"} , { "No.":"2", "subcontinent":"North America", "users":"880", "bar":"|||||||||||||||||||", "percentage":"23.7%"} , { "No.":"3", "subcontinent":"Southeast Asia", "users":"524", "bar":"|||||||||||", "percentage":"14.1%"} , { "No.":"4", "subcontinent":"Western Europe", "users":"319", "bar":"|||||||", "percentage":"8.6%"} , { "No.":"5", "subcontinent":"British Islands", "users":"196", "bar":"||||", "percentage":"5.3%"} , { "No.":"6", "subcontinent":"Southern Europe", "users":"156", "bar":"|||", "percentage":"4.2%"} , { "No.":"7", "subcontinent":"Middle East", "users":"121", "bar":"|||", "percentage":"3.3%"} , { "No.":"8", "subcontinent":"Australia and New Zealand", "users":"107", "bar":"||", "percentage":"2.9%"} , { "No.":"9", "subcontinent":"Eastern Europe", "users":"91", "bar":"||", "percentage":"2.4%"} , { "No.":"10", "subcontinent":"Nordic Countries", "users":"90", "bar":"||", "percentage":"2.4%"} , { "No.":"11", "subcontinent":"South America", "users":"67", "bar":"|", "percentage":"1.8%"} , { "No.":"12", "subcontinent":"Eastern Asia", "users":"64", "bar":"|", "percentage":"1.7%"} , { "No.":"13", "subcontinent":"Western Africa", "users":"47", "bar":"|", "percentage":"1.3%"} , { "No.":"14", "subcontinent":"Southern Africa", "users":"33", "bar":"|", "percentage":"0.9%"} , { "No.":"15", "subcontinent":"Northern Africa", "users":"28", "bar":"|", "percentage":"0.8%"} , { "No.":"16", "subcontinent":"Eastern Africa", "users":"24", "bar":"|", "percentage":"0.6%"} , { "No.":"17", "subcontinent":"Caribbean", "users":"18", "bar":"|", "percentage":"0.5%"} , { "No.":"18", "subcontinent":"Central America", "users":"14", "bar":"|", "percentage":"0.4%"} , { "No.":"19", "subcontinent":"Baltic Countries", "users":"12", "bar":"|", "percentage":"0.3%"} , { "No.":"20", "subcontinent":"Unknown", "users":"5", "bar":"|", "percentage":"0.1%"} , { "No.":"21", "subcontinent":"Central Africa", "users":"5", "bar":"|", "percentage":"0.1%"} , { "No.":"22", "subcontinent":"Polynesia", "users":"2", "bar":"|", "percentage":"0.1%"} , { "No.":"", "subcontinent":"", "users":"3,715", "bar":"", "percentage":"100%"} ] }
If errors are encountered, the first encountered error will be returned of form "Error: exception: message
Error: java.lang.RuntimeException: Login/ site combination is not valid