GET /offerStats (advertiser) API documentation
These are the API docs of the demo platform. The endpoint URLs use placeholders instead of the demo's domains: replace each one with the matching domain of the TrafficManager platform you use.
{platform_domain}: the domain where you log in{tracking_domain}: the domain of the tracking links{postback_domain}: the domain of the postback URLs
Get the same data available in the Offer reports (advertiser revenues by date, country, offer or user_id)
GET https://{platform_domain}/api/v1.2/offerStats/{startTime}/{endTime}/
Authentication:
The request must be authenticated with the following HTTP headers:x-api-key: Your API key, found on the Security pagex-user-id: Your User ID, found on 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. Any value accepted by strtotime (a Unix timestamp needs the@prefix, for example@1700000000). For example:2023-01-01,today,-10 minutes...endTime: End time. Any value accepted by strtotime (a Unix timestamp needs the@prefix, for example@1700000000). For example:2023-01-01 23:59:59,today 23:59:59,-5 minutes...- Optional:
-
user_id: This parameter is available only if authenticated as an admin. If set, data will be fetched for the user with that ID. -
groupBy(default:date,offer): comma-separated list that can contain the following values:date,offer,user,landingpage(no space allowed)
offer_id: offer ID filter (if set, returns only the data for that offer)cc: country filter (two-letter country code), if set, returns only the data for that country.timezone: timezone. Valid values are listed here: Timezones. If not set, the network default timezone (UTC) will be used.
Returned values:
-
The rows are not in a
datalist: each row has its own key ("0","1"...) next tostatus, and without rows onlystatusis returned.
Each row will contain these fields. If a group (for example user or landingpage) is not added to thegroupByparameter, its fields will be an empty string. - Date (format: YYYY-MM-DD)
- Offer ID and name (format: "#
id-name") - Offer notes
- Affiliate ID
- Landing page ID and name (format: "
id-name") - Number of impressions (
-when there are none) - Number of clicks
- Number of unique clicks
- Number of leads
- Number of conversions
- Metric 1 (CR (%))
- Metric 2 (Cost/click)
- Metric 3 (Cost/uq. click)
- Total cost
Request example
GET https://{platform_domain}/api/v1.2/offerStats/yesterday/yesterday/
Response example
{
"0": [
"2026-11-15",
"#830 - Private offer - Exclusive offer XYZ",
"",
"",
"",
"51349",
"4672",
"1354",
67,
"28",
"0.6%",
"0.01",
"0.04",
"56.00"
],
"1": [
"2026-11-15",
"#542 - Special offer ABC",
"",
"",
"",
"2474900", "202941", "40588", 6211, "1014", "0.5%",
"0.01",
"0.05",
"2028.00"
],
"status": 200
}
Request example
GET https://{platform_domain}/api/v1.2/offerStats/yesterday/yesterday/?groupBy=offer,user
Response example
{
"0": [
"",
"#830 - Private offer - Exclusive offer XYZ",
"EU traffic only",
"123",
"",
"-",
"3120",
"1060",
40,
"17",
"0.5%",
"0.01",
"0.03",
"34.00"
],
"status": 200
}
English
Dansk
Deutsch
Español
Suomi
Italiano
한국어
Português
Română
Українська
Русский
Svenska
中文