Per-platform ROI breakdown
Returns return-on-investment metrics grouped by content type.
What is included per content type:
- Estimated media value breakdown: value of likes, comments, shares, impressions
- Total value generated and estimated content cost
- Return on investment ratio
Query Parameters
- 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 of stringinstance
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 of 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 of stringenumplatform
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).valuesinstagramtiktokfacebookyoutubetwitterlinkedinpinterestsnapchatblogtwitch - Type: array of stringenumcontent
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 - facebook
_group - facebook
_reel - tiktok
- Type: "post_date" or "performance_date"enumdate
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. - 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.
Responses
- application/json
- application/problem+json
- application/problem+json
- application/problem+json
- application/problem+json
curl 'https://reporting.api.later.com/v2/platforms/return-on-investment?startDate=2025-01-01&endDate=2025-12-31&dateBasis=post_date&limit=50' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"data": [
{
"contentType": "instagram_post",
"estimatedContentCost": 5000,
"returnOnInvestment": 5.42,
"valueGenerated": 27100,
"valueOfComments": 5100,
"valueOfImpressions": 14200,
"valueOfLikes": 4600,
"valueOfShares": 3200
},
{
"contentType": "tiktok",
"estimatedContentCost": 3500,
"returnOnInvestment": 6.26,
"valueGenerated": 21900,
"valueOfComments": 3400,
"valueOfImpressions": 9500,
"valueOfLikes": 6200,
"valueOfShares": 2800
}
],
"nextCursor": "eyJ2ZXJzaW9uIjoxfQ"
}