SocialKit
APIAnalytics

Get the posting times

Get a score for every hour of the week, learned from how past posts of your accounts performed, and the three best slots.

Use it to see when your audience responds best. Every account counts equally, so a busy account does not outweigh the others. To get a ready date and time for one account instead, use Get the best times.

Request

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

Path parameters

ParameterTypeDescription
workspaceUuidstringUUID of the workspace.

Query parameters

ParameterTypeRequiredDescription
accountsarrayNoUUIDs of accounts to include, for example accounts[]=<accountUuid>. Default: every account of the workspace. Each UUID must belong to the workspace.
timezonestringNoIANA timezone name, for example Europe/Bucharest. Days and hours in the response use it. Default: the timezone set in the workspace settings.

Example

curl -X GET -g 'https://app.socialk.it/core/api/<workspaceUuid>/analytics/posting-times?accounts[]=<accountUuid>&timezone=Europe/Bucharest' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

Response

The lists are shortened with ... in the example: days has 7 entries and day_intervals has 7 lists of 12 intervals.

{
  "has_data": true,
  "timezone": "Europe/Bucharest",
  "offset_hours": 2,
  "accounts": 2,
  "samples": 148,
  "days": [
    {
      "day": 0,
      "score": 47,
      "samples": 12,
      "confidence": "high"
    },
    {
      "day": 1,
      "score": 58,
      "samples": 26,
      "confidence": "high"
    },
    ...
  ],
  "day_intervals": [
    [
      {
        "start_hour": 0,
        "end_hour": 2,
        "best_hour": 1,
        "score": 50,
        "samples": 0,
        "confidence": "none"
      },
      {
        "start_hour": 2,
        "end_hour": 4,
        "best_hour": 2,
        "score": 41,
        "samples": 1,
        "confidence": "low"
      },
      ...
    ],
    ...
  ],
  "best": [
    {
      "day": 2,
      "hour": 13,
      "score": 91,
      "samples": 14
    },
    {
      "day": 5,
      "hour": 18,
      "score": 84,
      "samples": 9
    },
    {
      "day": 1,
      "hour": 9,
      "score": 77,
      "samples": 6
    }
  ]
}

Weekday numbers start at 0 for Sunday and end at 6 for Saturday. A score is between 0 and 100, and 50 is the neutral value that means no signal.

FieldTypeDescription
has_databooleanfalse when none of the accounts has any history yet. The lists are then empty and accounts and samples are 0.
timezonestringTimezone used for days and hours.
offset_hoursintegerHours between UTC and timezone right now.
accountsintegerNumber of accounts with scored history.
samplesintegerNumber of past posts behind the scores.
daysarrayOne entry per weekday: day, score, samples and confidence.
day_intervalsarrayOne list per weekday (index 0 is Sunday), each with 12 two-hour intervals: start_hour, end_hour, best_hour (the highest-scoring hour inside the interval), score, samples and confidence.
bestarrayThe top three slots by score, taking no more than one slot from any weekday. Each has day, hour, score and samples. A slot needs at least 2 posts behind it to qualify.

confidence reflects how many posts a score rests on: none for no posts, low for 1, medium for 2 to 4, and high for 5 or more.

{
  "message": "Unauthenticated."
}

On this page