# Statistik API - Dokumentation

Die Statistik API ermöglicht den Export und die Auswertung aggregierter Leistungsdaten im Rahmen des Partnerprogramm-Systems. Sie stellt unterschiedliche Statistik-Arten bereit, wie z. B. Auswertungen nach Tag, Kampagne, Projekt oder Werbemittel, und unterstützt so bei der Performance-Analyse und Optimierung.

Alle APIs können im User-Interface unter dem Menüpunkt **Daten-API** verwendet werden.

---

## API-Aufruf

<div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary" id="bkmrk-https%3A%2F%2Fwww.domain.d"><div class="overflow-y-auto p-4" dir="ltr">https://**www.<span class="hljs-keyword">domain</span>.de**/api//**<span class="hljs-keyword">ACCESS</span>-TOKEN**/<span class="hljs-keyword">publisher</span>/**ID**/get-statistic_**daily.csv**</div><div class="overflow-y-auto p-4" dir="ltr"><table class="w-fit min-w-(--thread-content-width)" data-end="1483" data-start="768"><thead data-end="814" data-start="768"><tr data-end="814" data-start="768"><th data-col-size="sm" data-end="780" data-start="768">Wert</th><th data-col-size="xl" data-end="814" data-start="798">Beschreibung</th></tr></thead><tbody data-end="1483" data-start="864"><tr data-end="953" data-start="864"><td data-col-size="sm" data-end="892" data-start="864">www.domain.de</td><td data-col-size="xl" data-end="953" data-start="907">System-Partnerprogramm</td></tr><tr><td>ACCESS-TOKEN</td><td>Access Token des Users</td></tr><tr><td>ID</td><td>User-ID</td></tr><tr><td>get-statistic\_{Statistik-Art}</td><td>Art der Statistik (z.B. Tagesbasiert, etc.)</td></tr><tr><td>.csv</td><td>Art des Downloads</td></tr></tbody></table>

</div></div>## Statistik-API Filterung

<div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary" id="bkmrk--1"><div class="overflow-y-auto p-4" dir="ltr">  
</div></div>Für die Statistik API können verschiedene Parameter als Filter verwendet werden.  
Nachfolgend eine Übersicht aller verfügbaren Parameter:

<div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary" id="bkmrk-statistik-arten-stat"><div class="overflow-y-auto p-4" dir="ltr"><div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary" id="bkmrk-statistik-arten"><div class="overflow-y-auto p-4" dir="ltr">**Statistik-Arten**</div></div><div class="overflow-y-auto p-4" dir="ltr" id="bkmrk--2"></div><div class="overflow-y-auto p-4" dir="ltr"><table class="w-fit min-w-(--thread-content-width)" data-end="1547" data-start="446" style="width: 81.1905%; height: 300.156px;"><thead data-end="475" data-start="446"><tr data-end="475" data-start="446" style="height: 29.7969px;"><th data-col-size="sm" data-end="462" data-start="446" style="width: 51.1364%; height: 29.7969px;">Statistik-Art</th><th data-col-size="sm" data-end="475" data-start="462" style="width: 48.8636%; height: 29.7969px;">Parameter</th></tr></thead><tbody data-end="1547" data-start="508"><tr data-end="554" data-start="508" style="height: 30.1094px;"><td data-col-size="sm" data-end="529" data-start="508" style="width: 51.1364%; height: 30.1094px;">Statistik nach Tag</td><td data-col-size="sm" data-end="554" data-start="529" style="width: 48.8636%; height: 30.1094px;">`get-statistic_daily`</td></tr><tr data-end="669" data-start="614" style="height: 30.1094px;"><td data-col-size="sm" data-end="641" data-start="614" style="width: 51.1364%; height: 30.1094px;">Statistik nach Kampagnen</td><td data-col-size="sm" data-end="669" data-start="641" style="width: 48.8636%; height: 30.1094px;">`get-statistic_campaign`</td></tr><tr data-end="724" data-start="670" style="height: 30.1094px;"><td data-col-size="sm" data-end="699" data-start="670" style="width: 51.1364%; height: 30.1094px;">Statistik nach Werbemittel</td><td data-col-size="sm" data-end="724" data-start="699" style="width: 48.8636%; height: 30.1094px;">`get-statistic_media`</td></tr><tr data-end="834" data-start="782" style="height: 30.1094px;"><td data-col-size="sm" data-end="807" data-start="782" style="width: 51.1364%; height: 30.1094px;">Statistik nach Projekt</td><td data-col-size="sm" data-end="834" data-start="807" style="width: 48.8636%; height: 30.1094px;">`get-statistic_project`</td></tr><tr data-end="883" data-start="835" style="height: 30.1094px;"><td data-col-size="sm" data-end="858" data-start="835" style="width: 51.1364%; height: 30.1094px;">Statistik nach SubID</td><td data-col-size="sm" data-end="883" data-start="858" style="width: 48.8636%; height: 30.1094px;">`get-statistic_subid`</td></tr><tr data-end="938" data-start="884" style="height: 30.1094px;"><td data-col-size="sm" data-end="910" data-start="884" style="width: 51.1364%; height: 30.1094px;">Statistik nach Referrer</td><td data-col-size="sm" data-end="938" data-start="910" style="width: 48.8636%; height: 30.1094px;">`get-statistic_referrer`</td></tr><tr data-end="1114" data-start="1062" style="height: 30.1094px;"><td data-col-size="sm" data-end="1087" data-start="1062" style="width: 51.1364%; height: 30.1094px;">Statistik nach Trigger</td><td data-col-size="sm" data-end="1114" data-start="1087" style="width: 48.8636%; height: 30.1094px;">`get-statistic_trigger`</td></tr><tr style="height: 29.7969px;"><td style="width: 51.1364%; height: 29.7969px;">Statistik nach Transaktionen</td><td style="width: 48.8636%; height: 29.7969px;">`get-statistic_transactions`</td></tr><tr style="height: 29.7969px;"><td style="width: 51.1364%; height: 29.7969px;">Statistik nach Baskets</td><td style="width: 48.8636%; height: 29.7969px;">`get-orders_baskets`</td></tr></tbody></table>

