The Marketing Campaigns Stats endpoints allow you to retrieve stats for both Automations and Single Sends.
Note: These endpoints provide stats for Marketing Campaigns only. For stats related to event tracking, please see the Stats section under Event Tracking below.
Base url: https://api.sendgrid.com
This endpoint allows you to export Single Send stats as .CSV data.
You can specify one Single Send or many: include as many Single Send IDs as you need, separating them with commas, as the value of the
ids query string paramter.
The data is returned as plain text response but in .CSV format, so your application making the call can present the information in whatever way is most appropriate, or just save the data as a .csv file.
- API Key
The IDs of Single Sends for which to export stats.default: None
The IANA Area/Region string representing the timezone in which the stats are to be presented; i.e.
"America/Chicago". This parameter changes the timezone format only; it does not alter which stats are returned.