OverviewProductsPlatformsAPI ReferenceResources
Posting Analytics

Get best times to post

GEThttps://zernio.com/api/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.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

Optional
platformstring

Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.

profileIdstring

Filter by profile ID. Omit for all profiles.

accountIdstring

Filter by account ID. Omit for all accounts.

sourcestringDefault allOne of all | late | external

Filter by post origin. "late" for posts published via Zernio, "external" for posts imported from platforms.

Responses

Success· the request worked

Errors· the request failed

GET/v1/analytics/best-time
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.analytics.getBestTimeToPost();console.log(data);
{  "slots": [    {      "day_of_week": 2,      "hour": 18,      "avg_engagement": 510.3,      "post_count": 15    },    {      "day_of_week": 0,      "hour": 9,      "avg_engagement": 342.5,      "post_count": 12    },    {      "day_of_week": 4,      "hour": 12,      "avg_engagement": 289.1,      "post_count": 8    }  ]}
OpenAPI specification
Was this page helpful?