Endpoints

Events

Operations around Events and Event data.

Endpoints


Filters#

All Endpoints marked with filters can now be filtered with the parameters below.

ParameterTypeDescription
pathstringName of URL.
referrerstringName of referrer.
titlestringName of page title.
querystringName of query parameter.
browserstringName of browser.
osstringName of operating system.
devicestringName of device (ex. Mobile).
countrystringName of country.
regionstringName of region/state/province.
citystringName of city.
languagestringName of browser language.
hostnamestringName of hostname.
tagstringName of tag.
eventstringName of event.
distinctIdstringName of distinct ID.
utmSourcestringUTM source.
utmMediumstringUTM medium.
utmCampaignstringUTM campaign name.
utmContentstringUTM content.
utmTermstringUTM term.
segmentuuidUUID of segment.
cohortuuidUUID of cohort.

GET /api/websites/:websiteId/events#

Gets website event details within a given time range.

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
searchstring(optional) Search text.
pagenumber(optional, default 1) Determines page.
pageSizenumber(optional, default 20) Determines how many results to return.
filtersobjectCan accept filter parameters.

Sample response


GET /api/websites/:websiteId/events/stats#

Gets aggregated event statistics within a given time range, with optional period comparison.

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
comparestring(optional) Comparison period (prev | yoy).
filtersobject(optional) Can accept filter parameters.

Sample response


GET /api/websites/:websiteId/event-data#

Gets event data for a website within a given time range, grouped by event.

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
pagenumber(optional, default 1) Determines page.
pageSizenumber(optional, default 20) Determines how many results to return.
filtersobjectCan accept filter parameters.

Sample response


GET /api/websites/:websiteId/event-data/:eventId#

Gets event-data for an individual event

Sample response


GET /api/websites/:websiteId/event-data/events#

Gets event data names, properties, and counts

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
eventstring(optional) Event name filter.
filtersobjectCan accept filter parameters.

Sample response


GET /api/websites/:websiteId/event-data/fields#

Gets event data property and value counts within a given time range.

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
filtersobjectCan accept filter parameters.

Sample response


GET /api/websites/:websiteId/event-data/properties#

Gets event name and property counts for a website.

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
filtersobjectCan accept filter parameters.

Sample response


GET /api/websites/:websiteId/event-data/values#

Gets event data counts for a given event and property

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
eventstringEvent name.
propertyNamestringProperty name.
filtersobjectCan accept filter parameters.

Sample response


GET /api/websites/:websiteId/event-data/stats#

Gets aggregated website events, properties, and records within a given time range.

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
filtersobjectCan accept filter parameters.

Sample response


GET /api/websites/:websiteId/event-data-pivot#

Gets event data for a website in a pivoted format, with each row representing an event and its properties as parallel arrays.

Parameters

ParameterTypeDescription
startAtnumberTimestamp (in ms) of starting date.
endAtnumberTimestamp (in ms) of end date.
eventNamestringEvent name to pivot on.
pagenumber(optional, default 1) Determines page.
pageSizenumber(optional, default 20) Determines how many results to return.
filtersobjectCan accept filter parameters.

Sample response