Get LinkedIn post stats
Returns analytics for a specific LinkedIn post by URN. Works for both personal and organization accounts.
API key authentication - use your Late API key as a Bearer token
In: header
Path Parameters
The ID of the LinkedIn account
Query Parameters
The LinkedIn post URN
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/accounts/string/linkedin-post-analytics?urn=urn%3Ali%3Ashare%3A7123456789012345678"{
"accountId": "64abc123def456",
"platform": "linkedin",
"accountType": "personal",
"username": "John Doe",
"postUrn": "urn:li:share:7123456789012345678",
"analytics": {
"impressions": 5420,
"reach": 3200,
"likes": 156,
"comments": 23,
"shares": 12,
"clicks": 0,
"views": 1250,
"engagementRate": 5.17
},
"lastUpdated": "2025-01-15T10:30:00.000Z"
}{
"error": "Missing required parameter: urn",
"code": "missing_urn",
"example": "urn:li:share:7123456789012345678 or urn:li:ugcPost:7123456789012345678"
}{
"error": "Unauthorized"
}{
"error": "string",
"code": "missing_scope",
"requiredScope": "string",
"action": "reconnect"
}{
"error": "Account not found"
}Get LinkedIn aggregate stats GET
Returns aggregate analytics across all posts for a LinkedIn personal account. Org accounts should use /v1/analytics instead. Requires r_member_postAnalytics scope.
Get YouTube daily views GET
Returns daily view counts for a YouTube video including views, watch time, and subscriber changes. Requires yt-analytics.readonly scope (re-authorization may be needed). Data has a 2-3 day delay. Max 90 days, defaults to last 30 days.