Facebook Pixel
APILinkedIn Analytics

Get exact connection count

Returns the connected account's EXACT total connection count via LinkedIn's connectionsSummary endpoint — the real number, not the "500+" value LinkedIn shows on profiles. This reflects the authenticated account's own connections (select which connected account with `accountId`); it cannot return another member's connection count.

GET/analytics/connections/count
Authentication requiredAnalytics

Code Examples

curl -X GET 'https://api.connectsafely.ai/linkedin/analytics/connections/count' \
-H 'Authorization: Bearer <your_api_key>'

Returns the connected account's EXACT total connection count via LinkedIn's connectionsSummary endpoint — the real number, not the "500+" value LinkedIn shows on profiles. This reflects the authenticated account's own connections (select which connected account with accountId); it cannot return another member's connection count.

Parameters

NameInRequiredTypeDescription
accountIdqueryNostringLinkedIn account ID to use. If omitted, uses the default account.

Request Body

No request body.

Responses

StatusDescription
200Connection count retrieved successfully
401Unauthorized - invalid or missing API key
500Internal Server Error - could not resolve credentials, or the connectionsSummary fetch failed (the exact upstream error is returned)

200 Response Parameters

NameTypeDescription
successboolean
accountIdstringLinkedIn account ID used
connectionCountintegerExact total number of connections (uncapped), or null if LinkedIn did not return a count

200 Example

{
  "success": true,
  "accountId": "696ce9e780e0483585e4e553",
  "connectionCount": 3754
}