SocialKit
APIAnalytics

Get the analytics of an account

Get one analytics type, such as overview, content or insights, for a single connected account over a period.

The types an account supports depend on its network. The response lists them in tabs; leave type out to get overview. The shape of data varies with the network and the type, and mirrors the analytics screens in the SocialKit dashboard. Two rules apply to every type:

  • A figure that is set against the previous period is an object {"value", "change"}. change holds the difference in percent and is null when the previous period has no data to compare.
  • Charts are lists of points. Over time, a point is {"date", "value"}, where the date is a UTC day or a month written YYYY-MM. For a split into categories, such as countries, a point is {"label", "value"}. When a chart draws more than one line, data holds one such list per line. A day with no stored data has value set to null.

Right after you connect an account, SocialKit imports its past data. Until that import ends, initial_sync.in_progress is true and the figures may be missing parts.

Request

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

Path parameters

ParameterTypeDescription
workspaceUuidstringUUID of the workspace.
accountUuidstringUUID of the account.

Query parameters

ParameterTypeRequiredDescription
typestringNoThe analytics type. It must be one of the account's tabs, see Types by network. Default overview.
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.
pageintegerNoPage of results for content and reviews. Minimum 1, default 1.
per_pageintegerNoItems per page for content and reviews, from 1 to 50. Default 25 posts or 10 reviews.
sort_bystringNoSort content posts by a metric, named as in the posts' metrics object, for example IMPRESSION_COUNT. Up to 64 characters. Without it, or with a name the network does not know, posts come newest first.
sort_dirstringNoasc or desc. Default desc. Applies to the content order.

Types by network

providerTypes in tabs
facebook_pageoverview, engagement, video, content, hashtags, insights
instagramoverview, engagement, audience, reach, content, hashtags, insights, competitors
instagram_standaloneSame as instagram, without competitors
threads, bluesky, mastodon, pixelfed, linkedin_pageoverview, engagement, content, hashtags, insights
twitter, tiktok, youtubeoverview, content, insights
linkedinoverview, engagement
pinterestoverview, content, hashtags, insights
gbpoverview, engagement, content, search_terms, reviews

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/accounts/<accountUuid>?type=overview&period=last_month' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

Response

{
  "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"
  },
  "type": "overview",
  "tabs": [
    "overview",
    "content",
    "insights"
  ],
  "period": {
    "start_date": "2026-11-01",
    "end_date": "2026-11-03",
    "previous_start_date": "2026-10-29",
    "previous_end_date": "2026-10-31"
  },
  "initial_sync": {
    "in_progress": false,
    "progress": null
  },
  "data": {
    "total_followers": 110,
    "impressions": {
      "value": 5400,
      "change": 12.5
    },
    "likes": {
      "value": 210,
      "change": -4.1
    },
    "retweets": {
      "value": 18,
      "change": 20
    },
    "replies": {
      "value": 31,
      "change": null
    },
    "quotes": {
      "value": 2,
      "change": 0
    },
    "bookmarks": {
      "value": 9,
      "change": 50
    },
    "audience": [
      {
        "date": "2026-11-01",
        "value": 100
      },
      {
        "date": "2026-11-02",
        "value": 104
      },
      {
        "date": "2026-11-03",
        "value": 110
      }
    ]
  }
}
FieldTypeDescription
accountobjectThe account, with the account fields.
typestringThe type returned.
tabsarrayEvery type this account supports.
periodobjectThe range used, as in the summary.
initial_sync.in_progressbooleantrue while the first import of history runs.
initial_sync.progressinteger or nullImport progress in percent while it runs, otherwise null.
dataobjectThe figures of the type.

The content type returns data.posts (each with provider_post_id, title, text, permalink, link, thumbnail, content_type, created_at, metrics, deltas and trends), data.pagination (meta and links, as in Pagination) and data.avg_metrics.

{
  "message": "Unauthenticated."
}

On this page