Get profile performance
Get profile-level numbers for a date range.
GET https://cotlet.dev/api/v1/sprout-social/profile-performance
read
Returns the performance numbers Sprout reports for each profile over the range, one row per profile. Use it twice, for this week and the week before, to show change. What is available follows your plan.
Parameters
| Name | Type | Description |
|---|---|---|
| profile_ids string[] | string[] | Profile IDs from list_profiles. Leave empty for every profile your login can see. |
| since string required | string | Start date, ISO. |
| until string required | string | End date, ISO. |
Request
curl "https://cotlet.dev/api/v1/sprout-social/profile-performance?since=since&until=until" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("sprout-social", "get_profile_performance", {"since":"since","until":"until"}) const result = await cotlet.call('sprout-social', 'get_profile_performance', {"since":"since","until":"until"}); cotlet call sprout-social get_profile_performance --data '{"since":"since","until":"until"}' Example response
{
"profiles": [
{
"profile_id": "p_li_02",
"impressions": 19800,
"engagements": 1020
},
{
"profile_id": "p_ig_01",
"impressions": 14400,
"engagements": 790
}
]
}