Answers.Body: <pre><code>$result = civicrm_api3('Mailing', 'stats', [
    'mailing_id' =&gt; 10,
  ]);
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-01T15:44:34.367Z
Answers.Text: Thank you, it was really helpful.
Answers.UserDisplayName: hazalciplak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-01T14:55:05.827Z
Answers.LastActivityDate: 2022-02-01T14:55:05.827Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I am trying to get summary of email reports via civiCRM API. Unfortunately I am not able to find exact entities to get those data.
  Currently I am getting <code>Mailing</code>, <code>MailingRecipients</code> and <code>Contact</code> entities. With these entities the only thing I am getting is <code>Intended Recipients</code> for the report below by counting the email recipients per email_id.</p>
  <p>I have checked <code>Activity</code>, <code>Job</code> and <code>Event</code> entities too to get the information I need but they was not clear enough to collect information about deliveries, opens, click-throughs, bounces etc...</p>
  <p>Could you please help about how to get this report via API? Which entities I need to use and which fields to get the related data?</p>
  <p><a href="https://i.sstatic.net/RWWQb.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RWWQb.png" alt="enter image description here" /></a></p>
  <p>Thank you</p>
  <p>Hazal</p>
  
Tags: <email>
Title: How to get email summary report via civiCRM API?
ThreadText: # How to get email summary report via civiCRM API?
  
  (Asked by: username_0 on 2022-02-01)
  
  I am trying to get summary of email reports via civiCRM API. Unfortunately I am not able to find exact entities to get those data.
  Currently I am getting `Mailing`, `MailingRecipients` and `Contact` entities. With these entities the only thing I am getting is `Intended Recipients` for the report below by counting the email recipients per email\_id.
  
  I have checked `Activity`, `Job` and `Event` entities too to get the information I need but they was not clear enough to collect information about deliveries, opens, click-throughs, bounces etc...
  
  Could you please help about how to get this report via API? Which entities I need to use and which fields to get the related data?
  
  [![enter image description here](https://i.sstatic.net/RWWQb.png)](https://i.sstatic.net/RWWQb.png)
  
  Thank you
  
  Hazal
  
  **Tags:** email
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-02-01. Score: 2 | Accepted answer
  
  ```
  $result = civicrm_api3('Mailing', 'stats', [
    'mailing_id' => 10,
  ]);
  
  ```
  
  > **Comments:**
  > **username_0**: Thank you, it was really helpful.  
  
  ---
  
  