Time Series
Retrieve a Time Series
GETnow/timeSeries
Retrieves a list of data points containing the number of visitors over time as the metric. This can be used to plot visualisations of visitors over time as shown in the Now dashboard. It could also be used to retrieve information for further analysis elsewhere.
Query String Parameters
from | String The start date-time for the query |
to | String The end date-time for the query |
interval | StringDefault Value: Discrete time interval between points. Should be in the format |
dateFormat | String The format that any date parameters will be returned in. This takes any value permitted by Moment. |
Example Request
var GoSquared = require('gosquared');
var gosquared = new GoSquared({
api_key: 'demo',
site_token: 'GSN-106863-S'
});
gosquared.now.v3.timeSeries(function(err, res) {
if (err) return console.log(err);
console.log(res);
});
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder