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>"
}
}发布与排期
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>"
}
}请求规范
- 方法与路径: GET /apis/v1/social/posts/{postId}/authenticity
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/social/posts/{postId}/authenticity - postId: path; 必填
{
"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"
}
}
}
}
费用与请求规则
此操作不另收费。授权
响应
The post's authenticity score