Analytics · Analytics

Get post analytics

Fetches post analytics.

GEThttps://api.pozy.ai/v1/analytics
getAnalytics

Guides: Analytics, Post analytics, 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
postIdstring
platformstring
profileIdstring
accountIdstring
sourcestringOne of all, pozy, externalDefault all
fromDatestring (date)
toDatestring (date)
limitintegerDefault 501 to 100
pageintegerDefault 1At least 1
sortBystringOne of date, engagement, impressions, reach, likes, comments, shares, saves, clicks, views, follows, ig_reels_avg_watch_time, ig_reels_video_view_total_time, reposts, reels_skip_rate, completion_rate, profile_views, website_clicksDefault date
orderstringOne of asc, descDefault desc
tagsstring

Example

curl -X GET "https://api.pozy.ai/v1/analytics?limit=50" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

200 response
{
  "postId": "6108a2cc742cb4e991051e0c",
  "pozyPostId": "65c07fe18b8de4a270f358ad",
  "status": "published",
  "content": "Hello from Pozy",
  "scheduledFor": "2026-10-02T09:00:00.000Z",
  "publishedAt": "2026-10-02T09:00:00.000Z",
  "analytics": {
    "impressions": 1,
    "reach": 1,
    "likes": 1,
    "comments": 1,
    "shares": 1,
    "saves": 1,
    "clicks": 1,
    "views": 1,
    "follows": 1,
    "igReelsAvgWatchTime": 1,
    "igReelsVideoViewTotalTime": 42,
    "reelsSkipRate": 12.5,
    "completionRate": 12.5,
    "profileViews": 1,
    "websiteClicks": 1,
    "impressionSources": {
      "key": 12.5
    },
    "audienceTypes": {
      "key": 12.5
    },
    "audienceCountries": {
      "key": 12.5
    },
    "replays": 1,
    "retentionCurve": {
      "key": 12.5
    },
    "reposts": 1,
    "videoDurationSeconds": 1,
    "engagementRate": 12.5,
    "lastUpdated": "2026-10-02T09:00:00.000Z"
  },
  "platformAnalytics": [
    {
      "platform": "instagram",
      "status": "published",
      "platformPostId": "637f799b3039e6602e83fa4f",
      "accountId": "696e0b682d0a31188e7a2ba9",
      "accountUsername": "acme",
      "analytics": {
        "impressions": 1,
        "reach": 1,
        "likes": 1,
        "comments": 1,
        "shares": 1,
        "saves": 1,
        "clicks": 1,
        "views": 1,
        "follows": 1,
        "igReelsAvgWatchTime": 1,
        "igReelsVideoViewTotalTime": 42,
        "reelsSkipRate": 12.5,
        "completionRate": 12.5,
        "profileViews": 1,
        "websiteClicks": 1,
        "impressionSources": {
          "key": 12.5
        },
        "audienceTypes": {
          "key": 12.5
        },
        "audienceCountries": {
          "key": 12.5
        },
        "replays": 1,
        "retentionCurve": {
          "key": 12.5
        },
        "reposts": 1,
        "videoDurationSeconds": 1,
        "engagementRate": 12.5,
        "lastUpdated": "2026-10-02T09:00:00.000Z"
      },
      "syncStatus": "synced",
      "platformPostUrl": "https://pozy.ai/media/example-1.jpg",
      "errorMessage": "Hello from Pozy",
      "errorCode": "post_not_found",
      "isOwner": true
    }
  ],
  "platform": "instagram",
  "platformPostUrl": "https://pozy.ai/media/example-1.jpg",
  "isExternal": true,
  "syncStatus": "synced",
  "message": "Hello from Pozy",
  "thumbnailUrl": "https://pozy.ai/media/example-1.jpg",
  "mediaType": "image",
  "mediaItems": [
    {
      "type": "image",
      "url": "https://pozy.ai/media/example-1.jpg",
      "thumbnail": "https://pozy.ai/media/example-1.jpg",
      "altText": "Hello from Pozy",
      "mediaStatus": "available",
      "unavailableReason": "platform_withheld"
    }
  ],
  "mediaProductType": "string",
  "isAiGenerated": true,
  "isSharedToFeed": true,
  "mediaAudioType": "string"
}

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