</div></div></div><table class="w-fit min-w-(--thread-content-width)" data-end="2851" data-start="1888" id="bkmrk-parameter-wert-%2F-bei" style="width: 74.2857%; height: 441.453px;"><thead data-end="1934" data-start="1888"><tr data-end="1934" data-start="1888" style="height: 29.7969px;"><th data-col-size="sm" data-end="1900" data-start="1888" style="width: 34.3508%; height: 29.7969px;">Parameter</th><th data-col-size="lg" data-end="1918" data-start="1900" style="width: 36.1152%; height: 29.7969px;">Wert / Beispiel</th><th data-col-size="md" data-end="1934" data-start="1918" style="width: 29.5366%; height: 29.7969px;">Beschreibung</th></tr></thead><tbody data-end="2851" data-start="1984"><tr data-end="2055" data-start="1984" style="height: 30.1094px;"><td data-col-size="sm" data-end="2012" data-start="1984" style="width: 34.3508%; height: 30.1094px;">`condition[period][from]`</td><td data-col-size="sm" data-end="907" data-start="892" style="width: 36.1152%; height: 30.1094px;">`01.01.2025`</td><td data-col-size="md" data-end="2055" data-start="2027" style="width: 29.5366%; height: 30.1094px;">Startdatum der Statistik</td></tr><tr data-end="2123" data-start="2056" style="height: 30.1094px;"><td data-col-size="sm" data-end="2082" data-start="2056" style="width: 34.3508%; height: 30.1094px;">`condition[period][to]`</td><td data-col-size="sm" data-end="995" data-start="980" style="width: 36.1152%; height: 30.1094px;">`31.01.2025`</td><td data-col-size="md" data-end="2123" data-start="2097" style="width: 29.5366%; height: 30.1094px;">Enddatum der Statistik</td></tr><tr data-end="2248" data-start="2124" style="height: 64.3281px;"><td data-col-size="sm" data-end="2153" data-start="2124" style="width: 34.3508%; height: 64.3281px;">`condition[paymentstatus]`</td><td data-col-size="lg" data-end="2214" data-start="2153" style="width: 36.1152%; height: 64.3281px;">`all` = alle  
`0` = nicht ausgezahlt  
`1` = ausgezahlt</td><td data-col-size="md" data-end="2248" data-start="2214" style="width: 29.5366%; height: 64.3281px;">Filtert nach Auszahlungsstatus</td></tr><tr data-end="2433" data-start="2249" style="height: 98.2344px;"><td data-col-size="sm" data-end="2276" data-start="2249" style="width: 34.3508%; height: 98.2344px;">`condition[dynamicdate]`</td><td data-col-size="lg" data-end="2409" data-start="2276" style="width: 36.1152%; height: 98.2344px;">`currentmonth` = aktueller Monat  
`lastmonth` = vorheriger Monat  
`currentweek` = aktuelle Woche  
`last10d` = letzte 10 Tage</td><td data-col-size="md" data-end="2433" data-start="2409" style="width: 29.5366%; height: 98.2344px;">Dynamische Zeiträume</td></tr><tr style="height: 47.2188px;"><td style="width: 34.3508%; height: 47.2188px;">`condition[project_id]`</td><td style="width: 36.1152%; height: 47.2188px;">`Zahl / ID condition[project_id]=12345`</td><td style="width: 29.5366%; height: 47.2188px;">Filtert nach Projekt‑ID(s)</td></tr><tr style="height: 30.1094px;"><td style="width: 34.3508%; height: 30.1094px;">`condition[l:campaigns]`</td><td style="width: 36.1152%; height: 30.1094px;">Kampagnen‑ID</td><td style="width: 29.5366%; height: 30.1094px;">Filtert nach Kampagne(n)</td></tr><tr style="height: 47.2188px;"><td style="width: 34.3508%; height: 47.2188px;">`condition[bruttodata]` / `condition[bruttodaten]`</td><td style="width: 36.1152%; height: 47.2188px;">`true`/`false`</td><td style="width: 29.5366%; height: 47.2188px;">Filtert nach Bruttozahlen</td></tr><tr style="height: 64.3281px;"><td style="width: 34.3508%; height: 64.3281px;">`condition[ignormandant] /``condition[ignoremandant]`</td><td style="width: 36.1152%; height: 64.3281px;">`true`/`false`</td><td style="width: 29.5366%; height: 64.3281px;">Begrenzung auf eine Kampagne oder nicht</td></tr></tbody></table>

