Analytics · Analytics

Get daily aggregated metrics

Fetches daily aggregated metrics.

GEThttps://api.pozy.ai/v1/analytics/daily-metrics
getDailyMetrics

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
platformstring
profileIdstring
accountIdstring
fromDatestring (date-time)
toDatestring (date-time)
sourcestringOne of all, pozy, externalDefault all
attributionstringOne of publish, receivedDefault publish

Example

curl -X GET "https://api.pozy.ai/v1/analytics/daily-metrics" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • dailyDataarray of object
    • datestring
    • postCountinteger
    • platformsmap of integer
    • metricsobject
      8 child fields
      • impressionsinteger
      • reachinteger
      • likesinteger
      • commentsinteger
      • sharesinteger
      • savesinteger
      • clicksinteger
      • viewsinteger
  • platformBreakdownarray of object
    10 child fields
    • platformstring
    • postCountinteger
    • impressionsinteger
    • reachinteger
    • likesinteger
    • commentsinteger
    • sharesinteger
    • savesinteger
    • clicksinteger
    • viewsinteger
200 response
{
  "dailyData": [
    {
      "date": "2026-10-02T09:00:00.000Z",
      "postCount": 42,
      "platforms": {
        "key": 1
      },
      "metrics": {
        "impressions": 1,
        "reach": 1,
        "likes": 1,
        "comments": 1,
        "shares": 1,
        "saves": 1,
        "clicks": 1,
        "views": 1
      }
    }
  ],
  "platformBreakdown": [
    {
      "platform": "instagram",
      "postCount": 42,
      "impressions": 1,
      "reach": 1,
      "likes": 1,
      "comments": 1,
      "shares": 1,
      "saves": 1,
      "clicks": 1,
      "views": 1
    }
  ]
}

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