GET
/campaigns/analytics/{type}Get campaign analytics
Retrieves campaign analytics for the requested statistic type and date range. Use type to select links, views, clicks, or bounces, and provide from, to, and id to scope the results. The response contains counts over time for the specified campaign ID or IDs.
typestringrequired
The analytics type to retrieve: links, views, clicks, or bounces.
fromstringrequired
The start of the date range, in date format.
tostringrequired
The end of the date range.
idstringrequired
The campaign ID or IDs to retrieve analytics for, supplied as a string.
200Returns an array in `data` containing campaign IDs, counts, and timestamps for the requested analytics.
dataarray<object>optional
Error handling
The type path parameter must be links, views, clicks, or bounces. The from query parameter must use a date value, and to and id query parameters must also be supplied.