Skip to main content

Aggregated statistics

The aggregated statistics represent the sum of the indicators (opens, clicks...) on a single result row. For example, the openings of the aggregated statistics of a campaign are the sum of all the openings across all the sendings and across all the segments.

2 endpoints allow you to retrieve aggregated statistics:

Retrieve my campaign statistics

To get the statistics of a campaign via the Mindbaz API, the following call is available: GET api/{idsite}/statistics/campaign?idCampaign={idCampaign}

info

If your campaign has been sent several times, you will get the aggregated statistics of all its sendings.

The information to be passed in the url is the following and is all mandatory:

NameDescriptionType
idCampaignId of the campaignInteger
idsiteMindBaz site idInteger

The return value of the call is as follows:

NameDescriptionType
dataResult of the webservice callStatsGetFullStatsResult
errorError message in case of failureString
successIndicates success or failure of the webservice callBoolean
typeNameType of data contained in the Data fieldString

Data is an object containing the statistics of the campaign.

Example

https://api.mindbaz.com/api/100/statistics/campaign?idCampaign=8826

Return value:

{
"success": true,
"data": {
"groupName" : "Mindbaz",
"jobErrorInfo" : "",
"nbAd" : 2,
"nbAdClickers" : 0,
"nbAdClicks" : 0,
"nbAddressSent" : 688,
"nbAddressToSend" : 694,
"nbAutoRespondersBounces" : 0,
"nbClickers" : 471,
"nbClicks" : 471,
"nbDnsErrorsBounces" : 0,
"nbEditoClickers" : 462,
"nbEditoClicks" : 462,
"nbGodsons" : 0,
"nbHardBounces" : 337,
"nbHumanOpeners" : 2054,
"nbHumanOpenings" : 3078,
"nbjob" : 353,
"nbLinks" : 3865,
"nbMirrorClickers" : 9,
"nbMirrorClicks" : 9,
"nbOpeners" : 2160,
"nbOpenings" : 3370,
"nbSents" : 353,
"nbSoftBounces" : 337,
"nbSpamBounces" : 338,
"nbSpamComplaints" : 0,
"nbTotalBounces" : 1012,
"nbUnsubClickers" : 0,
"nbUnsubClicks" : 0,
"nbUnsubs" : 0,
"nbViralClicks" : 0,
"senderDomain" : "news.mindbaz.com"
},
"error": null,
"typeName": "StatsGetFullStatsResult"
}

Explanation of the metrics

NameDescription
nbAddressSentnumber of emails sent
nbAddressToSendnumber of emails targeted by the segment
nbOpeningsnumber of openings
nbOpenersnumber of unique openers (an email that has been opened several times is only counted once)
nbHumanOpeningsnumber of "human" openings, i.e. without taking into account the openings made automatically by the Apple servers (see Apple MPP for more info)
nbHumanOpenersnumber of unique "human" openers
nbClicksnumber of clicks
nbClickersnumber of unique clickers
nbEditoClicksnumber of clicks on editorial links
nbEditoClickersnumber of unique clickers who clicked on editorial links
nbAdClicksnumber of clicks on advertising links
nbAdClickersnumber of unique clickers who clicked on advertising links
nbMirrorClicksnumber of clicks on mirror page links
nbMirrorClickersnumber of unique clickers on mirror page links
nbUnsubClicksnumber of clicks on unsubscribe links
nbUnsubClickersnumber of unique clickers on unsubscribe links
nbTotalBouncestotal number of all bounces (NPAIs)
nbHardBouncesnumber of hardbounce
nbDnsErrorsBouncesnumber of Bounces of type "Network Error"
nbAutoRespondersBouncesnumber of NPAI of type "Automatic response"
nbSoftBouncesnumber of "Softbounce"
nbSpamBouncesnumber of "Spam" bounces
nbSpamComplaintsnumber of complaints received through feedbackloop with certain ISPs
nbUnsubsnumber of unsubscribes (list-unsubscribe + links)
nbViralClicksnumber of clicks on send to friend links (obsolete)
nbGodsonsnumber of referrers who generated a new subscriber (obsolete)
nbjobnumber of times the campaign was sent
nbSentsnumber of segments sent
nbAdnumber of ads
nbLinksnumber of links
groupNamname of the group of ips used to send the advertisement
jobErrorInfolast sending error message
senderDomainsender domain used by the campaign

Retrieve the statistics by isp of a mailing

To retrieve the statistics by fai of a campaign, the following api is available: GET api/{idsite}/statistics/fai?idJob={idJob}&idSent={idSent}

The api takes as parameter in the query either the idJob or the idSent.

NameDescriptionType
idJobJob identifierInteger
idSentIdentifier of the sendInteger
idsiteMindBaz Site IDInteger
info

To find out the list of idJob and idSent identifiers of your campaign, you can do a GET on api/{idsite}/sents/light?idCampaign={idCampaign}
You will then get the list of sent segments in the data->sent table with their most important information: idsent, idJob, idsending, start and end dates, name of the target and if it is a test send.

This api makes a top 10 of the isp encountered during a sending of the campaign and returns the aggregated statistics for each ISP. An "other" isp is returned automatically to group together all the isp and domains with a small volume.

The return value of the call is as follows:

NameDescriptionType
dataResult of the call to the webserviceCollection of StatsGetSentFaiResult
errorError message in case of failureString
successIndicates the success or failure of the webservice callBoolean
typeNameType of data contained in the Data fieldString

Data is a collection of objects containing the statistics by isp of the campaign.

Example

https://api.mindbaz.com/api/755/statistics/fai?idJob=13287411&idSent=1206

Return value:

{
"success": true,
"data": [
{
"groupName" : "Mindbaz",
"idFai": 0,
"isp": "m6.fr",
"nbAddressToSend": 50,
"nbAddressSent": 50,
"nbBounces": 9,
"nbDelivered": 41,
"nbHardBounces": 9,
"nbSoftBounces": 0,
"nbAutoRespondersBounces": 0,
"nbDnsErrorsBounces": 0,
"nbSpamBounces": 0,
"dsnCount": 9,
"nbOpenings": 211,
"nbOpeners": 20,
"nbHumanOpenings":160,
"nbHumanOpeners":15,
"nbClicks": 0,
"nbClickers": 0,
"nbUnsubClicks": 0,
"nbMirrorClicks": 0,
"nbEditoClicks": 0,
"nbAdClicks": 0,
"nbViralClicks": 0,
"nbSpamComplaints": 0,
"dsn": "\r\nAction=failed;Status=5.1.1;Diagnostic-Code: 5.1.1 - Bad destination email address 'reject' (delivery attempts: 0)",
"dsnCount": 5,
"nbContentClickers": 0,
"nbAdClickers": 0,
"nbEditoClickers": 0,
"nbMirrorClickers": 0,
"nbUnsubClickers": 0,
"nbViralClickers": 0,
"nbUnsubs": 0
}
],
"error": null,
"typeName": "StatsGetSentFaiResult[]"
}

Explanation of the metrics

Additional fields appear in this api:

NameDescription
dsnDelivery Status Notification - most frequent delivery error message
dsnCountnumber of times the above dsn has been returned
idFaiISP id or -1 for "Other" ISP or 0 for unknown ISP
ispISP name or domain name if ISP is not known (idFai=0)