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

List post performance

Posts published in the period (in the app or outside it) with their figures and outlier score

GET
/insights/accounts/{id}/posts

Posts published in the period (in the app or outside it) with their figures and outlier score

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}$
sort?string
Default"published"
Value in"published""views""interactions""outlier""engagement"

Response Body

OK

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://socmed.growpaces.com/api/v1/insights/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/posts'
Example Response200
{  "data": [    {      "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"    }  ]}