# Statistics API Documentation

The Statistics API enables the export and evaluation of aggregated performance data within the partner program system. It provides different types of statistics, such as evaluations by day, campaign, project, or ad media, thereby supporting performance analysis and optimization.

All APIs can be accessed within the user interface under the **Data API** menu item.

---

### API Call

`https://<strong>www.domain.de</strong>/api//<strong>ACCESS-TOKEN</strong>/admin/<strong>ID</strong>/get-statistic_daily<strong>.csv</strong>`

<table data-path-to-node="7" id="bkmrk-value-description-ww"><thead><tr><td>**Value**</td><td>**Description**</td></tr></thead><tbody><tr><td><span data-path-to-node="7,1,0,0">**www.domain.de**</span></td><td><span data-path-to-node="7,1,1,0">Partner program system domain</span></td></tr><tr><td><span data-path-to-node="7,2,0,0">**ACCESS-TOKEN**</span></td><td><span data-path-to-node="7,2,1,0">User's Access Token</span></td></tr><tr><td><span data-path-to-node="7,3,0,0">**ID**</span></td><td><span data-path-to-node="7,3,1,0">User ID</span></td></tr><tr><td><span data-path-to-node="7,4,0,0">**get-statistic\_{Statistics-Type}**</span></td><td><span data-path-to-node="7,4,1,0">Type of statistics (e.g., daily-based, etc.)</span></td></tr><tr><td><span data-path-to-node="7,5,0,0">**.csv**</span></td><td><span data-path-to-node="7,5,1,0">Download file format</span></td></tr></tbody></table>

---

### Statistics API Filtering

Various parameters can be used as filters for the Statistics API. Below is an overview of all available parameters:

#### Statistics Types

<table data-path-to-node="12" id="bkmrk-statistics-type-para"><thead><tr><td>**Statistics Type**</td><td>**Parameter**</td></tr></thead><tbody><tr><td><span data-path-to-node="12,1,0,0">Statistics by day</span></td><td><span data-path-to-node="12,1,1,0">`get-statistic_daily`</span></td></tr><tr><td><span data-path-to-node="12,2,0,0">Statistics by advertiser</span></td><td><span data-path-to-node="12,2,1,0">`get-statistic_advertiser`</span></td></tr><tr><td><span data-path-to-node="12,3,0,0">Statistics by campaigns</span></td><td><span data-path-to-node="12,3,1,0">`get-statistic_campaign`</span></td></tr><tr><td><span data-path-to-node="12,4,0,0">Statistics by ad media</span></td><td><span data-path-to-node="12,4,1,0">`get-statistic_media`</span></td></tr><tr><td><span data-path-to-node="12,5,0,0">Statistics by publisher</span></td><td><span data-path-to-node="12,5,1,0">`get-statistic_publisher`</span></td></tr><tr><td><span data-path-to-node="12,6,0,0">Statistics by project</span></td><td><span data-path-to-node="12,6,1,0">`get-statistic_project`</span></td></tr><tr><td><span data-path-to-node="12,7,0,0">Statistics by SubID</span></td><td><span data-path-to-node="12,7,1,0">`get-statistic_subid`</span></td></tr><tr><td><span data-path-to-node="12,8,0,0">Statistics by referrer</span></td><td><span data-path-to-node="12,8,1,0">`get-statistic_referrer`</span></td></tr><tr><td><span data-path-to-node="12,9,0,0">Statistics by channel</span></td><td><span data-path-to-node="12,9,1,0">`get-statistic_channel`</span></td></tr><tr><td><span data-path-to-node="12,10,0,0">Statistics by commission group</span></td><td><span data-path-to-node="12,10,1,0">`get-statistic_provisionsgroup`</span></td></tr><tr><td><span data-path-to-node="12,11,0,0">Statistics by trigger</span></td><td><span data-path-to-node="12,11,1,0">`get-statistic_trigger`</span></td></tr><tr><td><span data-path-to-node="12,12,0,0">Statistics by journey</span></td><td><span data-path-to-node="12,12,1,0">`get-statistic_journey`</span></td></tr><tr><td><span data-path-to-node="12,13,0,0">Statistics by A/B test</span></td><td><span data-path-to-node="12,13,1,0">`get-statistic_abtest`</span></td></tr><tr><td><span data-path-to-node="12,14,0,0">Statistics by device type</span></td><td><span data-path-to-node="12,14,1,0">`get-statistic_devicetype`</span></td></tr><tr><td><span data-path-to-node="12,15,0,0">Statistics by device</span></td><td><span data-path-to-node="12,15,1,0">`get-statistic_device`</span></td></tr><tr><td><span data-path-to-node="12,16,0,0">Statistics by browser</span></td><td><span data-path-to-node="12,16,1,0">`get-statistic_browser`</span></td></tr><tr><td><span data-path-to-node="12,17,0,0">Statistics by operating system</span></td><td><span data-path-to-node="12,17,1,0">`get-statistic_os`</span></td></tr><tr><td><span data-path-to-node="12,18,0,0">Statistics by country</span></td><td><span data-path-to-node="12,18,1,0">`get-statistic_geocountry`</span></td></tr><tr><td><span data-path-to-node="12,19,0,0">Manual statistics</span></td><td><span data-path-to-node="12,19,1,0">`get-statistic_manualstatistics`</span></td></tr></tbody></table>

