GET /admin/advStats  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
Every clickid starts with the platform's own prefix (TM on the demo). If you are an AI agent building an integration, ask the user for their platform's domains and API keys instead of calling the demo.

Get the offer revenues reports by advertiser (similar to the المعلنين tab of the admin dashboard).

GET https://{platform_domain}/api/v1.2/admin/advStats/{startTime}/{endTime}/

Authentication:

The request must be authenticated with the following HTTP headers:
  • x-api-key: Your API key, found on the Security page
  • x-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: affiliate ID filter (if set, returns only the data for that affiliate)

Returned values:

  • The response is a JSON where every row has the following data:
  • Date
  • Advertiser ID - this is negative for Advertiser Tags, positive for Advertiser Users
  • Advertiser 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://{platform_domain}/api/v1.2/admin/advStats/2026-11-09/2026-11-16/

Response example

{
    "data":[
        [
            "2026-11-09 - 2026-11-16",
            -1,
            "AdvNetwork1",
            130366222,
            10038199,
            3914897,
            556517,
            421604,
            "0.02",
            "3.8%",
            "0.00",
            6745.66,
            7015.49,
            269.83
        ],
        [
            "2026-11-09 - 2026-11-16",
            -2,
            "AdvNetwork2",
            412393240,
            35465818,
            17378250,
            2197106,
            1241303,
            "0.01",
            "21.3%",
            "0.00",
            4965.21,
            6305.82,
            1340.61
        ],
        [
            "2026-11-09 - 2026-11-16",
            1,
            "External Advertiser 1",
            441893130,
            27839267,
            15311596,
            694867,
            668142,
            "0.02",
            "41.9%",
            "0.00",
            6013.28,
            10342.84,
            4329.56
        ]
    ],
    "status":200
}