Get post analytics
Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats. Accepts both Late Post IDs and External Post IDs (auto-resolved). Data is cached and refreshed at most once per hour. For follower stats, use /v1/accounts/follower-stats.
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
Returns analytics for a single post. Accepts both Late Post IDs and External Post IDs. Late IDs are auto-resolved to External Post analytics.
Filter by platform (default "all")
Filter by profile ID (default "all")
Filter by post source: late (posted via Late API), external (synced from platform), all (default)
"all""all" | "late" | "external"Inclusive lower bound
dateInclusive upper bound
datePage size (default 50)
501 <= value <= 100Page number (default 1)
11 <= valueSort by date or engagement
"date""date" | "engagement"Sort order
"desc""asc" | "desc"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/analytics"{
"postId": "65f1c0a9e2b5af0012ab34cd",
"latePostId": "65f1c0a9e2b5af0012ab34ab",
"status": "published",
"content": "Check out our new product launch!",
"scheduledFor": "2024-11-01T10:00:00Z",
"publishedAt": "2024-11-01T10:00:05Z",
"analytics": {
"impressions": 15420,
"reach": 12350,
"likes": 342,
"comments": 28,
"shares": 45,
"clicks": 189,
"views": 0,
"engagementRate": 2.78,
"lastUpdated": "2024-11-02T08:30:00Z"
},
"platformAnalytics": [
{
"platform": "twitter",
"status": "published",
"accountId": "64e1f0a9e2b5af0012ab34cd",
"accountUsername": "@acmecorp",
"analytics": {
"impressions": 15420,
"reach": 12350,
"likes": 342,
"comments": 28,
"shares": 45,
"clicks": 189,
"views": 0,
"engagementRate": 2.78,
"lastUpdated": "2024-11-02T08:30:00Z"
}
}
],
"platform": "twitter",
"platformPostUrl": "https://twitter.com/acmecorp/status/123456789",
"isExternal": false
}{
"error": "Unauthorized"
}{
"error": "Analytics add-on required",
"code": "analytics_addon_required"
}{
"error": "Not found"
}{
"error": "string",
"details": {}
}Select Snapchat profile POST
Complete the Snapchat connection flow by saving the selected Public Profile. Snapchat requires a Public Profile to publish content. Use X-Connect-Token if connecting via API key.
Get best times to post GET
Returns the best times to post based on historical engagement data. Groups all published posts by day of week and hour (UTC), calculating average engagement per slot. Use this to auto-schedule posts at optimal times. Requires the Analytics add-on.