get_statistics
Retrieve campaign performance statistics including profile views, email metrics, and engagement rates for specified time periods to analyze marketing effectiveness.
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
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 |