GET /api/v1/analytics/best-time
Best UTC weekday/hour slots from published posts with metrics, falling back to Instagram online followers or defaults
BearerAuthAuthorizationBearer <token>API key sk_...
accountId?stringOnly this account
days?integerLook-back window
1 <= value <= 36590BestTime
application/json- response
days?integertimezone?"UTC""UTC"basedOnPosts?integeraccountId?stringsource?stringhistory needs at least 3 published posts with metrics; then Instagram online followers; then defaults
"history""online_followers""default"onlineFollowersAccountId?stringslots?array<>Top 5 slots
curl -X GET 'https://example.com/api/v1/analytics/best-time'{ "days": 0, "timezone": "UTC", "basedOnPosts": 0, "accountId": "string", "source": "history", "onlineFollowersAccountId": "string", "slots": [ { "dayOfWeek": 0, "hour": 0, "avgEngagement": 0, "posts": 0, "onlineFollowers": 0 } ]}POST /api/v1/posts/sync-external POST
Read the account's recent posts from the platform now (including posts published outside Postgale) and store today's metrics for each. With postId or url, returns that post ({found, post})
GET /api/v1/analytics/facebook/page-insights GET
Facebook Page insights in Zernio's envelope (default page_media_view, page_post_engagements, page_follows; also page_views_total, page_video_views, page_video_view_time, content_monetization_earnings, monetization_approximate_earnings). At most 89 days, default the last 30. followers_gained / followers_lost are listed in unavailableMetrics