Retrieve analytics data for multiple social media accounts. Provides metrics for the last 7 days with comparison to the previous 7 days. Supports filtering by platforms and specific connected accounts
Retrieve analytics data for multiple social media accounts. Provides metrics for the last 7 days with comparison to the previous 7 days. Supports filtering by platforms and specific connected accounts.
http
POST https://services.leadconnectorhq.com/social-media-posting/statistics
Authorization
Name
Type
Required
Example
Description
Authorization
string
Yes
Bearer token generated from the Leadway portal. See Authentication.
Version
string
Yes
2021-07-28
API version.
Query parameters
Name
Type
Required
Example
Description
locationId
string
Yes
w37swmmLbA02zgqKPpxITe2
Account ID
Body
Name
Type
Required
Example
Description
profileIds
string[]
Yes
Array of connected social media account IDs to fetch analytics for. This can be found as 'profileId' in /accounts api.
platforms
string[]
No
Array of social media platforms to filter analytics by. If not provided, all platforms will be included. NOTE: Linkedin (PAGE only) and Tiktok (BUSINESS only) are supported.
Responses
201 - Successfully retrieved analytics data
results (object): Analytics data grouped by metrics and platforms
dayRange (string[]): Array of day names for the analytics period
totals (object): Aggregated metrics totals
posts (number)
likes (number)
followers (number)
impressions (number)
comments (number)
postPerformance (object): Post performance metrics over time
posts (object)
impressions (number[])
likes (number[])
comments (number[])
breakdowns (object): Detailed breakdowns by metric and platform
posts (object)
total (number)
totalChange (number)
platforms (object)
impressions (object)
total (number)
totalChange (number)
platforms (object)
reach (object)
total (number)
totalChange (number)
platforms (object)
engagement (object)
platformTotals (object): Platform-wise totals with time series data
impressions (object)
followers (object)
likes (object)
demographics (object): Demographic data breakdown
gender (object)
totals (object)
male (object)
female (object)
unknown (object)
age (object)
totals (object)
13-17 (number)
18-24 (number)
25-34 (number)
35-44 (number)
45-54 (number)
55-64 (number)
65+ (number)
message (string): Example: Analytics Built Successfully