**Definition der Felder in der Statistik API**

Die Spaltennamen der heruntergeladenen Datei beinhalten folgende Parameter:

<div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary" id="bkmrk-feldname-beschreibun"><div class="pm-table-container with-shadow-observer" data-layout="default" data-testid="table-container"><div class="pm-table-sticky-scrollbar-sentinel-top" data-testid="sticky-scrollbar-sentinel-top">  
</div><div class="css-12efcmn">  
</div><div class="pm-table-wrapper" data-autosize="false" data-layout="default" data-number-column="false" data-table-local-id="2e4c069a-6c93-442d-bfab-e3e11ff9c43e" data-vc="table-node-wrapper"><div class="sentinel-left">  
</div><table data-layout="default" data-number-column="false" data-table-width="760" data-testid="renderer-table" style="width: 104.524%;"><colgroup><col style="width: 23.8372%;"></col><col style="width: 76.1628%;"></col></colgroup><tbody><tr><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" colspan="1" data-colwidth="340" rowspan="1">**Feldname**

</th><th aria-sort="none" class="ak-renderer-tableHeader-sortable-column__wrapper" colspan="1" data-colwidth="340" rowspan="1">**Beschreibung**

</th></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`criterion`

</td><td colspan="1" data-colwidth="340" rowspan="1">Das Kriterium, welches für die Statistik ausgewählt wurde. Wurde beispielsweise die Statistik nach Tag ausgewählt, werden in diesem Feld die betroffenen Tage ausgegeben. Wird Statistik nach Campagne ausgewählt, werden hier die entsprechenden Kampagnen-ID ausgewählt. In der Regel wird hier die ID ausgegeben.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`title`

</td><td colspan="1" data-colwidth="340" rowspan="1">Der Name der entsprechend ausgewählten Criterion. Hier steht z. B. der Name der Kampagne oder des Projekts.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`leads_open_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der offenen Leads.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`leads_confirmed_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der bestätigten Leads.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`leads_canceled_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der stornierten Leads.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`sales_open_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der offenen Sales.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`sales_confirmed_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der bestätigten Sales.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`sales_canceled_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der stornierten Sales.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`all_open_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der offenen Leads und Sales addiert.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`all_confirmed_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der bestätigten Leads und Sales addiert.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`all_canceled_count`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der stornierten Leads und Sales addiert.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`views`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der Views.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`clicks`

</td><td colspan="1" data-colwidth="340" rowspan="1">Anzahl der Klicks.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`epc`

</td><td colspan="1" data-colwidth="340" rowspan="1">Die berechnete, durchschnittliche Einnahme pro Klick.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`ctr`

</td><td colspan="1" data-colwidth="340" rowspan="1">Der Wert gibt an, wie viele User tatsächlich auf das Werbemittel klickten, nachdem sie es gesehen haben.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`leads_canceled_turnover`

</td><td colspan="1" data-colwidth="340" rowspan="1">Gesamter Warenkorbwert der stornierten Leads.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`leads_open_turnover`

</td><td colspan="1" data-colwidth="340" rowspan="1">Gesamter Warenkorbwert der offenen Leads.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`leads_confirmed_turnover`

</td><td colspan="1" data-colwidth="340" rowspan="1">Gesamter Warenkorbwert der bestätigten Leads.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`sales_canceled_turnover`

</td><td colspan="1" data-colwidth="340" rowspan="1">Gesamter Warenkorbwert stornierten Sales.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`sales_open_turnover`

</td><td colspan="1" data-colwidth="340" rowspan="1">Gesamter Warenkorbwert der offenen Sales.

</td></tr><tr><td colspan="1" data-colwidth="340" rowspan="1">`sales_confirmed_turnover`

</td><td colspan="1" data-colwidth="340" rowspan="1">Gesamter Warenkorbwert der bestätigten Sales.

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

</div></div></div><div class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary" id="bkmrk--3"><div class="overflow-y-auto p-4" dir="ltr"><div class="overflow-y-auto p-4" dir="ltr" id="bkmrk-statistik-art-parame"></div></div></div>