Get Stats of a Campaign

Retrieve in-depth performance metrics and delivery statistics for a specific campaign using its unique identifier.

๐Ÿ“ˆ Get Stats of a Campaign

Use this endpoint to fetch delivery, open, click, bounce, and unsubscribe data for any campaign.


๐Ÿ”น HTTP Request

GET API-URL/campaigns/CAMPAIGN-UNIQUE-ID/stats

๐Ÿ”ธ URL Segments

Segment
Required
Description

CAMPAIGN-UNIQUE-ID

Yes

Campaign unique ID to retrieve stats for.


๐Ÿ” Authorization Header

X-API-KEY: your-api-key-here

๐Ÿ’ป PHP Example

// GET STATS
$response = $endpoint->getStats('CAMPAIGN-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';

๐Ÿ“ฆ Sample JSON Response