get_statistics
Retrieve campaign performance statistics within a specified time range, including metrics like profile views, email opens, and conversion rates, for comprehensive analytics.
Instructions
Get statistics for campaigns within a time range
This retrieves statistics for all campaigns or a specific campaign if campaign_id is provided.
Args: user_id: User ID account_id: Account ID from_timestamp: Statistics start timestamp (Unix timestamp) to_timestamp: Statistics end timestamp (Unix timestamp) curves: List of statistic types to retrieve. Values: 1=PROFILE_VIEW, 2=PROFILE_FOLLOW, 3=INVITATION_SENT, 4=MESSAGE_SENT, 5=INMAIL_SENT, 10=EMAIL_SENT, 11=EMAIL_OPENED, 12=EMAIL_CLICKED, 16=EMAIL_VERIFIED, 6=INVITATION_ACCEPTED, 7=MESSAGE_REPLY, 8=INVITATION_ACCEPTED_RATE, 9=MESSAGE_REPLY_RATE, 14=EMAIL_OPEN_RATE, 15=EMAIL_CLICK_RATE, 17=EMAIL_BOUNCE_RATE time_zone: Timezone for statistics (e.g., "America/New_York", "Europe/Belgrade") campaign_id: Optional campaign ID to get statistics for a specific campaign
Returns: Campaign statistics data
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"account_id": "<account_id>",
"from_timestamp": "<from_timestamp>",
"to_timestamp": "<to_timestamp>",
"curves": "<curves>",
"time_zone": "<time_zone>"
},
"name": "get_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | ||
| account_id | Yes | ||
| from_timestamp | Yes | ||
| to_timestamp | Yes | ||
| curves | Yes | ||
| time_zone | Yes | ||
| campaign_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||