Facebook Pixel
APILinkedIn Account

Get account activity history

Retrieve activity history for the last 15 days including comments and reactions. Returns summary statistics, daily breakdown, and individual activity records. Useful for tracking account behavior, auditing actions, and monitoring engagement patterns.

GET/account/{accountId}/activity
Authentication requiredAccount

Code Examples

curl -X GET 'https://api.connectsafely.ai/linkedin/account/<accountId>/activity' \
-H 'Authorization: Bearer <your_api_key>'

Parameters

NameInRequiredTypeDescription
accountIdpathYesstringUnique identifier for the LinkedIn account (24-character hex string)

Request Body

No request body.

Responses

StatusDescription
200Activity history retrieved successfully
400Invalid account ID format
401Unauthorized - Invalid or missing API key
404Account not found or not accessible

200 Response Parameters

NameTypeDescription
successboolean
accountIdstring
accountNamestring
dateRangeobject
summaryobject
dailyBreakdownarray
commentsarray
reactionsarray

200 Example

{
  "success": true,
  "accountId": "acc_12345",
  "accountName": "example_value",
  "dateRange": {},
  "summary": {},
  "dailyBreakdown": [
    {
      "date": "2026-02-24",
      "comments": 0,
      "reactions": 0,
      "total": 0
    }
  ],
  "comments": [
    {
      "activityUrn": "urn:li:example:123456",
      "date": "2024-01-15",
      "isoDate": "2024-01-15",
      "timestamp": 0,
      "type": "default"
    }
  ],
  "reactions": [
    {
      "activityUrn": "urn:li:example:123456",
      "date": "2024-01-15",
      "isoDate": "2024-01-15",
      "timestamp": 0,
      "type": "default"
    }
  ]
}

400 Response Parameters

NameTypeDescription
errorstring

400 Example

{
  "error": "Invalid account ID format",
  "success": false
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "Unauthorized"
}

404 Response Parameters

NameTypeDescription
errorstring

404 Example

{
  "error": "LinkedIn account not found or not accessible",
  "success": false
}