List social account post analytics
curl --request GET \
--url https://api.woopsocial.com/v1/social-account-posts/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.woopsocial.com/v1/social-account-posts/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-account-posts/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-account-posts/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-account-posts/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-account-posts/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woopsocial.com/v1/social-account-posts/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{
"socialAccountPosts": [
{
"socialAccountPostId": "<string>",
"postId": "<string>",
"socialAccountId": "<string>",
"platform": "PINTEREST",
"deliveryCompletedAt": "2023-11-07T05:31:56Z",
"metrics": {
"views": 123,
"impressions": 123,
"uniqueImpressions": 123,
"likes": 123,
"reactions": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"clicks": 123,
"engagementRate": 123
},
"externalPostUrl": "<string>",
"text": "<string>",
"metricsCollectedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>"
}{
"code": "INVALID_DATE_RANGE",
"message": "<string>"
}{
"code": "TOO_MANY_CONCURRENT_REQUESTS",
"message": "<string>"
}Posts
List social account post analytics
Returns the organization’s social account posts published in a range of
UTC days, each with its latest stored metrics. Posts are ordered by
sortBy, highest first, or newest first when sortBy is omitted.
Metrics are lifetime totals since publishing, as of
metricsCollectedAt. They are collected about once a day, and reading
them does not refresh them.
What views counts by platform:
INSTAGRAM,FACEBOOK,THREADS: times the post was shown, repeats included.TIKTOK,YOUTUBE: video plays.PINTEREST: video views. Image Pins have none.LINKEDIN_PAGESreportsimpressionsanduniqueImpressionsinstead.
GET
/
social-account-posts
/
analytics
List social account post analytics
curl --request GET \
--url https://api.woopsocial.com/v1/social-account-posts/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.woopsocial.com/v1/social-account-posts/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-account-posts/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-account-posts/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-account-posts/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-account-posts/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woopsocial.com/v1/social-account-posts/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{
"socialAccountPosts": [
{
"socialAccountPostId": "<string>",
"postId": "<string>",
"socialAccountId": "<string>",
"platform": "PINTEREST",
"deliveryCompletedAt": "2023-11-07T05:31:56Z",
"metrics": {
"views": 123,
"impressions": 123,
"uniqueImpressions": 123,
"likes": 123,
"reactions": 123,
"comments": 123,
"shares": 123,
"saves": 123,
"clicks": 123,
"engagementRate": 123
},
"externalPostUrl": "<string>",
"text": "<string>",
"metricsCollectedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>"
}{
"code": "INVALID_DATE_RANGE",
"message": "<string>"
}{
"code": "TOO_MANY_CONCURRENT_REQUESTS",
"message": "<string>"
}Authorizations
Query Parameters
Was this page helpful?