SocialKit
APIAnalytics

Get the analytics summary

Get follower and posting figures for the whole workspace over a period, with a comparison to the previous period.

The summary covers every connected account whose network supports analytics. Every figure that is measured against the previous period comes as an object with two keys: value, and change, the difference in percent. change is null when the previous period gives nothing to compare against.

Request

  • Method: GET
  • URL: https://app.socialk.it/core/api/<workspaceUuid>/analytics
  • Authorization: Bearer <personal-key>
  • Roles: Admin, Member, Viewer (see Permissions)

Path parameters

ParameterTypeDescription
workspaceUuidstringUUID of the workspace.

Query parameters

ParameterTypeRequiredDescription
periodstringNoPreset range, one of this_month (default), last_month, last_3_months, this_week, last_week or this_year. See Periods.
date_fromstringYes, if date_to is sentFirst day of a custom range, YYYY-MM-DD.
date_tostringYes, if date_from is sentLast day of the custom range, YYYY-MM-DD. Not before date_from, and the range spans less than 366 days.

Periods

Dates are UTC days. A custom range (date_from and date_to together) wins over period. The response period object shows the range that was used and the previous range of the same length that ends the day before it starts, which is what every change figure compares against.

periodFromTo
this_weekStart of this weekToday
last_weekStart of last weekEnd of last week
this_monthFirst day of this monthToday
last_monthFirst day of last monthLast day of last month
last_3_monthsFirst day of the month three months agoLast day of last month
this_year1 JanuaryToday

Example

curl -X GET 'https://app.socialk.it/core/api/<workspaceUuid>/analytics?date_from=2026-11-01&date_to=2026-11-03' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

Response

{
  "period": {
    "start_date": "2026-11-01",
    "end_date": "2026-11-03",
    "previous_start_date": "2026-10-29",
    "previous_end_date": "2026-10-31"
  },
  "data": {
    "total_followers": 110,
    "follower_growth": {
      "value": 10,
      "change": 100
    },
    "total_posts": {
      "value": 4,
      "change": 33.3
    },
    "best_account": {
      "account": {
        "id": 3,
        "uuid": "ed1d7f93-ebca-4217-957c-a25fbb2c1075",
        "name": "Northwind Studio",
        "username": "northwindhq",
        "image": "https://app.socialk.it/storage/avatars/northwind-hq.jpg",
        "provider": "twitter",
        "data": null,
        "authorized": true,
        "profile_url": "https://x.com/northwindhq",
        "created_at": "2026-03-29 09:55:31"
      },
      "followers": 110,
      "follower_growth": 10,
      "growth_rate": 10,
      "posts": 4
    },
    "needs_attention": null,
    "audience_chart": [
      {
        "date": "2026-11-01",
        "value": 100
      },
      {
        "date": "2026-11-02",
        "value": 104
      },
      {
        "date": "2026-11-03",
        "value": 110
      }
    ],
    "leaderboard": [
      {
        "account": {
          "id": 3,
          "uuid": "ed1d7f93-ebca-4217-957c-a25fbb2c1075",
          "name": "Northwind Studio",
          "username": "northwindhq",
          "image": "https://app.socialk.it/storage/avatars/northwind-hq.jpg",
          "provider": "twitter",
          "data": null,
          "authorized": true,
          "profile_url": "https://x.com/northwindhq",
          "created_at": "2026-03-29 09:55:31"
        },
        "followers": 110,
        "follower_growth": 10,
        "growth_rate": 10,
        "posts": 4
      }
    ],
    "most_active": {
      "account": {
        "id": 3,
        "uuid": "ed1d7f93-ebca-4217-957c-a25fbb2c1075",
        "name": "Northwind Studio",
        "username": "northwindhq",
        "image": "https://app.socialk.it/storage/avatars/northwind-hq.jpg",
        "provider": "twitter",
        "data": null,
        "authorized": true,
        "profile_url": "https://x.com/northwindhq",
        "created_at": "2026-03-29 09:55:31"
      },
      "followers": 110,
      "follower_growth": 10,
      "growth_rate": 10,
      "posts": 4
    },
    "least_active": null,
    "follower_distribution": [
      {
        "account": {
          "id": 3,
          "uuid": "ed1d7f93-ebca-4217-957c-a25fbb2c1075",
          "name": "Northwind Studio",
          "username": "northwindhq",
          "image": "https://app.socialk.it/storage/avatars/northwind-hq.jpg",
          "provider": "twitter",
          "data": null,
          "authorized": true,
          "profile_url": "https://x.com/northwindhq",
          "created_at": "2026-03-29 09:55:31"
        },
        "followers": 110,
        "percentage": 100
      }
    ],
    "posting_streak": {
      "active_days": 2,
      "total_days": 3,
      "percentage": 67
    }
  }
}

period is the range used. In data:

FieldTypeDescription
total_followersintegerFollowers across all accounts at the end of the range.
follower_growthobjectvalue is the followers gained in the range, change compares it with the previous range.
total_postsobjectvalue is the posts published in the range across all accounts, change compares it with the previous range.
best_accountobject or nullThe account with the highest follower growth rate.
needs_attentionobject or nullThe account that shrank the most. It appears only when its growth rate is below zero and it differs from best_account.
audience_chartarrayOne {"date", "value"} point for each day in the range, holding the combined followers of all accounts. A day without any stored audience figure has value set to null.
leaderboardarrayEvery account, most followers first.
most_activeobject or nullThe account with the most posts in the range.
least_activeobject or nullThe account with the fewest posts. null when only one account counts.
follower_distributionarrayThe follower count and percentage of each account, largest first. Empty when the workspace has no followers.
posting_streakobjectactive_days (days with at least one post), total_days in the range and percentage (rounded).

The account entries in best_account, needs_attention, most_active, least_active and leaderboard hold account (the account fields), followers, follower_growth, growth_rate (percent) and posts. Entries in follower_distribution hold account, followers and percentage.

{
  "message": "Unauthenticated."
}

On this page