Get a post's authenticity score
curl --request GET \
--url https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity', 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.aisa.one/apis/v1/social/posts/{postId}/authenticity",
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.aisa.one/apis/v1/social/posts/{postId}/authenticity"
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.aisa.one/apis/v1/social/posts/{postId}/authenticity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity")
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{
"computedAt": "2023-11-07T05:31:56Z",
"confidence": 0.5,
"postId": "<string>",
"reasons": [
{
"code": "late_block",
"weight": 123
}
],
"sampleCount": 123,
"score": 50,
"version": "<string>"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}Posts & scheduling
Get a post's authenticity score
Analytics. Read only; needs social:read. Ids are yours: accounts acc_…, profiles prf_…, posts pst_…; every other object id is checked against your accounts before the call.
Returns AIsa’s authenticity score for a post: an integer from 0 to 100 where higher means the view pattern looks more like organic viewing.
The score is ours. It is computed only from the verified samples we fetched from the platform, never from anything the creator or caller reported.
reasonslists each factor that lowered it with its weight in points.confidence(0 to 1) says how much data the score rests on.
A stored score newer than 30 minutes is returned as is, otherwise it is recomputed. The post.authenticity_changed webhook fires when a score crosses 40.
GET
https://api.aisa.one
/
apis
/
v1
/
social
/
posts
/
{postId}
/
authenticity
Get a post's authenticity score
curl --request GET \
--url https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity', 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.aisa.one/apis/v1/social/posts/{postId}/authenticity",
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.aisa.one/apis/v1/social/posts/{postId}/authenticity"
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.aisa.one/apis/v1/social/posts/{postId}/authenticity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity")
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{
"computedAt": "2023-11-07T05:31:56Z",
"confidence": 0.5,
"postId": "<string>",
"reasons": [
{
"code": "late_block",
"weight": 123
}
],
"sampleCount": 123,
"score": 50,
"version": "<string>"
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}Request contract
- Method and path: GET /apis/v1/social/posts/{postId}/authenticity
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity - postId: path; required
{
"operationId": "get_aisa_social_apis_v1_social_posts_postid_authenticity",
"method": "GET",
"path": "/apis/v1/social/posts/{postId}/authenticity",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "An external post id, a platform post id or a AIsa post id.",
"in": "path",
"name": "postId",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
No additional charge for this operation.Authorizations
Response
The post's authenticity score