API 参考Insights
Get account statistics
Account figures for the last 7, 30 or 90 days, the period before, and per day
GET
Account figures for the last 7, 30 or 90 days, the period before, and per day
apiKeyheader
AuthorizationBearer <token>API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.
id*stringFormat
uuiddays?numberDefault
30from?stringStart day (YYYY-MM-DD); with to it replaces days
Match
^\d{4}-\d{2}-\d{2}$to?stringMatch
^\d{4}-\d{2}-\d{2}$OK
application/json- response
account_id*stringplatform*stringfrom*stringto*stringtotals*previous*engagement_rate*number|nullprevious_engagement_rate*number|nullhighlights*followers*daily*array<>synced_at*string|nullcurl -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"}