Aggregate
Retrieve historical aggregate data
GETtrends/aggregate
Retrieves a list of summarised aggregate metrics over a given time period. This data powers the trends timeline and total metrics.
These data points can be split up using the interval parameter for performing finer calculations over time.
Query String Parameters
from | String The start date-time for the query |
to | String The end date-time for the query |
dateFormat | String The format that any date parameters will be returned in. This takes any value permitted by Moment. |
format | StringDefault Value: Accepted values: The response format required (overrides header) |
limit | StringDefault Value: The maximum number of results e.g. |
interval | StringDefault Value: Accepted values: Resulting data points will be the sum of datapoints within the given interval |
Example Request
require 'gosquared'
gs = Gosquared::RubyLibrary.new('demo','GSN-106863-S')
gs.trends.aggregate
gs.trends.fetch
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder