Get post analytics history
curl --request GET \
--url https://api.social-api.ai/v1/posts/{pid}/analytics \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/posts/{pid}/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/posts/{pid}/analytics"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"from": "2026-08-21",
"series": [
{
"day_tz": "America/Los_Angeles",
"kind": "gauge",
"metric": "page_follows",
"points": [
{
"change": 18,
"day": "2026-09-19",
"days_spanned": 1,
"subjects_counted": 3,
"value": 12430
}
],
"source": "reported"
}
],
"to": "2026-09-19"
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Analytics
Get post analytics history
Returns daily history for a published post: how its engagement counters accrued, one point per day. This is the history route. For the post’s current figures, use GET /v1/posts//metrics instead. History does not extend back before the post was first tracked, so an older post may have no earlier points.
GET
/
posts
/
{pid}
/
analytics
Get post analytics history
curl --request GET \
--url https://api.social-api.ai/v1/posts/{pid}/analytics \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/posts/{pid}/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/posts/{pid}/analytics"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"from": "2026-08-21",
"series": [
{
"day_tz": "America/Los_Angeles",
"kind": "gauge",
"metric": "page_follows",
"points": [
{
"change": 18,
"day": "2026-09-19",
"days_spanned": 1,
"subjects_counted": 3,
"value": 12430
}
],
"source": "reported"
}
],
"to": "2026-09-19"
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
SocialAPI post ID (UUID)
Query Parameters
First day, YYYY-MM-DD. Defaults to 29 days before to.
Last day, YYYY-MM-DD. Defaults to today (UTC).
Comma-separated metric names. Defaults to every stored metric.
Response
OK
Show child attributes
Show child attributes