Facebook Pixel

Get Creator Analytics

Get LinkedIn creator analytics including engagement, content performance, and audience insights

POST/linkedin/analytics/creator

Get Creator Analytics

Get LinkedIn creator analytics including engagement, content performance, and audience insights. Supports various time ranges and metric types.

Authentication requiredLinkedIn Analytics

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/analytics/creator' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{
"filters": {
"resultType": "ENGAGEMENT",
"timeRange": "past_30_days"
}
}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
filtersobjectNoAnalytics filter options
filters.resultTypestring or string[]NoType of results: 'AUDIENCES', 'CONTENT', 'ENGAGEMENT', 'GROWTH'
filters.timeRangestring or string[]NoTime range: 'past_7_days', 'past_14_days', 'past_30_days', 'past_90_days', 'past_year', 'custom'
filters.lineChartTypestring or string[]NoChart type: 'daily', 'weekly', 'monthly'
filters.startDatestringNoStart date for custom range (YYYY-MM-DD format, required if timeRange is 'custom')
filters.endDatestringNoEnd date for custom range (YYYY-MM-DD format, required if timeRange is 'custom')

Example - Engagement Analytics

{
  "filters": {
    "resultType": "ENGAGEMENT",
    "timeRange": "past_30_days"
  }
}

Example - Content Analytics with Line Chart

{
  "filters": {
    "resultType": "CONTENT",
    "timeRange": "past_90_days",
    "lineChartType": "weekly"
  }
}

Example - Custom Date Range

{
  "filters": {
    "resultType": ["ENGAGEMENT", "CONTENT"],
    "timeRange": "custom",
    "startDate": "2024-01-01",
    "endDate": "2024-01-31"
  }
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "accountId": "acc_123456789",
  "profileId": "ACoAAA...",
  "isLineChart": false,
  "filters": {
    "resultType": "ENGAGEMENT",
    "timeRange": "past_30_days"
  },
  "data": {
    "impressions": 15420,
    "engagements": 842,
    "engagementRate": "5.46%",
    "reactions": 612,
    "comments": 145,
    "shares": 85,
    "followers": {
      "total": 5420,
      "gained": 127,
      "lost": 12
    }
  }
}

Result Types

TypeDescription
AUDIENCESAudience demographics and insights
CONTENTContent performance metrics
ENGAGEMENTEngagement statistics (reactions, comments, shares)
GROWTHFollower growth trends

Time Ranges

ValueDescription
past_7_daysLast 7 days
past_14_daysLast 14 days
past_30_daysLast 30 days
past_90_daysLast 90 days
past_yearLast 365 days
customCustom date range (requires startDate and endDate)