MessageStatistics Method - GET

Description

Get global statistics from a specific message. To have details statistics, please use our reportEmailSent method.

Request URL

api.mailjet.com/0.1/messageStatistics

Code Sample

<?php
 
# Parameters
$params = array(
    'id' => '123'
);
 
# Call
$response = $mj->messageStatistics($params);
 
# Result
$statistics = $response->result;
 
?>

Parameters

id (Integer, required)
Description: Mailjet's Campaign ID

Return

status (String)
Description: Status of the response
result (Object)
Description: List of statistics
LabelTypeDescription
bounceIntegerAmount of emails bounced
bounce_pctIntegerPercentage of emails bounce
clickIntegerAmount of emails clicked
click_pctIntegerPercentage of emails click
openIntegerAmount of emails opened
open_pctIntegerPercentage of emails open
sentIntegerAmount of emails sent
sent_pctIntegerPercentage of emails sent
spamIntegerAmount of spam emails
spam_pctFloatPercentage of emails spam
totalIntegerAmount of emails