infipostdocs
Analytics

Platform Analytics

GET /analytics/{integration} — Infipost Public API

GET/public/v1/analytics/{integration}

Get analytics data for a specific integration/channel. Returns metrics like followers, impressions, engagement, etc. depending on the platform.

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

Authorization

Authorizationstring · headerrequired

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

Parameters

integrationstring · pathrequired

Integration ID

datestring · queryrequired

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

Response

Analytics data for the integration

application/json
[
  {
    "label": "Followers",
    "data": [
      {
        "total": "1250",
        "date": "2025-01-01"
      },
      {
        "total": "1280",
        "date": "2025-01-02"
      }
    ],
    "percentageChange": 2.4
  },
  {
    "label": "Impressions",
    "data": [
      {
        "total": "5000",
        "date": "2025-01-01"
      },
      {
        "total": "5200",
        "date": "2025-01-02"
      }
    ],
    "percentageChange": 4
  }
]
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

Path parameter: integration

The {integration} path parameter must be the integration's id (the UUID-shaped string returned by GET /public/v1/integrations).

It is not the platform __type (e.g. x, linkedin) and not the channel display name. Passing either of those will return 400 Invalid integration.

bash
# Get the integration ID
curl -H "Authorization: your-api-key" \
  https://api.infipost.asia/public/v1/integrations

# Use the returned id
curl -H "Authorization: your-api-key" \
  https://api.infipost.asia/public/v1/analytics/<integration-id>

Common errors

  • 400 Invalid integration: the path param is the wrong shape.
  • 404 Channel not found: the integration exists but has been disconnected. Reconnect the channel from the Infipost UI.
  • Empty data: some platforms (notably Google My Business) restrict analytics by date range or by profile verification status. The endpoint returns an empty payload rather than an error.