Accounts
Get Connection Account Stats
Returns live account counts such as followers and likes, on platforms that support them like TikTok, Instagram and Facebook. Facebook Pages can also return their Messenger profile and reviews.
GET
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
id*stringLength
1 <= lengthinclude?stringExtra Facebook Page data to return, as a comma-separated list. Accepts messenger-profile and reviews.
Length
1 <= length <= 64limit?integerNumber of reviews to return when reviews is included. Defaults to 20.
Range
1 <= value <= 50Account stats
application/json- response
accountId*stringplatform*stringstatus*stringstats?|nullfetchedAt*stringFormat
date-timeExample Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.getConnectionStats({ id: "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5", include: "messenger-profile,reviews", limit: 20,});console.log(response);Example Response
{ "accountId": "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5", "platform": "tiktok", "status": "ready", "stats": { "followerCount": 1234, "followingCount": 56, "likesCount": 7890, "videoCount": 12 }, "fetchedAt": "2026-08-25T10:00:00.000Z"}