curl "https://server.smartlead.ai/api/v1/campaigns/12345/statistics?api_key=YOUR_API_KEY&limit=100&offset=0"
import requests
API_KEY = "YOUR_API_KEY"
CAMPAIGN_ID = 12345
response = requests.get(
f"https://server.smartlead.ai/api/v1/campaigns/{CAMPAIGN_ID}/statistics",
params={
"api_key": API_KEY,
"limit": 100,
"offset": 0
}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const CAMPAIGN_ID = 12345;
const response = await fetch(
`https://server.smartlead.ai/api/v1/campaigns/${CAMPAIGN_ID}/statistics?api_key=${API_KEY}&limit=100&offset=0`
);
const result = await response.json();
console.log(result);
{
"total_stats": "2",
"data": [
{
"lead_name": "Jane Doe",
"lead_email": "jane@example.com",
"lead_category": "Interested",
"sequence_number": 1,
"stats_id": "3f6c1a2e-8b4d-4c1e-9a77-1d2e3f4a5b6c",
"email_campaign_seq_id": 2001,
"seq_variant_id": null,
"email_subject": "Quick question",
"email_message": "<p>Hi Jane,</p>",
"sent_time": "2026-02-01T09:00:00.000Z",
"open_time": "2026-02-01T10:15:00.000Z",
"click_time": null,
"reply_time": "2026-02-01T12:30:00.000Z",
"open_count": 2,
"click_count": 0,
"is_unsubscribed": false,
"is_bounced": false,
"sender_bounce": false,
"ignore_reply": false
},
{
"lead_name": "John Smith",
"lead_email": "john@example.com",
"lead_category": null,
"sequence_number": 2,
"stats_id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
"email_campaign_seq_id": 2002,
"seq_variant_id": null,
"email_subject": "",
"email_message": "<p>Following up</p>",
"sent_time": "2026-02-04T09:00:00.000Z",
"open_time": null,
"click_time": null,
"reply_time": null,
"open_count": 0,
"click_count": 0,
"is_unsubscribed": false,
"is_bounced": false,
"sender_bounce": false,
"ignore_reply": false
}
],
"offset": 0,
"limit": 500
}
{
"message": "Invalid API Key"
}
Campaign Statistics
Fetch Campaign Statistics by Campaign ID
Fetch campaign statistics using the campaign’s ID
GET
/
api
/
v1
/
campaigns
/
{campaign_id}
/
statistics
curl "https://server.smartlead.ai/api/v1/campaigns/12345/statistics?api_key=YOUR_API_KEY&limit=100&offset=0"
import requests
API_KEY = "YOUR_API_KEY"
CAMPAIGN_ID = 12345
response = requests.get(
f"https://server.smartlead.ai/api/v1/campaigns/{CAMPAIGN_ID}/statistics",
params={
"api_key": API_KEY,
"limit": 100,
"offset": 0
}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const CAMPAIGN_ID = 12345;
const response = await fetch(
`https://server.smartlead.ai/api/v1/campaigns/${CAMPAIGN_ID}/statistics?api_key=${API_KEY}&limit=100&offset=0`
);
const result = await response.json();
console.log(result);
{
"total_stats": "2",
"data": [
{
"lead_name": "Jane Doe",
"lead_email": "jane@example.com",
"lead_category": "Interested",
"sequence_number": 1,
"stats_id": "3f6c1a2e-8b4d-4c1e-9a77-1d2e3f4a5b6c",
"email_campaign_seq_id": 2001,
"seq_variant_id": null,
"email_subject": "Quick question",
"email_message": "<p>Hi Jane,</p>",
"sent_time": "2026-02-01T09:00:00.000Z",
"open_time": "2026-02-01T10:15:00.000Z",
"click_time": null,
"reply_time": "2026-02-01T12:30:00.000Z",
"open_count": 2,
"click_count": 0,
"is_unsubscribed": false,
"is_bounced": false,
"sender_bounce": false,
"ignore_reply": false
},
{
"lead_name": "John Smith",
"lead_email": "john@example.com",
"lead_category": null,
"sequence_number": 2,
"stats_id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
"email_campaign_seq_id": 2002,
"seq_variant_id": null,
"email_subject": "",
"email_message": "<p>Following up</p>",
"sent_time": "2026-02-04T09:00:00.000Z",
"open_time": null,
"click_time": null,
"reply_time": null,
"open_count": 0,
"click_count": 0,
"is_unsubscribed": false,
"is_bounced": false,
"sender_bounce": false,
"ignore_reply": false
}
],
"offset": 0,
"limit": 500
}
{
"message": "Invalid API Key"
}
Path Parameters
Query Parameters
Filters campaign stats with sent time greater than this date. Format:
2023-10-16 10:33:02.000Zcurl "https://server.smartlead.ai/api/v1/campaigns/12345/statistics?api_key=YOUR_API_KEY&limit=100&offset=0"
import requests
API_KEY = "YOUR_API_KEY"
CAMPAIGN_ID = 12345
response = requests.get(
f"https://server.smartlead.ai/api/v1/campaigns/{CAMPAIGN_ID}/statistics",
params={
"api_key": API_KEY,
"limit": 100,
"offset": 0
}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const CAMPAIGN_ID = 12345;
const response = await fetch(
`https://server.smartlead.ai/api/v1/campaigns/${CAMPAIGN_ID}/statistics?api_key=${API_KEY}&limit=100&offset=0`
);
const result = await response.json();
console.log(result);
Response Codes
{
"total_stats": "2",
"data": [
{
"lead_name": "Jane Doe",
"lead_email": "jane@example.com",
"lead_category": "Interested",
"sequence_number": 1,
"stats_id": "3f6c1a2e-8b4d-4c1e-9a77-1d2e3f4a5b6c",
"email_campaign_seq_id": 2001,
"seq_variant_id": null,
"email_subject": "Quick question",
"email_message": "<p>Hi Jane,</p>",
"sent_time": "2026-02-01T09:00:00.000Z",
"open_time": "2026-02-01T10:15:00.000Z",
"click_time": null,
"reply_time": "2026-02-01T12:30:00.000Z",
"open_count": 2,
"click_count": 0,
"is_unsubscribed": false,
"is_bounced": false,
"sender_bounce": false,
"ignore_reply": false
},
{
"lead_name": "John Smith",
"lead_email": "john@example.com",
"lead_category": null,
"sequence_number": 2,
"stats_id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
"email_campaign_seq_id": 2002,
"seq_variant_id": null,
"email_subject": "",
"email_message": "<p>Following up</p>",
"sent_time": "2026-02-04T09:00:00.000Z",
"open_time": null,
"click_time": null,
"reply_time": null,
"open_count": 0,
"click_count": 0,
"is_unsubscribed": false,
"is_bounced": false,
"sender_bounce": false,
"ignore_reply": false
}
],
"offset": 0,
"limit": 500
}
{
"message": "Invalid API Key"
}
