Skip to main content
GET
/
posts
/
{pid}
/
metrics
Get post metrics
curl --request GET \
  --url https://api.social-api.ai/v1/posts/{pid}/metrics \
  --header 'Authorization: <api-key>'
{
  "data": {
    "post_id": "<string>",
    "targets": [
      {
        "account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
        "error": {
          "category": "validation",
          "caused_by": "user",
          "code": "platform.tiktok.media_required",
          "message": "Video posts require at least one media URL"
        },
        "first_comment": "<string>",
        "media_type": "reel",
        "metadata": {},
        "metrics": {
          "comments": 23,
          "extra": {},
          "likes": 142,
          "saves": 31,
          "shares": 8
        },
        "metrics_synced_at": "2026-04-01T12:00:00Z",
        "page_id": "sapi_page_01HZ9X3Q4R5M6N7P8V2K0W1J",
        "permalink": "https://www.instagram.com/p/ABC123/",
        "platform": "instagram",
        "platform_post_id": "17895695668004550",
        "published_at": "2026-04-01T10:00:05Z",
        "scheduled_at": "2026-04-01T10:00:00Z",
        "status": "published",
        "text": "<string>",
        "title": "<string>",
        "visibility": "public"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

pid
string
required

Post ID

Response

OK

data
object