Get analytics
curl --request GET \
--url https://api.superx.so/v1/posts/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.superx.so/v1/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.superx.so/v1/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.superx.so/v1/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.superx.so/v1/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.superx.so/v1/posts/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/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{
"data": {
"range": {
"since": "2026-06-06T00:00:00.000Z",
"until": "2026-07-06T00:00:00.000Z"
},
"totals": {
"posts": 92,
"likes": 4110,
"replies": 380,
"reposts": 512,
"quotes": 44,
"bookmarks": 903,
"impressions": 812400
},
"followers": {
"start": 12180,
"end": 12544,
"change": 364
},
"series": [
{
"date": "2026-07-04",
"posts": 3,
"likes": 140,
"replies": 12,
"reposts": 17,
"quotes": 1,
"bookmarks": 31,
"impressions": 27400,
"followers": 12520
},
{
"date": "2026-07-05",
"posts": 4,
"likes": 231,
"replies": 18,
"reposts": 40,
"quotes": 3,
"bookmarks": 55,
"impressions": 48210,
"followers": 12544
}
]
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": "subscription_required: The SuperX API requires an active subscription"
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "internal_error",
"message": "Failed to fetch posts"
}
}{
"error": {
"code": "accounts_unavailable",
"message": "Account information is temporarily unavailable. Try again shortly."
}
}Analytics
Get analytics
Totals and a per-day series (posts, engagement, impressions, follower samples) for the selected account. Default range is the last 30 days; the maximum range is 366 days.
GET
/
v1
/
posts
/
analytics
Get analytics
curl --request GET \
--url https://api.superx.so/v1/posts/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.superx.so/v1/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.superx.so/v1/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.superx.so/v1/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.superx.so/v1/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.superx.so/v1/posts/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/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{
"data": {
"range": {
"since": "2026-06-06T00:00:00.000Z",
"until": "2026-07-06T00:00:00.000Z"
},
"totals": {
"posts": 92,
"likes": 4110,
"replies": 380,
"reposts": 512,
"quotes": 44,
"bookmarks": 903,
"impressions": 812400
},
"followers": {
"start": 12180,
"end": 12544,
"change": 364
},
"series": [
{
"date": "2026-07-04",
"posts": 3,
"likes": 140,
"replies": 12,
"reposts": 17,
"quotes": 1,
"bookmarks": 31,
"impressions": 27400,
"followers": 12520
},
{
"date": "2026-07-05",
"posts": 4,
"likes": 231,
"replies": 18,
"reposts": 40,
"quotes": 3,
"bookmarks": 55,
"impressions": 48210,
"followers": 12544
}
]
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": "subscription_required: The SuperX API requires an active subscription"
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "internal_error",
"message": "Failed to fetch posts"
}
}{
"error": {
"code": "accounts_unavailable",
"message": "Account information is temporarily unavailable. Try again shortly."
}
}Authorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Query Parameters
Account to act on, from GET /v1/accounts. Defaults to your main account. An id outside your accounts returns 404 account_not_found.
UTC ISO-8601 lower bound (explicit Z or offset required).
UTC ISO-8601 upper bound (explicit Z or offset required).
Response
Totals, follower change and per-day series.
Show child attributes
Show child attributes
⌘I