PowerPost APIv1
PowerPost APIv1
PowerPost APIQuickstartAuthenticationWorkspacesInput Types

API Reference

Upload MediaGenerate ContentGenerationsGenerate ImagesGenerate VideosPosts & PublishingAnalyticsCalendarGet Credits

Guides

WebhooksError CodesChangelog

Analytics

Fetch performance metrics for published post items.

Get Post Item Analytics

GET /api/v1/post-items/{post_item_id}/analytics

Fetch the latest performance snapshot for a single post item. Use the item_id returned by POST /api/v1/posts or GET /api/v1/posts/{id}.

Metrics are polled once a day for up to 90 days after the item is posted. After that, fetched_at stops advancing. There's no on-demand refresh, so check fetched_at to see how old the numbers are.


Path Parameters

ParameterTypeDescription
post_item_idstringThe post item ID

Response

FieldTypeDescription
post_item_idstringThe item ID you queried
post_typestringe.g. instagram-reel, tiktok-video
platformstringPlatform derived from post_type
statusstringItem status (draft, posting, posted, failed)
metricsobject | nullSee below. null when the item hasn't been posted or polled

Metrics Object

FieldTypeDescription
viewsnumberViews or impressions reported by platform
likesnumberLikes or reactions
commentsnumberComments count
fetched_atstringISO timestamp of the snapshot

Not all platforms report all three fields. Missing values are returned as 0.

Example

curl https://powerpost.ai/api/v1/post-items/550e8400-e29b-41d4-a716-446655440000/analytics \
  -H "x-api-key: pp_live_sk_YOUR_KEY" \
  -H "X-Workspace-Id: YOUR_WORKSPACE_ID"
const res = await fetch(
  `https://powerpost.ai/api/v1/post-items/${itemId}/analytics`,
  {
    headers: {
      'x-api-key': 'pp_live_sk_YOUR_KEY',
      'X-Workspace-Id': 'YOUR_WORKSPACE_ID',
    },
  }
)
const data = await res.json()
import requests

res = requests.get(
    f"https://powerpost.ai/api/v1/post-items/{item_id}/analytics",
    headers={
        "x-api-key": "pp_live_sk_YOUR_KEY",
        "X-Workspace-Id": "YOUR_WORKSPACE_ID",
    },
)
data = res.json()

Sample Response

{
  "post_item_id": "550e8400-e29b-41d4-a716-446655440000",
  "post_type": "instagram-reel",
  "platform": "instagram",
  "status": "posted",
  "metrics": {
    "views": 12450,
    "likes": 890,
    "comments": 42,
    "fetched_at": "2026-04-15T09:00:00Z"
  }
}

Errors

CodeDescription
401Invalid API key
404Post item not found or belongs to a different workspace
429Rate limit exceeded

Posts & Publishing

Create posts and publish them to connected social platforms.

Calendar

Manage content calendar entries for planning and scheduling posts.

On this page

Get Post Item AnalyticsPath ParametersResponseMetrics ObjectExampleSample ResponseErrors