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
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.

Advertiser attribution is historical for new events. Clicks keep their initial supplier; conversions and financial changes use the final supplier. Legacy unattributed amounts follow the current offer owner. Existing column order, numeric formats and ratio formulas are unchanged; rerouting can affect CR and EPC.

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: An API token, created on the Security page
  • x-user-id: Your User ID, found on the Security page

A token is shown only once, when it is created, and expires after the period chosen then (30, 90 or 365 days). A read-only token is accepted by GET and HEAD requests and by the endpoints that only return data; any other request answers HTTP 403, and so do the endpoints that return a key able to write, such as the postback URL. API keys issued before tokens were introduced keep working with the same headers, but can no longer be displayed.

When you are logged in to the TrafficManager panel, you can open a GET endpoint in your browser to preview or download data. The request uses your panel session without the API headers.

Authenticated GET and HEAD requests share a limit of 100 requests per minute per account and client IP, across endpoints and API versions. On HTTP 429, wait the number of seconds in the Retry-After header before retrying. Write requests are exempt from this quota. Read endpoints that also accept other HTTP methods count those requests too.

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 data list: each row has its own key ("0", "1"...) next to status, and without rows only status is returned.
    Each row will contain these fields. If a group (for example user or landingpage) is not added to the groupBy parameter, 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-12-03",
        "#830 - Private offer - Exclusive offer XYZ",
        "",
        "",
        "",
        "51349",
        "4672",
        "1354",
        67,
        "28",
        "0.6%",
        "0.01",
        "0.04",
        "56.00"
    ],
    "1": [
        "2026-12-03",
        "#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
}