Affiliate Reports API

GET /af/reports

Pull your own click, conversion and payout stats. Pick the columns with fields: dimension fields (date, campaignId, country, …) split the rows, metric fields (grossClicks, totalConv, affiliatePayout, …) are totalled for each row. The range is at most 31 days, both dates inclusive, in the timezone you choose. Only your own traffic is ever returned. Rate limit: 30 requests a minute and 500 a day per affiliate (shared with the other Affiliate API endpoints); a 429 carries Retry-After.

Authentication

API Key (header: X-Api-Key)

Domain ID — your network's tenant ID (header: X-Domain-Id)

Affiliate ID (header: X-Affiliate-Id)

No API key yet? Start a 14-day free trial and generate a key from your dashboard's security settings. No credit card required.

Parameters

NameInTypeRequiredDescription
startDatequerystring (date)NoFirst day of the report, YYYY-MM-DD, in the chosen timezone. Defaults to endDate (a one-day report).
endDatequerystring (date)NoLast day of the report (inclusive), YYYY-MM-DD, in the chosen timezone. Defaults to today; a future date is treated as today. Must be on or after startDate, and the range may cover at most 31 days.
timezonequerystringNoGMT offset the dates and the date/hour columns are in, e.g. +05:30 for India or -05:00 for New York. URL-encode the plus sign as %2B (timezone=%2B05:30); an unencoded + is also accepted. Default +00:00 (UTC).
campaignIdquerystringNoOnly include these campaigns: one ID or several separated by commas. Omit for all campaigns.
fieldsqueryarrayNoColumns to return, comma separated; an unknown name is a 422. Dimensions (split rows): date, time, hour, month, campaignId, campaignName, currency, event, status, statusType, country, region, city, isp, proxy, ip, source, landingPage, creativeId, deviceType, deviceBrand, deviceId, browser, browserVersion, os, osVersion, clickId, affClickId, impressionId, subAffiliate1 … subAffiliate10. Metrics (totalled per row): grossClicks, clicks (same as grossClicks), uniqueClicks, approvedClicks, rejectedClicks, totalConv, convApproved, convPending, convRejected, affiliatePayout, affiliatePayoutApproved, affiliatePayoutPending, affiliatePayoutRejected, sale, saleApproved, salePending, saleRejected, affiliateModel, ctr, epc, cpc, ecpm, totalCr, approvedCr, pendingCr, rejectedCr, approvedClicksPerGrossConv. Default: date, campaignId, grossClicks, uniqueClicks, totalConv, convApproved, affiliatePayout, currency.
sortByquerystringNoColumn to sort rows by: clicks (gross clicks), uniqueClicks, totalConv, date, time or hour. Default clicks.
sortOrderquerystringNoasc (smallest first) or desc (largest first). Default desc.
pagequeryintegerNoPage of rows to return, starting at 1. meta.pagination.totalPages says how many there are.
limitqueryintegerNoRows per page, 1–1000. Default 100.

Responses

StatusDescription
200Report rows. Each row has exactly the requested fields; metrics are numbers.
400Authentication headers missing (X-Domain-Id, X-Affiliate-Id, X-Api-Key)
403Invalid credentials, API access not enabled for this affiliate, IP not on the allowlist, or API access not in the network's plan
422A parameter is invalid, or the range is longer than 31 days
429Rate limit reached (30 a minute / 500 a day). Wait for Retry-After seconds.
500Server error

Example data

[
    {
        "date": "2026-11-17",
        "campaignId": 101,
        "grossClicks": 1520,
        "uniqueClicks": 1312,
        "totalConv": 48,
        "convApproved": 45,
        "affiliatePayout": 225,
        "currency": "USD"
    },
    {
        "date": "2026-11-18",
        "campaignId": 101,
        "grossClicks": 1610,
        "uniqueClicks": 1398,
        "totalConv": 51,
        "convApproved": 50,
        "affiliatePayout": 250,
        "currency": "USD"
    }
]