Display a list of continents where your visitors are located.
This API produces a json array.
One or more of the following parameters are required:
date
Calculate top continents from the specified date entered as yyyy-MM-dd. Default is the current date.
unixTime
Calculate the top continents from the specified unix timestamp. Default is the current unix timestamp.
period
Specify the period:
timeZone
Calculate the top continents 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. Boolean. [false]|true.
dataType
The dataType parameter determines the format of data returned. Values can be [ json ] | html | jsondatatable | jsonjqgrid | csv | png
Display a top continents list for the website www.opentracker.net from 2024-12-19 and three weeks back display in html:
HTTP GET/ POST:/api/location/top_continents.jsp?date=2024-12-19&login=demo@opentracker.net&password=demo123&site=www.opentracker.net&period=3w&dataType=html
Display a top continents list for the website www.opentracker.net for 2024-12-19:
HTTP GET/ POST:/api/location/top_continents.jsp?date=2024-12-19
Display a top continents list for the website www.opentracker.net for the user "demo@opentracker.net" with password "demo123":
HTTP GET/ POST:/api/location/top_continents.jsp?period=1d&login=demo@opentracker.net&password=demo123&site=www.opentracker.net
This last example returns a json array with 'n' entries starting from the specified period formatted as:
{ "resultsList": [ { "No.":"1", "continent":"Asia", "users":"980", "bar":"||||||||||||||||||||", "percentage":"53.1%"} , { "No.":"2", "continent":"North America", "users":"415", "bar":"||||||||", "percentage":"22.5%"} , { "No.":"3", "continent":"Europe", "users":"297", "bar":"||||||", "percentage":"16.1%"} , { "No.":"4", "continent":"Africa", "users":"64", "bar":"|", "percentage":"3.5%"} , { "No.":"5", "continent":"Oceania", "users":"58", "bar":"|", "percentage":"3.1%"} , { "No.":"6", "continent":"South America", "users":"27", "bar":"|", "percentage":"1.5%"} , { "No.":"7", "continent":"Unknown", "users":"5", "bar":"|", "percentage":"0.3%"} , { "No.":"", "continent":"", "users":"1846", "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