Instance performance over time
Returns time-series performance metrics for the given instances, broken into time buckets.
What is included per time bucket:
- Organic metrics (likes, comments, shares, engagements, impressions)
- Paid metrics (paid likes, comments, shares, engagements, impressions)
- Each data point includes
startDate(inclusive) andendDate(inclusive) indicating the bucket boundaries
Use the granularity parameter to control the bucket size (see parameter description for details).
Pagination
Results are paginated. Use pageSize (default: 50, max: 100) and pageNumber (1-indexed) to navigate pages. The response includes a pagination object with page, pageSize, totalPages, and totalItems.
- Type: stringFormat: date-time
start Date requiredStart of the reporting period (inclusive). Format:
YYYY-MM-DD. - Type: stringFormat: date-time
end Date requiredEnd of the reporting period (inclusive). Format:
YYYY-MM-DD. - Type: array string[]
instance Ids One or more instance IDs to limit the query scope. If not provided, the query includes all instances accessible with the API credentials.
Supported array formats:
param=a,b,c(comma-separated),param=a¶m=b(repeated key), orparam[]=a¶m[]=b(bracket syntax). - Type: array number[] …50
campaign Ids Filter results to specific campaigns. When omitted, all campaigns are included.
Supported array formats:
param=a,b,c(comma-separated),param=a¶m=b(repeated key), orparam[]=a¶m[]=b(bracket syntax). - Type: array string[]enum
platform Filter by top-level platform. Selecting a platform includes all its content types (e.g.
instagramincludesinstagram_post,instagram_reel,instagram_story).Cannot be combined with
contentType— provide only one of the two.When omitted (and
contentTypeis also omitted), all platforms are included.Supported array formats:
param=a,b,c(comma-separated),param=a¶m=b(repeated key), orparam[]=a¶m[]=b(bracket syntax).valuesinstagram tiktok facebook youtube twitter
- Type: array string[]enum
content Type Filter by specific content type for granular filtering beyond top-level platforms.
instagram_post,instagram_reel,instagram_story— specific Instagram content formatsfacebook_post,facebook_live,facebook_group,facebook_reel— specific Facebook content formatstiktok,youtube_video,youtube_shorts— platform-specific types
Cannot be combined with
platform— provide only one of the two.When omitted (and
platformis also omitted), all content types are included.Supported array formats:
param=a,b,c(comma-separated),param=a¶m=b(repeated key), orparam[]=a¶m[]=b(bracket syntax).valuesinstagram _post instagram _reel instagram _story facebook _post facebook _live
- Type: stringenum
date Basis Controls which date dimension is used for filtering.
post_date(default): filters by the date the content was originally published. Best for analyzing content output and creator activity over time.performance_date: returns metrics recorded within the requested date range, regardless of when the content was originally published. Best for understanding how campaigns performed during a specific reporting window.
Example: a post published on Jan 5 that receives engagement on Feb 10 will appear in a Feb 1–28 query with
performance_date, but in a Jan 1–31 query withpost_date.valuespost _date performance _date
- Type: number
page Size min:1max:100Number of items per page.
- Type: number
page Number min:1max:500Page number (1-indexed).
- Type: stringenum
granularity Controls the time bucket size for the timeseries data.
Value Behavior dayOne bucket per calendar day weekAggregates by ISO 8601 week (Monday–Sunday) monthAggregates by calendar month (1st–last day) quarterAggregates by calendar quarter (Q1 = Jan–Mar, Q2 = Apr–Jun, Q3 = Jul–Sep, Q4 = Oct–Dec) yearAggregates by calendar year (Jan 1–Dec 31) Each data point includes
startDate(inclusive) andendDate(inclusive) indicating the bucket boundaries. Partial buckets are returned at the edges of the requested date range.valuesyear quarter month week day
- application/json
- application/json
- application/json
curl 'https://reporting.api.later.com/v2/instances/performance-over-time?startDate=2024-01-01&endDate=2024-12-31&instanceIds=instance_abc&instanceIds=instance_def&campaignIds=49761&campaignIds=49802&platform=instagram&platform=tiktok&contentType=instagram_reel&contentType=tiktok&dateBasis=post_date&pageSize=50&pageNumber=1&granularity=month' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"data": [
{
"endDate": "2024-01-31",
"metrics": {
"clicks": 560,
"comments": 340,
"cpe": 0.29,
"cpm": 35.14,
"engagementRate": 12.32,
"engagements": 2280,
"estimatedValueGenerated": 8200,
"impressions": 18500,
"likes": 1200,
"paidComments": 85,
"paidEngagementRate": 7.88,
"paidEngagements": 945,
"paidImpressions": 12000,
"paidLikes": 400,
"paidShares": 60,
"shares": 180
},
"startDate": "2024-01-01"
},
{
"endDate": "2024-02-29",
"metrics": {
"clicks": 620,
"comments": 390,
"cpe": 0.27,
"cpm": 33.81,
"engagementRate": 12.71,
"engagements": 2670,
"estimatedValueGenerated": 9400,
"impressions": 21000,
"likes": 1450,
"paidComments": 110,
"paidEngagementRate": 7.78,
"paidEngagements": 1105,
"paidImpressions": 14200,
"paidLikes": 520,
"paidShares": 75,
"shares": 210
},
"startDate": "2024-02-01"
}
],
"pagination": {
"page": 1,
"pageSize": 50,
"totalItems": 2,
"totalPages": 1
}
}