ข้ามไปยังเนื้อหา
GrowSocmedเอกสารSocial media command center

Get account statistics

Account figures for the last 7, 30 or 90 days, the period before, and per day

GET
/insights/accounts/{id}

Account figures for the last 7, 30 or 90 days, the period before, and per day

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Path Parameters

id*string
Formatuuid

Query Parameters

days?number
Default30
from?string

Start day (YYYY-MM-DD); with to it replaces days

Match^\d{4}-\d{2}-\d{2}$
to?string
Match^\d{4}-\d{2}-\d{2}$

Response Body

OK

application/json
  1. response
account_id*string
platform*string
from*string
to*string
totals*
previous*
engagement_rate*number|null
previous_engagement_rate*number|null
highlights*
followers*
daily*array<>
synced_at*string|null
Example Request
curl -X GET 'https://socmed.growpaces.com/api/v1/insights/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response200
{  "account_id": "string",  "platform": "string",  "from": "string",  "to": "string",  "totals": {    "property1": 0,    "property2": 0  },  "previous": {    "property1": 0,    "property2": 0  },  "engagement_rate": 0,  "previous_engagement_rate": 0,  "highlights": {    "posts": 0,    "previous_posts": 0,    "unreplied_comments": 0,    "top_post": {      "id": "string",      "caption": "string",      "permalink": "string",      "interactions": 0    }  },  "followers": {    "current": 0,    "change": 0  },  "daily": [    {      "day": "string",      "metrics": {        "property1": 0,        "property2": 0      },      "followers": 0    }  ],  "synced_at": "string"}