#### General Filter Parameters

<table data-path-to-node="14" id="bkmrk-parameter-value-%2F-ex"><thead><tr><td>**Parameter**</td><td>**Value / Example**</td><td>**Description**</td></tr></thead><tbody><tr><td><span data-path-to-node="14,1,0,0">`condition[period][from]`</span></td><td>`<span data-path-to-node="14,1,1,0">01.01.2025</span>`</td><td><span data-path-to-node="14,1,2,0">Start date of the statistics</span></td></tr><tr><td><span data-path-to-node="14,2,0,0">`condition[period][to]`</span></td><td>`<span data-path-to-node="14,2,1,0">31.01.2025</span>`</td><td><span data-path-to-node="14,2,2,0">End date of the statistics</span></td></tr><tr><td><span data-path-to-node="14,3,0,0">`condition[paymentstatus]`</span></td><td>`all` = all

  
`0` = unpaid

  
`1` = paid

</td><td><span data-path-to-node="14,3,2,0">Filters by payout status</span></td></tr><tr><td><span data-path-to-node="14,4,0,0">`condition[dynamicdate]`</span></td><td>`currentmonth` = current month

  
`lastmonth` = previous month

  
`currentweek` = current week

  
`last10d` = last 10 days

</td><td><span data-path-to-node="14,4,2,0">Dynamic time periods</span></td></tr><tr><td><span data-path-to-node="14,5,0,0">`condition[l:publisher]`</span></td><td>`<span data-path-to-node="14,5,1,0">1234,5678</span>`</td><td><span data-path-to-node="14,5,2,0">Filters by publisher IDs</span></td></tr><tr><td><span data-path-to-node="14,6,0,0">`condition[project_id]`</span></td><td>`<span data-path-to-node="14,6,1,0">12345</span>`</td><td><span data-path-to-node="14,6,2,0">Filters by project IDs</span></td></tr><tr><td><span data-path-to-node="14,7,0,0">`condition[bruttodata]`</span></td><td>`<span data-path-to-node="14,7,1,0">true</span>`</td><td><span data-path-to-node="14,7,2,0">Returns gross figures (e.g., clicks/views)</span></td></tr><tr><td><span data-path-to-node="14,8,0,0">`condition[l:mandant]`</span></td><td>`<span data-path-to-node="14,8,1,0">1</span>`</td><td><span data-path-to-node="14,8,2,0">Filters by client (tenant) IDs</span></td></tr><tr><td><span data-path-to-node="14,9,0,0">`condition[l:advertiser]`</span></td><td>`<span data-path-to-node="14,9,1,0">2,3</span>`</td><td><span data-path-to-node="14,9,2,0">Filters by advertiser IDs</span></td></tr><tr><td><span data-path-to-node="14,10,0,0">`condition[l:campaigns]`</span></td><td>`<span data-path-to-node="14,10,1,0">1,3</span>`</td><td><span data-path-to-node="14,10,2,0">Filters by campaign IDs</span></td></tr></tbody></table>

