SocialKit
APIAnalytics

Get the best times

Get the next date and time each account is at its best, ready to use when you schedule a post.

SocialKit scores the weekday and hour slots of each account on its own (see Get the posting times), then returns the earliest of its best slots that falls after from, looking up to 14 days ahead. Every returned time lies in the future. Accounts that have not built up enough history to name a best slot do not appear in times.

Request

  • Method: GET
  • URL: https://app.socialk.it/core/api/<workspaceUuid>/analytics/best-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.
fromstringNoDay to start searching from, YYYY-MM-DD in timezone. Default: the current moment. An earlier day is treated like the current moment.
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/best-times?accounts[]=<accountUuid>&timezone=Europe/Bucharest' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <personal-key>'

Response

{
  "timezone": "Europe/Bucharest",
  "times": [
    {
      "account_id": 3,
      "account_uuid": "ed1d7f93-ebca-4217-957c-a25fbb2c1075",
      "date": "2026-11-26",
      "time": "13:00"
    },
    {
      "account_id": 5,
      "account_uuid": "7eafa7f6-51d7-4597-a775-702a9b8bd884",
      "date": "2026-11-29",
      "time": "18:00"
    }
  ]
}
FieldTypeDescription
timezonestringTimezone of every date and time.
times[].account_idintegerNumeric ID of the account.
times[].account_uuidstringUUID of the account.
times[].datestringDate of the slot, YYYY-MM-DD.
times[].timestringTime of the slot, HH:MM. Always on the hour.
{
  "message": "Unauthenticated."
}

On this page