Get social account analytics
curl --request GET \
--url https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"socialAccountId": "<string>",
"platform": "PINTEREST",
"metrics": {
"followers": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"latest": 123,
"change": 123
},
"impressions": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"views": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"engagements": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"likes": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"comments": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"shares": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"saves": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"clicks": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
}
}
}{
"code": "SOCIAL_ACCOUNT_NOT_FOUND",
"message": "<string>"
}{
"code": "SOCIAL_ACCOUNT_NOT_FOUND",
"message": "<string>"
}{
"code": "TOO_MANY_CONCURRENT_REQUESTS",
"message": "<string>"
}Social Accounts
Get social account analytics
Returns account-level metrics of one social account over a range of UTC
days: its follower count and the views, engagements and other activity
across all of its content. Per-post metrics are in each social account
post’s metrics.
Each point covers one UTC day. Metrics are collected about once a day, so the latest day or two may be missing. Reading analytics does not refresh them.
Metrics by platform:
FACEBOOK: followers, views, engagements.INSTAGRAM: followers, views, engagements, likes, comments, shares, saves.LINKEDIN_PAGES: followers, impressions, engagements, likes, comments, shares, clicks.PINTEREST: followers, impressions, engagements, saves, clicks, views (video views).YOUTUBE: followers (subscribers), views, likes, comments, shares.TIKTOK: followers, views, likes, comments, shares. Only accounts connected through the TikTok for Business app collect them.THREADS: followers, likes, comments (replies), shares (reposts and quotes), clicks. Followers start on the day the account is first collected, since Threads reports no follower history.- Other platforms have no account analytics and return empty
metrics.
GET
/
social-accounts
/
{socialAccountId}
/
analytics
Get social account analytics
curl --request GET \
--url https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woopsocial.com/v1/social-accounts/{socialAccountId}/analytics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"socialAccountId": "<string>",
"platform": "PINTEREST",
"metrics": {
"followers": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"latest": 123,
"change": 123
},
"impressions": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"views": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"engagements": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"likes": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"comments": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"shares": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"saves": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
},
"clicks": {
"points": [
{
"date": "2023-12-25",
"value": 123
}
],
"total": 123
}
}
}{
"code": "SOCIAL_ACCOUNT_NOT_FOUND",
"message": "<string>"
}{
"code": "SOCIAL_ACCOUNT_NOT_FOUND",
"message": "<string>"
}{
"code": "TOO_MANY_CONCURRENT_REQUESTS",
"message": "<string>"
}Authorizations
Query Parameters
Response
Social account analytics.
Account metrics over the range. A metric the platform does not report
is omitted. A metric with empty points is reported by the platform
but has nothing collected in the range yet. A period without a point
has nothing collected; zero is a recorded value, not missing data.
Show child attributes
Show child attributes
Was this page helpful?