Select Page

4. Stats / Reporting

Endpoint: GET api/stats

Available filters: campaign_id, date_from (YYYY-MM-DD) & date_to (YYYY-MM-DD)
Example:

api/stats?campaign_id=123
api/stats?date_from=2020-06-05&date_to=2020-06-10

Important: When using date_from a date_to MUST be set too.

Grouping data

Using the same endpoint it is possible to group data by adding the group_by paramater to your query.

Available groups:
“date”, “hour”, “country”, “device_type”, “os”, “browser”, “site_id”, “carrier”, “banner_id”, “campaign_id”, “source_type”

Example:

api/stats?campaign_id=123&date_from=2020-06-05&date_to=2020-06-10&os=Android&group_by=site_id