GET /admin/offerStats API documentation
Get the offer revenues reports (similar to the Erbjudanden tab of the admin dashboard).
GET https://demo.trafficmanager.com/api/v1.2/admin/offerStats/{startTime}/{endTime}/
Authentication:
The request must be authenticated with the following HTTP headers:x-api-key: Your API key, found in the Security pagex-user-id: Your User ID, found in the Security page
If the HTTP headers are not passed, but you are logged in to the TrafficManager panel, the current user is used instead (so you can easily preview or download the data using your browser)
GET Parameters:
- Required:
startTime: Start time. Unix timestamp or any value accepted by strtotime. For example:2023-01-01,today,-10 minutes...endTime: End time. Unix timestamp or any value accepted by strtotime. For example:2023-01-01 23:59:59,today 23:59:59,-5 minutes...- Optional:
user_id: affiliate ID filter (if set, returns only the data for that affiliate)affiliate_group_id: numeric affiliate group ID filter (if set, returns only the data for affiliates in that group). Affiliate groups are managed here.offer_id: offer ID filter (if set, returns only the data for that offer)country: country filter (2-letter country code, example:IT)category: main category filter (name likeEXAMPLEor main category ID)groupBy: additional time grouping. Allowed values:(empty): no grouping by date/hourdate: group by date (format: YYYY-MM-DD)hour: group by hour (format: YYYY-MM-DD HH:00:00). Requires the timeStats feature
groupByadds optional time grouping.timezone: timezone. Valid values are listed here: Timezones. If not set, the network default timezone (UTC) will be used.
Returned values:
- The response is a JSON where every row has the following data:
- Date
- Offer ID
- Offer name
- Number of impressions
- Number of clicks
- Number of unique clicks
- Number of leads
- Number of conversions
- Metric 1 (CR (%))
- Metric 2 (EPC)
- Metric 3 (ROI)
- Total payout to the affiliate
- Total revenues
- Total profit (revenues - payout)
Request examples
GET https://demo.trafficmanager.com/api/v1.2/admin/offerStats/2026-05-21/2026-05-28/?country=RO&category=EXAMPLE
GET https://demo.trafficmanager.com/api/v1.2/admin/offerStats/2026-05-21/2026-05-28/?user_id=123&affiliate_group_id=1&offer_id=456&country=RO&category=EXAMPLE&groupBy=date
Response example
{
"data":[
[
"2026-05-21 - 2026-05-28",
1,
"Offer 0",
421808,
39228,
9414,
852,
666,
"0.00",
"12.3%",
"0.00",
0.67,
0.76,
0.09
],
[
"2026-05-21 - 2026-05-28",
2,
"Offer 2 mainstream CPC",
2097472,
31462,
11011,
1881,
503,
"0.03",
"40.1%",
"0.00",
9.56,
15.96,
6.4
]
],
"status":200
}
English
العربية
Dansk
Deutsch
Español
Suomi
Italiano
Português
Română
Русский
中文