/api/v1/client-api/metrics/analytics/ Retrieve analytics data
Retrieves analytics data for insights on user behavior and performance metrics to further use in charts.
Rate limit: 2 requests per second.
Request body
Specify which chart you need. You can specify only one chart type in each request.
One of: "revenue", "mrr", "arr", "arppu", "subscriptions_active", "subscriptions_new", "subscriptions_renewal_cancelled", "subscriptions_expired", "trials_active", "trials_new", "trials_renewal_cancelled", "trials_expired", "grace_period", "billing_issue", "refund_events", "refund_money", "non_subscriptions", "arpu", "installs"
Enter the date or time period for which you want to retrieve chart data
Enter the comparison date or time period
Filter by the app store where the purchase was made
Filter by the 2-letter country code where the purchase took place
Unique identifier of a product from the app store
Specify the subscription duration
The source integration for attribution
Indicates if the attribution is organic or non-organic
Marketing channel that led to the transaction
Marketing campaign that brought the transaction
Attribution ad group that brought the transaction
Attribution ad set that led to the transaction
Specific visual or text elements in an ad or campaign tracked to measure effectiveness
Specify the offer categories you want to retrieve data for
Specify the offer types you want to retrieve data for
Specify the specific offers you want to retrieve data for
Specify the time interval for aggregating analytics data
One of: "day", "week", "month", "quarter", "year"
Specify which date should be treated as a user joining date
One of: "purchase_date", "profile_install_date"
Sets the basis for segmentation
Specify the export file format
One of: "json", "csv"
Responses
Analytics data retrieved successfully
Schema
Response containing analytics data for the requested chart type
Object containing different metric types (revenue, proceeds, net_revenue, etc.)
Example
{
"data": {
"revenue": {
"data": [],
"value": 0,
"value_from": null,
"value_to": null,
"compare_value_from": null,
"compare_value_to": null,
"title": "revenue",
"type": "multi",
"default_aggregation": "sum",
"description": "<div>Total money received from both subscriptions and one-time purchases. Does not include\nrevenue from subscriptions and purchases that were refunded afterward. Calculated before the store's fee.<br />\nFor example, there were 5 monthly $10 subs, 1 yearly $100 sub and 10 one-time $50 purchases today,<br />\nrevenue = 5*$10 + 1*$100 + 10*$50 = $650</div>",
"metric_name": "Revenue",
"is_json": true,
"unit": "USD",
"recommended_period": null
},
"proceeds": {
"data": [],
"value": 0,
"value_from": null,
"value_to": null,
"compare_value_from": null,
"compare_value_to": null,
"title": "revenue",
"type": "multi",
"default_aggregation": "sum",
"description": "<div>Total money received from both subscriptions and one-time purchases. Does not include\nrevenue from subscriptions and purchases that were refunded afterward. Calculated before the store's fee.<br />\nFor example, there were 5 monthly $10 subs, 1 yearly $100 sub and 10 one-time $50 purchases today,<br />\nrevenue = 5*$10 + 1*$100 + 10*$50 = $650</div>",
"metric_name": "Revenue",
"is_json": true,
"unit": "USD",
"recommended_period": null
},
"net_revenue": {
"data": [],
"value": 0,
"value_from": null,
"value_to": null,
"compare_value_from": null,
"compare_value_to": null,
"title": "revenue",
"type": "multi",
"default_aggregation": "sum",
"description": "<div>Total money received from both subscriptions and one-time purchases. Does not include\nrevenue from subscriptions and purchases that were refunded afterward. Calculated before the store's fee.<br />\nFor example, there were 5 monthly $10 subs, 1 yearly $100 sub and 10 one-time $50 purchases today,<br />\nrevenue = 5*$10 + 1*$100 + 10*$50 = $650</div>",
"metric_name": "Revenue",
"is_json": true,
"unit": "USD",
"recommended_period": null
}
}
} Bad Request
Schema
Unauthorized
Schema
Rate limit exceeded. Maximum 2 requests per second per API key.