Instance performance over time
Returns time-series performance metrics for the given instances, broken into time buckets.
What is included per time bucket:
- Metrics requested via the
metricsquery parameter - Each data point includes
startDate(inclusive) andendDate(inclusive) indicating the bucket boundaries
Use the granularity parameter to control the bucket size.
Gaps in the response:
The response can contain gaps — time buckets with no activity for the selected instances, filters, and date range are omitted from the data array rather than returned as zero-filled entries. For example, a month granularity request spanning six months may return fewer than six data points if some months had no posts, impressions, or paid spend for the given filters. Clients that need a contiguous series should fill missing buckets locally using the requested startDate / endDate range and granularity.
- Type: stringFormat: date-timestart
Date requiredStart of the reporting period (inclusive). Format:
YYYY-MM-DD. - Type: stringFormat: date-timeend
Date requiredEnd of the reporting period (inclusive). Format:
YYYY-MM-DD. - Type: array string[]metricsrequired
Specify one or more metric names to include in the response. Only the selected metrics will be returned within the
metricsobject for each result item.Supported values:
likes,comments,shares,clicks,impressions,reach,engagements,views,engagementRate,postsCount,estimatedValueGenerated,cpe,cpm,paidLikes,paidComments,paidShares,paidImpressions,paidEngagements,paidEngagementRate,paidReach,paidViewsMetric availability depends on the applied
platformorcontentTypefilters. Some metrics are restricted to specific content types (for example,crosspostedFacebookOnlyViewsis only available for Instagram Reels). Requesting unsupported metrics will result in a400error, along with a list of valid metrics for the current filters.Supported array formats:
param=a,b,c(comma-separated),param=a¶m=b(repeated key), orparam[]=a¶m[]=b(bracket syntax). - Type: array string[]instance
Ids Filter results to specific instances. When omitted, the request is evaluated against every instance associated with your OAuth client; supply one or more values to narrow the response to a subset. Values must be drawn from the set bound to your client credentials — requesting an instance outside that set returns
403withtype: ANL_00403.Supported array formats:
param=a,b,c(comma-separated),param=a¶m=b(repeated key), orparam[]=a¶m[]=b(bracket syntax). - Type: array number[] …50campaign
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[]enumplatform
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).values- instagram
- tiktok
- facebook
- youtube
- twitter
- Type: array string[]enumcontent
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).values- instagram
_post - instagram
_reel - instagram
_story - facebook
_post - facebook
_live
- Type: stringenumdate
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.values- post
_date - performance
_date
- Type: numberlimitmin:1max:100
Maximum number of items to return per page. Choose any value on the first request, then keep it unchanged on every subsequent request that passes a
nextCursorfrom this endpoint. To change the page size, start a new walk by omittingnextCursor. - Type: string | nullnext
Cursor Opaque cursor returned by the previous page. Omit on the first request. Cursors are tied to the query parameters of the request that produced them; to paginate, keep every parameter identical across requests and only vary
nextCursor. To change filters, sort, orlimit, start a new walk by omittingnextCursor. - Type: stringenumgranularity
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.Buckets with no activity for the selected instances, filters, and date range are omitted from the response — the returned series can therefore contain gaps. For example, a
month-granularity request over six months may return fewer than six data points if some months had no posts, impressions, or paid spend. Clients that need a contiguous series should fill missing buckets locally from the requested date range and granularity.values- year
- quarter
- month
- week
- day
- application/json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
curl 'https://reporting.api.later.com/v2/instances/performance-over-time?startDate=2025-01-01&endDate=2025-12-31&metrics=&instanceIds=&campaignIds=1&platform=instagram&contentType=instagram_post&dateBasis=post_date&limit=50&nextCursor=null&granularity=month' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"data": [
{
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"metrics": {
"likes": 1200,
"comments": 340,
"shares": 180,
"clicks": 560,
"impressions": 18500,
"reach": 14200,
"engagements": 2280,
"views": 9800,
"engagementRate": 12.32,
"postsCount": 8,
"estimatedValueGenerated": 8200,
"cpe": 0.29,
"cpm": 35.14,
"paidLikes": 400,
"paidComments": 85,
"paidShares": 60,
"paidImpressions": 12000,
"paidEngagements": 945,
"paidEngagementRate": 7.88,
"paidReach": 9400,
"paidViews": 7200
}
},
{
"startDate": "2024-02-01",
"endDate": "2024-02-29",
"metrics": {
"likes": 1450,
"comments": 390,
"shares": 210,
"clicks": 620,
"impressions": 21000,
"reach": 16100,
"engagements": 2670,
"views": 11200,
"engagementRate": 12.71,
"postsCount": 9,
"estimatedValueGenerated": 9400,
"cpe": 0.27,
"cpm": 33.81,
"paidLikes": 520,
"paidComments": 110,
"paidShares": 75,
"paidImpressions": 14200,
"paidEngagements": 1105,
"paidEngagementRate": 7.78,
"paidReach": 10800,
"paidViews": 8400
}
}
],
"nextCursor": "eyJ2ZXJzaW9uIjoxfQ"
}