Get post analytics
Views, likes, comments, shares and saves for each post the connected TikTok, Instagram, YouTube and Facebook accounts published in the last 7, 30 or 90 days, including posts made outside PostOnce. Each platform copy is compared with its account's median views (views_vs_account_median: 2 means twice the account's usual views), so above- and below-average posts can be found and compared. Numbers are cached and refreshed about every 10 minutes; refreshing is true while some are still loading. A first report for many accounts can take longer than a few seconds: the call then returns refreshing: true with no posts yet and keeps building, so call again in a minute. A metric is null when the platform does not report it. Partner accounts get one end user's posts per call with external_user_id or account_id, and their own accounts (those without an end user) otherwise. For one post, use GET /v1/posts/{id}/analytics.
Request
- Base URL: https://postonce.to/api/public
- URL: https://postonce.to/api/public/v1/analytics
- Auth: HTTP bearer
Query parameters
Range in days. One of 7, 30 or 90. Defaults to 30.
Partner accounts only. Report on this end user's accounts. Without it (or account_id), partners get their own accounts.
Report on one connected account.
Response
Analytics returned successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.