API Quickstart
This page shows you how to get started using the activities analytics API to query your data in mediarithmics.
Step 1 : Configure authentication
This quickstart guide uses the Long term access tokens authentication method. Choose and configure your own authentication method. For more information, see Authentication.
Step 2 : API call
POST
https://api.mediarithmics.com/v1/datamarts/:datamartId/user_activities_analytics
Query Parameters
Name | Type | Description |
---|---|---|
datamartId* | number | The ID of the datamart to query |
Request Body
Name | Type | Description |
---|---|---|
metrics* | array | Array of Metric to retrieve. |
dimension_filter_clauses | object | Filters to apply on dimensions before calculating the metric. For more information, see FilterClause. |
dimensions* | array | Dimensions to group metrics by. |
date_ranges* | array | Periods to analyze. Each date range is an object with a |
Here is a sample report request as body payload with all the important properties
The API will answer with a Single resource wrapper containing a ReportView.
Congratulations! You've sent your first request to the Activities analytics API.
Last updated