GET /admin/offerStats  API documentation

Get the offer revenues reports (similar to the Offers 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 page
  • x-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)
  • offer_id: offer ID filter (if set, returns only the data for that offer)
  • groupBy: additional time grouping. Allowed values:
    • (empty): no grouping by date/hour
    • date: group by date (format: YYYY-MM-DD)
    • hour: group by hour (format: YYYY-MM-DD HH:00:00). Requires the timeStats feature
    Note: Results are always grouped by offer for this endpoint; groupBy adds 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 example

GET https://demo.trafficmanager.com/api/v1.2/admin/offerStats/2026-02-20/2026-02-27/

Response example

{
    "data":[
        [
            "2026-02-20 - 2026-02-27",
            1,
            "Offer 0",
            421808,
            39228,
            9414,
            852,
            666,
            "0.00",
            "12.3%",
            "0.00",
            0.67,
            0.76,
            0.09
        ],
        [
            "2026-02-20 - 2026-02-27",
            2,
            "Offer 2 mainstream CPC",
            2097472,
            31462,
            11011,
            1881,
            503,
            "0.03",
            "40.1%",
            "0.00",
            9.56,
            15.96,
            6.4
        ]
    ],
    "status":200
}