API Setup Guide
API Endpoint
This endpoint allows you to access reporting parameters. Passing the request parameters will return a response with the requested data.
API Request Parameters
start_date
Yes
The first date of your reporting request
end_date
Yes
The last date of your reporting request
api_key
Yes
API key provided by HyprMX
app_id
No
Distributor ID provided by HyprMX
group_by
No
Fields to group results by. We currently support country and placement. If specifying both, separate with a comma, i.e. group_by=country,placement
API Response Fields
app_id
String
Numeric identifier for your app
app_name
String
Name of your app
app_platform
String
Platform for your app (e.g. “iOS”, “Android”)
completions
String
Total number of completions
country
String (optional)
Lower case ISO Alpha-2 country code (e.g. “us”). Only included if group_by=country is present in request.
date
String
The date in the format YYYY-MM-DD
impressions
String
Total number of impressions
placement_name
String (optional)
Name of your placement. Only included if group_by=placement is present in request.
placement_type
String (optional)
Type of placement (“rewarded” or “interstitial”). Only included if group_by=placement param is present in request.
revenue ($)
String
Total revenue earned
Request and Response Example
For example, if you were requesting data for 9/1/2021 through 9/2/2021 for a publisher with an API key of FFFAAAZZZZ, you would make the following request:
HyprMX will respond with a JSON response with revenue data by date, distributor, and country.
{
"currency": "usd",
"results": [
{
"date": "2021-09-01",
"app_id": "1",
“app_name”: “my app”,
“app_platform”: “iOS”,
“placement_name”: “my placement”,
“placement_type”: “rewarded”,
"revenue": "0.11",
"impressions": "16",
"completions": "12",
"country": "us"
},
{
"date": "2021-09-02",
"app_id": "1",
“app_name”: “my app”,
“app_platform”: “iOS”,
“placement_name”: “my placement”,
“placement_type”: “rewarded”,
"revenue": "0.01",
"impressions": "3",
"completions": "1",
"country": "us"
}
}
Last updated