Trends

Display and analyze trends in website traffic through time.

Display and analyze trends in website traffic through time.

API Usage

This API produces a json array. Use this URL to perform GET or POST requests.

Parameters

At least one of the following parameters are required:

date Calculate trends from specified date entered as yyyy-MM-dd. Default is the current date. Hourly has extra option of time entered as hh:mm
unixTime Calculate trends from specified unix timestamp. Default is current unix timestamp.
period Specify the trend period.

    • d for days, eg: period=14d will show 14rows with daily trends, period=d defaults to 7 days
    • w for weeks, eg: period=12w will show 12 rows with weekly trends, period=w defaults to 4 weeks
    • m for months, eg: period=4m will show 4 rows with monthly trends, period=m defaults to 3 months

timeZone The timezone used. Use this option if more than one timezone is being recorded, by default the site's defined timezone is used.
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 { "resultsList": [ { "error":"javax.servlet.jsp.JspException: Problem accessing the absolute URL \\\"http:\/\/localhost\/api\/trends\/trends_summary.jsp?date=2012-10-01\\&period=3m\\\". java.net.ConnectException: Connection refused\\n\\tat org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireReader(ImportSupport.java:354)\\n\\tat org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:241)\\n\\tat org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)\\n\\tat org.apache.jsp.api.trends.trends_005fsummary_jsp._jspx_meth_c_005fimport_005f0(trends_005fsummary_jsp.java:1683)\\n\\tat org.apache.jsp.api.trends.trends_005fsummary_jsp._jspService(trends_005fsummary_jsp.java:487)\\n\\tat org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)\\n\\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:717)\\n\\tat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)\\n\\tat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)\\n\\tat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)\\n\\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:717)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\\n\\tat org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)\\n\\tat org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)\\n\\tat org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)\\n\\tat org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)\\n\\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\\n\\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)\\n\\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\\n\\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\\n\\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)\\n\\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)\\n\\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\\n\\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)\\n\\tat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)\\n\\tat org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)\\n\\tat org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)\\n\\tat java.lang.Thread.run(Thread.java:745)\\nCaused by: java.net.ConnectException: Connection refused\\n\\tat java.net.PlainSocketImpl.socketConnect(Native Method)\\n\\tat java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)\\n\\tat java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)\\n\\tat java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)\\n\\tat java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)\\n\\tat java.net.Socket.connect(Socket.java:589)\\n\\tat java.net.Socket.connect(Socket.java:538)\\n\\tat sun.net.NetworkClient.doConnect(NetworkClient.java:180)\\n\\tat sun.net.www.http.HttpClient.openServer(HttpClient.java:432)\\n\\tat sun.net.www.http.HttpClient.openServer(HttpClient.java:527)\\n\\tat sun.net.www.http.HttpClient.(HttpClient.java:211)\\n\\tat sun.net.www.http.HttpClient.New(HttpClient.java:308)\\n\\tat sun.net.www.http.HttpClient.New(HttpClient.java:326)\\n\\tat sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)\\n\\tat sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)\\n\\tat sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)\\n\\tat sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)\\n\\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)\\n\\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)\\n\\tat org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireReader(ImportSupport.java:330)\\n\\t... 29 more\\n"} ] }