---
title: "Get one post's analytics"
method: GET
path: "/v1/posts/{id}/analytics"
---

# Get one post's analytics

`GET /v1/posts/{id}/analytics`

## Request

- Base URL: `https://postonce.to/api/public`
- URL: `https://postonce.to/api/public/v1/posts/{id}/analytics`
- Auth: HTTP bearer

Current views, likes, comments, shares and saves for each platform copy of one post that is published on TikTok, Instagram, YouTube or Facebook. Numbers are cached for up to an hour; `last_updated` says when each was read from the platform. Targets on other platforms, or not published yet, are left out. Works for posts created through the API or dashboard and for workflow posts.

## Path parameters

- `id` string, uuid, required

## Response `200`

Post analytics returned successfully.

- object
  - `data` PostTargetAnalytics
    - `id` string
    - `media_url` string, nullable: The video or image file PostOnce published.
    - `targets` object[]
      - `account_id` string
      - `platform` string
      - `platform_post_id` string, nullable
      - `url` string, nullable
      - `published_at` string, date-time
      - `metrics_status` string: ok, reconnect, limited or unavailable, as in GET /v1/analytics.
      - `views` integer, nullable
      - `likes` integer, nullable
      - `comments` integer, nullable
      - `shares` integer, nullable
      - `saves` integer, nullable
      - `engagement_rate` number, nullable: (likes + comments + shares + saves) / views. null without views.
      - `last_updated` string, date-time, nullable: When these numbers were read from the platform; null when the platform returned none.

## Other responses

- `400`: Post ID must be a valid UUID.
- `401`: Missing, invalid, revoked, or expired API key.
- `404`: Post not found.

---

[API](https://skmtc.dev/postonce/apis/postonce-public-api.md) · [All operations](https://skmtc.dev/postonce/apis/postonce-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postonce/apis/postonce-public-api/revisions/ca9dca40a543?raw)
