Display all website pages visited over a given period of time.
This API produces a json array. Use this URL to perform GET or POST requests.
One or more of the following parameters are required:
filterByUrl
Calculate the page trend for the specified url. The url should be in the encoded format. Use this link to convert the url to the required format. By default, all the pages are returned.
date
Calculate page trends from specified date entered as yyyy-MM-dd. Default is the current date.
unixTime
Calculate page trends from specified unix timestamp. Default is current unix timestamp.
period
Specify the trend period.
timezone
Timezone used. Use this option if more than one timezone is being recorded. Default is site's defined timezone.
limit
Maximum number of records to be displayed in the output. The default is [40]. Maximum is 10,000.
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.
site
The site for which to display data. 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.
dataType
The dataType parameter determines the format of the data returned. Values can be [ json ] | html | jsondatatable | jsonjqgrid
ignoreLocale
Display columns without language translation. Boolean. [false]|true.
dateFormat
The dateFormat parameter determines the format of dates returned. An example is dateFormat=yyyy-dd-MM. The syntax can be found here.
To calculate the monthly trends to the website www.opentracker.net for the user "demo@opentracker.net" with password "demo123":
HTTP GET/ POST: trends_pages.jsp?login=demo@opentracker.net&password=demo123&site=www.opentracker.net&trend=monthly
To calculate the daily trends for the url 'http://www.opentracker.net/de' over a range of 3 days from now:
HTTP GET/ POST: trends_pages.jsp?trend=daily&period=3d
This last example returns a json array with 'n' entries starting from the specified period formatted as:
{ "resultsList": [ { } ] }
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