curl "https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time",
params={"api_key": API_KEY}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
{
"ok": true,
"data": {
"day_wise_stats": [
{
"date": "2024-01-15",
"sent": 150,
"opened": 52
},
{
"date": "2024-01-16",
"sent": 175,
"opened": 61
}
]
}
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Global Analytics
Day-wise Stats by Sent Time
Get daily breakdown organized by email sent time for schedule analysis
GET
/
api
/
v1
/
analytics
/
day-wise-overall-stats-by-sent-time
curl "https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time",
params={"api_key": API_KEY}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
{
"ok": true,
"data": {
"day_wise_stats": [
{
"date": "2024-01-15",
"sent": 150,
"opened": 52
},
{
"date": "2024-01-16",
"sent": 175,
"opened": 61
}
]
}
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Query Parameters
string
required
Your SmartLead API key
string
required
Start date (YYYY-MM-DD format)
string
required
End date (YYYY-MM-DD format)
string
required
IANA timezone string (e.g., “America/New_York”)
string
Comma-separated client IDs
string
Comma-separated campaign IDs
curl "https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time",
params={"api_key": API_KEY}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
Response Codes
Success
Request successful
Bad Request
Invalid request parameters or malformed request body
Unauthorized
Invalid or missing API key. Check your authentication.
Not Found
The requested resource (campaign, lead, email account, etc.) does not exist or you don’t have access to it
Validation Error
Request validation failed. Check parameter types, required fields, and value constraints.
Rate Limit Exceeded
Too many requests. Please slow down and retry after the rate limit resets.
Internal Server Error
Server error occurred. Please try again or contact support if the issue persists.
Service Unavailable
API is temporarily unavailable or under maintenance. Please try again later.
{
"ok": true,
"data": {
"day_wise_stats": [
{
"date": "2024-01-15",
"sent": 150,
"opened": 52
},
{
"date": "2024-01-16",
"sent": 175,
"opened": 61
}
]
}
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
How these metrics are calculated
Shared rules (inclusive date boundaries, unique vs raw counts, rate formulas) are documented once in How Analytics Metrics Are Calculated.
sent_time). An open or reply is counted on the date its email went out, regardless of when the open/reply actually happened — which is what makes this view useful for analysing send-schedule performance.
| Field | How it’s calculated |
|---|---|
sent | Emails sent that day. Raw additive count. |
opened | Emails (sent that day) that were later opened. Raw additive count. |
replied | Emails (sent that day) that later received a genuine reply. Raw additive count. |
bounced | Emails sent that day that bounced. Raw additive count. |
unsubscribed | Leads who unsubscribed. Raw additive count. |
unique_lead_reached | COUNT(DISTINCT lead) reached that day, deduplicated per campaign by email. This is a unique count, not additive across days. |
unique_lead_reached is not (a lead reached on two days is counted once per day). Dates are inclusive on both ends — sent_time >= start 00:00:00 AND sent_time <= end 23:59:59 — and a single date returns that one full day. timezone is required so the daily boundaries are drawn in your local time.