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.
/analytics/connections/countCode 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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
accountId | query | No | string | LinkedIn account ID to use. If omitted, uses the default account. |
Request Body
No request body.
Responses
| Status | Description |
|---|---|
| 200 | Connection count retrieved successfully |
| 401 | Unauthorized - invalid or missing API key |
| 500 | Internal Server Error - could not resolve credentials, or the connectionsSummary fetch failed (the exact upstream error is returned) |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
accountId | string | LinkedIn account ID used |
connectionCount | integer | Exact total number of connections (uncapped), or null if LinkedIn did not return a count |
200 Example
{
"success": true,
"accountId": "696ce9e780e0483585e4e553",
"connectionCount": 3754
}LinkedIn Analytics API
Access LinkedIn analytics via API including profile visitors, creator analytics, engagement metrics, and weekly performance data. Track your content strategy results.
Get followers analytics
Retrieve LinkedIn followers analytics for the authenticated account. Includes engagement metrics, content performance, audience insights, and growth trends. Supports various time ranges and metric filters.
