TypeScript client
import { OctosparkClient } from '@octospark/sdk'
const client = new OctosparkClient({
token: process.env.OCTOSPARK_TOKEN
})
const response = await client.socialListAccountAnalytics({
teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
}){
"items": [
{
"socialAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>",
"profileHandle": "<string>",
"capabilityStatus": "<string>",
"uiEnabled": true,
"collectedAt": "<string>",
"metrics": {
"followerCount": 123,
"followingCount": 123,
"subscriberCount": 123,
"postCount": 123,
"viewCount": 123,
"likeCount": 123,
"commentCount": 123,
"shareCount": 123,
"saveCount": 123,
"reachCount": 123,
"impressionCount": 123,
"profileViewCount": 123
},
"error": {
"code": "<string>",
"message": "<string>"
}
}
]
}Social
List account analytics
GET
/
v1
/
teams
/
{teamId}
/
analytics
/
accounts
TypeScript client
import { OctosparkClient } from '@octospark/sdk'
const client = new OctosparkClient({
token: process.env.OCTOSPARK_TOKEN
})
const response = await client.socialListAccountAnalytics({
teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
}){
"items": [
{
"socialAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayName": "<string>",
"profileHandle": "<string>",
"capabilityStatus": "<string>",
"uiEnabled": true,
"collectedAt": "<string>",
"metrics": {
"followerCount": 123,
"followingCount": 123,
"subscriberCount": 123,
"postCount": 123,
"viewCount": 123,
"likeCount": 123,
"commentCount": 123,
"shareCount": 123,
"saveCount": 123,
"reachCount": 123,
"impressionCount": 123,
"profileViewCount": 123
},
"error": {
"code": "<string>",
"message": "<string>"
}
}
]
}⌘I