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

Parameters: get_profile_performance
NameTypeDescription
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
curl "https://cotlet.dev/api/v1/sprout-social/profile-performance?since=since&until=until" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("sprout-social", "get_profile_performance", {"since":"since","until":"until"})
Node.js
const result = await cotlet.call('sprout-social', 'get_profile_performance', {"since":"since","until":"until"});
CLI
cotlet call sprout-social get_profile_performance --data '{"since":"since","until":"until"}'

Example response

JSON

{
  "profiles": [
    {
      "profile_id": "p_li_02",
      "impressions": 19800,
      "engagements": 1020
    },
    {
      "profile_id": "p_ig_01",
      "impressions": 14400,
      "engagements": 790
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.