Get email campaign statistics
GEThttps://api.emelia.io/stats
Get email campaign statistics
Request
Query Parameters
campaignId stringrequired
Campaign ID
detailed boolean
Whether to include detailed statistics
start date-time
Start date for filtering statistics
end date-time
End date for filtering statistics
providerId string
Filter by email provider ID
Responses
- 200
- 401
Campaign statistics
- application/json
- Schema
- Example (auto)
Schema
globalobject
Global campaign statistics
stepsarray
Statistics broken down by campaign step
{
"global": {},
"steps": [
null
]
}
Campaign not found or authentication error
- application/json
- Schema
- Example (auto)
Schema
errorstring
{
"error": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: The API key to use for authentication. You can find it in your [Emelia account](https://app.emelia.io/settings/api). You just need to pass the API key in the Authorization header.
- python
- nodejs
- curl
- go
- ruby
- php
- java
- javascript
- HTTP.CLIENT
- REQUESTS
import http.client
conn = http.client.HTTPSConnection("api.emelia.io")
payload = ''
headers = {
'Accept': 'application/json',
'Authorization': '<Authorization>'
}
conn.request("GET", "/stats", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
ResponseClear