infipostdocs
Analytics

Post Analytics

GET /analytics/post/{postId} — Infipost Public API

GET/public/v1/analytics/post/{postId}

Get analytics data for a specific published post. Returns metrics like likes, comments, shares, impressions, etc. depending on the platform.

cURL
curl --request GET \
  --url 'https://api.infipost.asia/public/v1/analytics/post/{postId}' \
  --header 'Authorization: YOUR_API_KEY'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Parameters

postIdstring · pathrequired

Post ID

datestring · queryrequired

Number of days to look back for analytics data (e.g. 7, 30, 90)

Response

Analytics data for the post

application/json
[
  {
    "label": "Likes",
    "data": [
      {
        "total": "150",
        "date": "2025-01-01"
      },
      {
        "total": "175",
        "date": "2025-01-02"
      }
    ],
    "percentageChange": 16.7
  },
  {
    "label": "Comments",
    "data": [
      {
        "total": "25",
        "date": "2025-01-01"
      },
      {
        "total": "30",
        "date": "2025-01-02"
      }
    ],
    "percentageChange": 20
  }
]
labelstring

Metric label (e.g. Followers, Impressions, Likes)

dataarray[]
Show child attributes
totalstring

Metric value for this date

datestring

Date string (YYYY-MM-DD)

percentageChangenumber

Percentage change over the selected period