---

### Breakdown by Additional Criteria (Dynamic Statistics)

The statistics can additionally be **broken down (segmented)** by further criteria. The parameter `condition[l:criterions]` is used for this purpose.

<table data-path-to-node="18" id="bkmrk-parameter-value-desc"><thead><tr><td>**Parameter**</td><td>**Value**</td><td>**Description**</td><td>**Example**</td></tr></thead><tbody><tr><td><span data-path-to-node="18,1,0,0">`condition[l:criterions]`</span></td><td><span data-path-to-node="18,1,1,0">`day`</span></td><td><span data-path-to-node="18,1,2,0">Breakdown by day</span></td><td><span data-path-to-node="18,1,3,0">`condition[l:criterions]=day`</span></td></tr><tr><td> </td><td><span data-path-to-node="18,2,1,0">`publisher`</span></td><td><span data-path-to-node="18,2,2,0">Breakdown by publisher</span></td><td><span data-path-to-node="18,2,3,0">`condition[l:criterions]=publisher`</span></td></tr><tr><td> </td><td><span data-path-to-node="18,3,1,0">`media`</span></td><td><span data-path-to-node="18,3,2,0">Breakdown by ad media</span></td><td><span data-path-to-node="18,3,3,0">`condition[l:criterions]=media`</span></td></tr><tr><td> </td><td><span data-path-to-node="18,4,1,0">`advertiser`</span></td><td><span data-path-to-node="18,4,2,0">Breakdown by advertiser</span></td><td><span data-path-to-node="18,4,3,0">`condition[l:criterions]=advertiser`</span></td></tr><tr><td> </td><td><span data-path-to-node="18,5,1,0">`campaign`</span></td><td><span data-path-to-node="18,5,2,0">Breakdown by campaign name</span></td><td><span data-path-to-node="18,5,3,0">`condition[l:criterions]=campaign`</span></td></tr><tr><td> </td><td><span data-path-to-node="18,6,1,0">`campaign_id`</span></td><td><span data-path-to-node="18,6,2,0">Breakdown by campaign ID</span></td><td><span data-path-to-node="18,6,3,0">`condition[l:criterions]=campaign_id`</span></td></tr><tr><td><span data-path-to-node="18,7,1,0">**Combination**</span></td><td>e.g., `day,publisher,media`</td><td>Multi-dimensional breakdown

</td><td><span data-path-to-node="18,7,3,0">`condition[l:criterions]=day,publisher,media`</span></td></tr></tbody></table>

---

### Adding KPIs

You can add additional **Key Performance Indicators (KPIs)** to the statistics via the `condition[l:additional_parameters]` parameter.

<table data-path-to-node="22" id="bkmrk-parameter-value-desc-1"><thead><tr><td>**Parameter**</td><td>**Value**</td><td>**Description**</td><td>**Example**</td></tr></thead><tbody><tr><td><span data-path-to-node="22,1,0,0">`condition[l:additional_parameters]`</span></td><td><span data-path-to-node="22,1,1,0">`all`</span></td><td><span data-path-to-node="22,1,2,0">Adds all available KPIs</span></td><td><span data-path-to-node="22,1,3,0">`condition[l:additional_parameters]=all`</span></td></tr></tbody></table>

## Definition of Fields in the Statistics API

The column names of the downloaded file contain the following parameters:

<table data-layout="default" data-number-column="false" data-table-width="760" data-testid="renderer-table" id="bkmrk-feldname-beschreibun" style="width: 100%; height: 1006.02px;"><tbody><tr style="height: 29.7969px;"><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" data-colwidth="340" style="width: 30.2819%; height: 29.7969px;">**fieldname**

