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"}.changeholds the difference in percent and isnullwhen 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 writtenYYYY-MM. For a split into categories, such as countries, a point is{"label", "value"}. When a chart draws more than one line,dataholds one such list per line. A day with no stored data hasvalueset tonull.
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
| Parameter | Type | Description |
|---|---|---|
workspaceUuid | string | UUID of the workspace. |
accountUuid | string | UUID of the account. |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | The analytics type. It must be one of the account's tabs, see Types by network. Default overview. |
period | string | No | Preset range, one of this_month (default), last_month, last_3_months, this_week, last_week or this_year. See Periods. |
date_from | string | Yes, if date_to is sent | First day of a custom range, YYYY-MM-DD. |
date_to | string | Yes, if date_from is sent | Last day of the custom range, YYYY-MM-DD. Not before date_from, and the range spans less than 366 days. |
page | integer | No | Page of results for content and reviews. Minimum 1, default 1. |
per_page | integer | No | Items per page for content and reviews, from 1 to 50. Default 25 posts or 10 reviews. |
sort_by | string | No | Sort 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_dir | string | No | asc or desc. Default desc. Applies to the content order. |
Types by network
provider | Types in tabs |
|---|---|
facebook_page | overview, engagement, video, content, hashtags, insights |
instagram | overview, engagement, audience, reach, content, hashtags, insights, competitors |
instagram_standalone | Same as instagram, without competitors |
threads, bluesky, mastodon, pixelfed, linkedin_page | overview, engagement, content, hashtags, insights |
twitter, tiktok, youtube | overview, content, insights |
linkedin | overview, engagement |
pinterest | overview, content, hashtags, insights |
gbp | overview, 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.
period | From | To |
|---|---|---|
this_week | Start of this week | Today |
last_week | Start of last week | End of last week |
this_month | First day of this month | Today |
last_month | First day of last month | Last day of last month |
last_3_months | First day of the month three months ago | Last day of last month |
this_year | 1 January | Today |
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
}
]
}
}| Field | Type | Description |
|---|---|---|
account | object | The account, with the account fields. |
type | string | The type returned. |
tabs | array | Every type this account supports. |
period | object | The range used, as in the summary. |
initial_sync.in_progress | boolean | true while the first import of history runs. |
initial_sync.progress | integer or null | Import progress in percent while it runs, otherwise null. |
data | object | The 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."
}