Skip to main content
POST
/
v2
/
campaigns
/
stats
/
batch
Get Batch Campaign Stats
curl --request POST \
  --url https://api.lemlist.com/api/v2/campaigns/stats/batch \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaignIds": [
    "cam_123",
    "cam_456"
  ],
  "startDate": "2024-01-07T22:00:00.000Z",
  "endDate": "2025-07-10T21:59:59.999Z"
}
'
{ "results": [ { "campaignId": "cam_123", "nbLeads": 32, "nbLeadsLaunched": 32, "nbLeadsReached": 32, "nbLeadsOpened": 31, "nbLeadsInteracted": 4, "nbLeadsAnswered": 16, "nbLeadsInterested": 1, "nbLeadsNotInterested": 0, "nbLeadsUnsubscribed": 1, "nbLeadsInterrupted": 1, "messagesSent": 72, "messagesNotSent": 0, "messagesBounced": 0, "delivered": 72, "opened": 47, "clicked": 4, "replied": 16, "invitationAccepted": 0, "meetingBooked": 0, "steps": [ { "index": 1, "sequenceId": "seq_JiYPY37b43uJg2hfA", "sequenceStep": 0, "taskType": "linkedinSend", "invited": 0, "sent": 32, "delivered": 32, "opened": 15, "clicked": 0, "replied": 15, "notDelivered": 0, "bounced": 0, "unsubscribed": 1 } ] } ], "errors": [] }
Careful, the route starts with /v2/. Make sure to include the version in the path.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
campaignIds
string[]
required

Array of campaign IDs to retrieve stats for

Required array length: 1 - 100 elements
Example:
["cam_123", "cam_456"]
startDate
string
required

Start date in ISO 8601 format

Example:

"2024-01-07T22:00:00.000Z"

endDate
string
required

End date in ISO 8601 format

Example:

"2025-07-10T21:59:59.999Z"

sendUser
string

Filter stats by send user. Format: sendUserId|sendUserEmail. The sendUserId should begin with 'usr_' and the sendUserEmail should be a valid sender email. If the param is specified, both sendUserId and sendUserEmail are mandatory.

Example:

"usr_b62rnsjxu236ttSH3|email@example.com"

ABSelected
enum<string>

A/B version filter

Available options:
A,
B
channels
enum<string>[]

Filter by communication channels

Available options:
email,
linkedin,
others

Response

Success

results
object[]

Array of campaign stats results

errors
object[]

Array of errors for campaigns that failed to retrieve stats