Get campaign stats
curl --request GET \
--url https://app.nudgen.net/api/v1/campaigns/{id}/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.nudgen.net/api/v1/campaigns/{id}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.nudgen.net/api/v1/campaigns/{id}/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"stats": {
"totalSent": 123,
"totalDelivered": 123,
"totalOpens": 123,
"totalClicks": 123,
"ctr": 123,
"totalFailed": 123,
"totalSpamComplaints": 123,
"totalHardBounces": 123,
"totalSoftBounces": 123
}
}API reference
Get campaign stats
GET
/
api
/
v1
/
campaigns
/
{id}
/
stats
Get campaign stats
curl --request GET \
--url https://app.nudgen.net/api/v1/campaigns/{id}/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.nudgen.net/api/v1/campaigns/{id}/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.nudgen.net/api/v1/campaigns/{id}/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"stats": {
"totalSent": 123,
"totalDelivered": 123,
"totalOpens": 123,
"totalClicks": 123,
"ctr": 123,
"totalFailed": 123,
"totalSpamComplaints": 123,
"totalHardBounces": 123,
"totalSoftBounces": 123
}
}Was this page helpful?