---
title: "Get best times to post"
method: GET
path: "/v1/analytics/best-time"
tags: ["Analytics"]
---

# Get best times to post

`GET /v1/analytics/best-time`

Returns the best times to post based on historical engagement data.
Groups all published posts by day of week and hour (UTC), calculating average engagement per slot.
Use this to auto-schedule posts at optimal times. Requires the Analytics add-on.

## Query parameters

- `platform` string
- `profileId` string
- `accountId` string
- `source` 'all' | 'late' | 'external'

## Response `200`

Best time slots

- object
  - `slots` object[]
    - `day_of_week` integer — 0=Monday, 6=Sunday
    - `hour` integer — Hour in UTC (0-23)
    - `avg_engagement` number — Average engagement (likes + comments + shares + saves)
    - `post_count` integer — Number of posts in this slot

## Other responses

- `401` — Unauthorized
- `403` — Analytics access required. Legacy plans need the Analytics add-on; included by default on usage-based plans.

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/revisions/f81ca70ea6b9/schema)
