Langkau ke kandungan
GrowSocmedDokumentasiSocial media command center

Get a summary of several accounts

Several accounts at once: combined totals vs the period before, per day, per account, and the biggest outliers

GET
/insights/summary

Several accounts at once: combined totals vs the period before, per day, per account, and the biggest outliers

Authorization

apiKey
headerAuthorizationBearer <token>

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

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}$
account_ids?string

Comma-separated; default every account with statistics

Response Body

OK

application/json
  1. response
from*string
to*string
totals*
previous*
engagement_rate*number|null
followers*number|null
posts*number
daily*array<>
accounts*array<>
outliers*array<>
Example Request
curl -X GET 'https://socmed.growpaces.com/api/v1/insights/summary'
Example Response200
{  "from": "string",  "to": "string",  "totals": {    "property1": 0,    "property2": 0  },  "previous": {    "property1": 0,    "property2": 0  },  "engagement_rate": 0,  "followers": 0,  "posts": 0,  "daily": [    {      "day": "string",      "metrics": {        "property1": 0,        "property2": 0      }    }  ],  "accounts": [    {      "account_id": "string",      "platform": "string",      "username": "string",      "posts": 0,      "followers": 0,      "totals": {        "property1": 0,        "property2": 0      },      "engagement_rate": 0    }  ],  "outliers": [    {      "id": "string",      "platform_post_id": "string",      "kind": "string",      "caption": "string",      "permalink": "string",      "thumbnail_url": "string",      "published_at": "string",      "from_app": true,      "post_id": "string",      "metrics": {        "property1": 0,        "property2": 0      },      "views": 0,      "interactions": 0,      "engagement_rate": 0,      "outlier_score": 0,      "fetched_at": "string",      "account_id": "string",      "platform": "string"    }  ]}