Statistics
POST /stats
Retrieve the statistics of your organizations in JSON Format.
Overall statistics
Overall statistics by day
Overall statistics by day in descending order
Statistics by day and asset
POST /stats/xls
This has the same API as the /stats route. It returns an excel version of the stats instead of a JSON.
POST /stats/csv
This has the same API as the /stats route. It returns a CSV version of the stats instead of a JSON.
Body parameters
The parameters with a star "*" are mandatory.
filters*: object
object
Filtering to apply to the stats
from*:
string
, requiredFormat:
YYYY-MM-DD
to*:
string
, requiredFormat:
YYYY-MM-DD
organizations:
uuid[]
Format:
["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", ...]
assets:
string[]
Format:
["OGY-XXXXXXXX", ...]
asset_types:
string[]
Format:
["ANDROID", "IOS", "WEB"]
ad_units:
uuid[]
Format:
["yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",…]
countries:
string[]
Format:
["FR", "IT", …]
formats:
string[]
Format:
["interstitial", ...]
integration_types:
string[]
Format:
["standard_integration", "header_bidding"]
device_types:
string[]
Format:["mobile", "desktop"]
metrics: string[]
string[]
One or more of:
impressions
revenues
ecpm
requests
Format: ["impressions", ...]
groups: string[]
string[]
One or more of:
date
organization
asset
asset_type
country
ad_unit
format
integration_type
device_types
Format: ["date", ...]
orders: string[]
string[]
Any fields in metrics and groups with support of descending order.
Format: ["date", "revenues", "organization"]
For descending order: ["date:desc", ...]
You can mixed both.
date_group: string (default day)
string (default day)
When date is grouped, aggregate by
month
week
day
date_group_limit: integer
integer
Pickup dates across the available dates from the groups
offset: integer
integer
You can use offset and limit to get a part of the result (pagination).
limit: integer
integer
Limit the number of date after the offset
Last updated
Was this helpful?