</th><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" data-colwidth="340" style="width: 69.7181%; height: 29.7969px;">**description**

</th></tr><tr style="height: 63.3906px;"><td data-colwidth="340" style="width: 30.2819%; height: 63.3906px;">`criterion`

</td><td data-colwidth="340" style="width: 69.7181%; height: 63.3906px;">The criterion selected for the statistics. For example, if the statistics are grouped by day, this field displays the respective days. If the statistics are grouped by campaign, the corresponding campaign IDs are displayed here. Generally, this field outputs the ID.

</td></tr><tr style="height: 46.5938px;"><td data-colwidth="340" style="width: 30.2819%; height: 46.5938px;">`title`

</td><td data-colwidth="340" style="width: 69.7181%; height: 46.5938px;">The name of the corresponding selected criterion (e.g., <span class="citation-1822 citation-1823 citation-1824 citation-end-1824">the name of the campaign or project).</span>

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`leads_open_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Number of open leads.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`leads_confirmed_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Number of confirmed leads.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`leads_canceled_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Number of canceled leads.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`sales_open_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Number of open sales.

</td></tr><tr style="height: 33.4531px;"><td data-colwidth="340" style="width: 30.2819%; height: 33.4531px;">`sales_confirmed_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 33.4531px;"><span data-path-to-node="6,7,0,0">**<span class="citation-1795 citation-1796 citation-end-1796"><sup class="superscript" data-turn-source-index="29"></sup></span><span class="citation-1795 citation-end-1795"><sup class="superscript" data-turn-source-index="30"></sup></span>**</span><span data-path-to-node="6,7,1,0"><span class="citation-1793 citation-1794 citation-end-1794">Number of confirmed sales.</span></span>

</td></tr><tr style="height: 33.4531px;"><td data-colwidth="340" style="width: 30.2819%; height: 33.4531px;">`sales_canceled_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 33.4531px;"><span class="citation-1789 citation-1790 citation-end-1790">Number of canceled sales<sup class="superscript" data-turn-source-index="35"></sup></span><span class="citation-1789 citation-end-1789">.</span>

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`all_open_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total number of open leads and sales combined.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`all_confirmed_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total number of confirmed leads and sales combined.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`all_canceled_count`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total number of canceled leads and sales combined.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`leads_open_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Commission total for open leads.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`leads_confirmed_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Commission total for confirmed leads.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`leads_canceled_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Commission total for canceled leads.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`sales_open_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Commission total for open sales.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`sales_confirmed_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Commission total for confirmed sales.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`sales_canceled_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Commission total for canceled sales.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`all_open_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Total commission for open leads and sales combined.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`all_confirmed_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Total commission for confirmed leads and sales combined.

</td></tr><tr style="height: 30.1094px;"><td style="width: 30.2819%; height: 30.1094px;">`all_canceled_provision`

</td><td style="width: 69.7181%; height: 30.1094px;">Total commission for canceled leads and sales combined.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`views`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Number of views.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`clicks`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Number of clicks.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`epc`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">The calculated average earnings per click.

</td></tr><tr style="height: 46.5938px;"><td data-colwidth="340" style="width: 30.2819%; height: 46.5938px;">`ctr`

</td><td data-colwidth="340" style="width: 69.7181%; height: 46.5938px;">This value indicates how many users actually clicked on the advertising material after seeing it (Click-Through Rate).

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`leads_canceled_turnover`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total shopping cart value of canceled leads.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`leads_open_turnover`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total shopping cart value of open leads.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`leads_confirmed_turnover`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total shopping cart value of confirmed leads.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`sales_canceled_turnover`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total shopping cart value of canceled sales.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`sales_open_turnover`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total shopping cart value of open sales.

</td></tr><tr style="height: 30.1094px;"><td data-colwidth="340" style="width: 30.2819%; height: 30.1094px;">`sales_confirmed_turnover`

</td><td data-colwidth="340" style="width: 69.7181%; height: 30.1094px;">Total shopping cart value of confirmed sales.

</td></tr></tbody></table>