Analytics · Analytics

Get an analytics dashboard

Fetches an analytics dashboard.

GEThttps://api.pozy.ai/v1/analytics/dashboard
getAnalyticsDashboard

Guides: 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
profileIdstringDefault all
platformstringDefault all
fromDaterequiredstring (date)
toDaterequiredstring (date)
comparestringOne of previous_period
topPostsintegerDefault 50 to 25
recentPostsintegerDefault 100 to 25

Example

curl -X GET "https://api.pozy.ai/v1/analytics/dashboard?fromDate=2026-10-01&toDate=2026-10-01" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • dateRangeobjectrequired
    • fromDatestring (date)
    • toDatestring (date)
  • totalsobjectrequired
    9 child fields
    • impressionsinteger
    • reachinteger
    • likesinteger
    • commentsinteger
    • sharesinteger
    • savesinteger
    • clicksinteger
    • viewsinteger
    • engagementRatenumber
  • previousTotalsobject
    9 child fields
    • impressionsinteger
    • reachinteger
    • likesinteger
    • commentsinteger
    • sharesinteger
    • savesinteger
    • clicksinteger
    • viewsinteger
    • engagementRatenumber
  • followersobjectrequired
    • currentinteger
    • gainedinteger
    • byAccountarray of object
      4 child fields
      • accountIdstring
      • platformstring
      • currentinteger
      • gainedinteger
  • previousFollowersobject
    • currentinteger
    • gainedinteger
    • byAccountarray of object
      4 child fields
      • accountIdstring
      • platformstring
      • currentinteger
      • gainedinteger
  • dailyarray of objectrequired
    • datestring (date)
    • impressionsinteger
    • reachinteger
    • engagementinteger
    • viewsinteger
    • followersGainedinteger
  • topPostsarray of objectrequired
    • postIdstring
    • platformstring
    • publishedAtstring (date-time)
    • metricsobject
      9 child fields
      • impressionsinteger
      • reachinteger
      • likesinteger
      • commentsinteger
      • sharesinteger
      • savesinteger
      • clicksinteger
      • viewsinteger
      • engagementRatenumber
  • recentPostsarray of objectrequired
    • postIdstring
    • platformstring
    • publishedAtstring (date-time)
    • metricsobject
      9 child fields
      • impressionsinteger
      • reachinteger
      • likesinteger
      • commentsinteger
      • sharesinteger
      • savesinteger
      • clicksinteger
      • viewsinteger
      • engagementRatenumber
  • dataAsOfstring (date-time)required

    Can be null.

200 response
{
  "dateRange": {
    "fromDate": "2026-10-01",
    "toDate": "2026-10-01"
  },
  "totals": {
    "impressions": 1,
    "reach": 1,
    "likes": 1,
    "comments": 1,
    "shares": 1,
    "saves": 1,
    "clicks": 1,
    "views": 1,
    "engagementRate": 12.5
  },
  "previousTotals": {
    "impressions": 1,
    "reach": 1,
    "likes": 1,
    "comments": 1,
    "shares": 1,
    "saves": 1,
    "clicks": 1,
    "views": 1,
    "engagementRate": 12.5
  },
  "followers": {
    "current": 1,
    "gained": 1,
    "byAccount": [
      {
        "accountId": "696e0b682d0a31188e7a2ba9",
        "platform": "instagram",
        "current": 1,
        "gained": 1
      }
    ]
  },
  "previousFollowers": {
    "current": 1,
    "gained": 1,
    "byAccount": [
      {
        "accountId": "696e0b682d0a31188e7a2ba9",
        "platform": "instagram",
        "current": 1,
        "gained": 1
      }
    ]
  },
  "daily": [
    {
      "date": "2026-10-02T09:00:00.000Z",
      "impressions": 1,
      "reach": 1,
      "engagement": 1,
      "views": 1,
      "followersGained": 1
    }
  ],
  "topPosts": [
    {
      "postId": "6108a2cc742cb4e991051e0c",
      "platform": "instagram",
      "publishedAt": "2026-10-02T09:00:00.000Z",
      "metrics": {
        "impressions": 1,
        "reach": 1,
        "likes": 1,
        "comments": 1,
        "shares": 1,
        "saves": 1,
        "clicks": 1,
        "views": 1,
        "engagementRate": 12.5
      }
    }
  ],
  "recentPosts": [
    {
      "postId": "6108a2cc742cb4e991051e0c",
      "platform": "instagram",
      "publishedAt": "2026-10-02T09:00:00.000Z",
      "metrics": {
        "impressions": 1,
        "reach": 1,
        "likes": 1,
        "comments": 1,
        "shares": 1,
        "saves": 1,
        "clicks": 1,
        "views": 1,
        "engagementRate": 12.5
      }
    }
  ],
  "dataAsOf": "2026-10-02T09:00:00.000Z"
}

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