Analytics · Analytics

Get post samples

Fetches post samples.

GEThttps://api.pozy.ai/v1/analytics/samples
Instagram, Facebook, TikTok, YouTube, X and Threads and 5 moregetPostSamples

Guides: Tracking and authenticity, Platform insights

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the analytics resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
postIdrequiredstring
fromDatestring (date-time)
toDatestring (date-time)
limitintegerDefault 5001 to 2000

Example

curl -X GET "https://api.pozy.ai/v1/analytics/samples?postId=6108a2cc742cb4e991051e0c&limit=500" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • postIdstringrequired
  • samplesarray of objectrequired
    8 child fields
    • syncedAtstring (date-time)required
    • viewsintegerrequired
    • likesintegerrequired
    • commentsintegerrequired
    • sharesintegerrequired

      Can be null.

    • savesintegerrequired

      Can be null.

    • watchSecondsnumberrequired

      Can be null.

    • completionRatenumberrequired

      Can be null.

200 response
{
  "postId": "6108a2cc742cb4e991051e0c",
  "samples": [
    {
      "syncedAt": "2026-10-02T09:00:00.000Z",
      "views": 1,
      "likes": 1,
      "comments": 1,
      "shares": 1,
      "saves": 1,
      "watchSeconds": 12.5,
      "completionRate": 12.5
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Analytics