Stats for a campaign
HTTP Method
End Point
Description
GET
/campaign/stats/{id}
Date wise stats for a campaign
GET
/campaign/stats/{id}/{affId}
Date wise stats of an affiliate for a campaign

GET Request Parameters

Key
Type
Description
Nullable
start
string
Start Date in YYYY-mm-dd format (Optional)
Yes
end
string
End Date in YYYY-mm-dd format (Optional)
Yes

Response body

1
curl -X GET -H "X-Api-Key: {key}" -H "Cache-Control: no-cache" https://api.trackier.com/campaign/stats/{id}
Copied!
1
{
2
"success": true,
3
"data": {
4
"stats": {
5
"2017-01-14": {
6
"clicks": 0,
7
"impressions": 1,
8
"conversions": 0,
9
"revenue": 1.18,
10
"payout": 0.35,
11
"meta": {
12
"device": {
13
"mobile": 1
14
},
15
"os": [],
16
"referer": {
17
"blogslog.in": 1
18
},
19
"country": {
20
"US": 1
21
}
22
}
23
},
24
"2017-01-15": {
25
"clicks": 1,
26
"impressions": 7,
27
"conversions": 0,
28
"revenue": 8.26,
29
"payout": 2.45,
30
"meta": {
31
"device": {
32
"desktop": 4
33
},
34
"os": {
35
"Mac OS": 1
36
},
37
"referer": {
38
"blogslog.in": 4
39
},
40
"country": {
41
"CA": 3,
42
"IN": 5
43
}
44
}
45
},
46
"2017-01-16": {
47
"clicks": 1,
48
"impressions": 0,
49
"conversions": 0,
50
"revenue": 0,
51
"payout": 0,
52
"meta": {
53
"device": {
54
"desktop": 1
55
},
56
"os": {
57
"Mac OS X": 1
58
},
59
"referer": {
60
"facebook.com": 1
61
},
62
"country": {
63
"IN": 1
64
}
65
}
66
},
67
"2017-01-17": {
68
"clicks": 0,
69
"impressions": 1,
70
"conversions": 0,
71
"revenue": 1.18,
72
"payout": 0.35,
73
"meta": {
74
"device": {
75
"mobile": 1
76
},
77
"os": [],
78
"referer": {
79
"blogslog.in": 1
80
},
81
"country": {
82
"US": 1
83
}
84
}
85
},
86
"2017-01-18": {
87
"clicks": 0,
88
"impressions": 2,
89
"conversions": 0,
90
"revenue": 2.36,
91
"payout": 0.7,
92
"meta": {
93
"device": {
94
"mobile": 2,
95
"desktop": 3,
96
"tablet": 1
97
},
98
"os": {
99
"iOS": 2,
100
"Android": 1,
101
"Mac OS X": 1,
102
"Windows 10": 1
103
},
104
"referer": {
105
"test.com": 5,
106
"blogslog.in": 1
107
},
108
"country": {
109
"US": 2
110
}
111
}
112
}
113
},
114
"total": {
115
"meta": {
116
"device": {
117
"mobile": 4,
118
"desktop": 8,
119
"tablet": 1
120
},
121
"os": {
122
"Mac OS": 1,
123
"Mac OS X": 2,
124
"iOS": 2,
125
"Android": 1,
126
"Windows 10": 1
127
},
128
"referer": {
129
"blogslog.in": 7,
130
"facebook.com": 1,
131
"test.com": 5
132
},
133
"country": {
134
"US": 4,
135
"CA": 3,
136
"IN": 6
137
}
138
},
139
"clicks": 2,
140
"impressions": 11,
141
"conversions": 0,
142
"revenue": 12.98,
143
"payout": 3.85
144
}
145
}
146
}
Copied!
Last modified 1yr ago