In-App Dashboards
- Real Time Metrics
- / Use Cases
Whether you're building games, a marketplace or a social app, providing analytics helps your users succeed.
Dashboards Made Easy
A Real Time Data API needs to scale
Build real-time dashboards for your customers without worrying about:
With our powerful Metrics API and flexible filtering & grouping functionality, you'll be up and running in no time.
Example
POST to /api/v1/metrics/results
A simple POST to the results API, filterng for a specific creator, returning the P50 (median) duration watched.
{
"startTime": "2023-07-15 12:00:00",
"endTime": "2023-08-15 12:00:00",
"aggregationId": 1,
"calculation": "PERCENTILES",
"percentile": 0.5,
"groupingFilters": [
{
"grouping": "@.creator.id",
"filters": [
"belieber123"
],
"returnGroupingValues": false
}
]
}
By using the recalculatedInterval parameter, we can retrieve monthly results without needing to implement a separate aggregation. Because we use the APPROX_COUNT_DISTINCT
calculation, we eliminate duplicate viewers per time period.
{
"startTime": "2023-07-15 12:00:00",
"endTime": "2023-12-15 12:00:00",
"aggregationId": 2,
"calculation": "APPROX_COUNT_DISTINCT",
"groupingFilters": [
{
"grouping": "@.creator.id",
"filters": [
"belieber456"
],
"returnGroupingValues": false
}
],
"recalculatedInterval": {
"type": "MONTH",
"frequency": 1
}
}
To generate a report for specific regions, we add in another item to groupingFilters
.
{
"startTime": "2023-07-15 12:00:00",
"endTime": "2023-08-15 12:00:00",
"aggregationId": 1,
"calculation": "PERCENTILES",
"percentile": 0.5,
"groupingFilters": [
{
"grouping": "@.creator.id",
"filters": [
"belieber123"
],
"returnGroupingValues": false
},
{
"grouping": "@.geo.region",
"filters": [
"USA",
"EU",
"AUS"
],
"returnGroupingValues": true
}
]
}
What is a filter?
A filter is the building block for your real-time aggregation. It defines what data matters, how you want to group your aggregations and at what interval. Learn more here
How many aggregations do I get per filter?
You can add up to 10 aggregations per filter. Each aggregation can contain 1-6 calculations, so you don’t need to worry about separate aggregations for Counts vs Sums etc.