Check creator audience authenticity
curl --request POST \
--url https://api.aisa.one/v1/tasks/creators.check_audience_authenticity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"input": {
"profile_url": "<string>"
}
}
'import requests
url = "https://api.aisa.one/v1/tasks/creators.check_audience_authenticity"
payload = { "input": { "profile_url": "<string>" } }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({input: {profile_url: '<string>'}})
};
fetch('https://api.aisa.one/v1/tasks/creators.check_audience_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/v1/tasks/creators.check_audience_authenticity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => [
'profile_url' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/v1/tasks/creators.check_audience_authenticity"
payload := strings.NewReader("{\n \"input\": {\n \"profile_url\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/v1/tasks/creators.check_audience_authenticity")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": {\n \"profile_url\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/v1/tasks/creators.check_audience_authenticity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": {\n \"profile_url\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"customerDeadlineAt": "2023-11-07T05:31:56Z",
"endpoint": "/v1/tasks/creators.check_audience_authenticity",
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
},
"id": "<string>",
"object": "task_job",
"output": {
"meta": {
"approximate_fields": [
"estimates"
],
"missing_fields": {},
"delivered": true
},
"result": {
"analyzed_at": "2023-11-07T05:31:56Z",
"creator": {
"avatar_url": "<string>",
"display_name": "<string>",
"follower_count": 1,
"identity": {
"native_id": "<string>",
"handle": "<string>",
"id_namespace": "<string>",
"platform": "instagram",
"profile_url": "<string>"
}
},
"estimates": [
{
"basis": "classified_sample",
"metric": "suspected_fake_share",
"population": "engaged_accounts",
"sample_size": 2,
"value": 0.5
}
]
},
"status": "found",
"task": "creators.check_audience_authenticity",
"version": 1
},
"pricing": {
"authorizedMicrosUSD": 1,
"billingMode": "fixed_success",
"currency": "USD",
"finalMicrosUSD": 1
},
"status": "queued",
"outputExpired": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}Creators
Check creator audience authenticity
Estimates suspicious accounts among sampled Instagram engagers or YouTube commenters. Each estimate identifies its population and denominator. A valid report with zero suspicious share counts as a successful delivery.
POST
https://api.aisa.one
/
v1
/
tasks
/
creators.check_audience_authenticity
Check creator audience authenticity
curl --request POST \
--url https://api.aisa.one/v1/tasks/creators.check_audience_authenticity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"input": {
"profile_url": "<string>"
}
}
'import requests
url = "https://api.aisa.one/v1/tasks/creators.check_audience_authenticity"
payload = { "input": { "profile_url": "<string>" } }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({input: {profile_url: '<string>'}})
};
fetch('https://api.aisa.one/v1/tasks/creators.check_audience_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/v1/tasks/creators.check_audience_authenticity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => [
'profile_url' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/v1/tasks/creators.check_audience_authenticity"
payload := strings.NewReader("{\n \"input\": {\n \"profile_url\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/v1/tasks/creators.check_audience_authenticity")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": {\n \"profile_url\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/v1/tasks/creators.check_audience_authenticity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": {\n \"profile_url\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"customerDeadlineAt": "2023-11-07T05:31:56Z",
"endpoint": "/v1/tasks/creators.check_audience_authenticity",
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
},
"id": "<string>",
"object": "task_job",
"output": {
"meta": {
"approximate_fields": [
"estimates"
],
"missing_fields": {},
"delivered": true
},
"result": {
"analyzed_at": "2023-11-07T05:31:56Z",
"creator": {
"avatar_url": "<string>",
"display_name": "<string>",
"follower_count": 1,
"identity": {
"native_id": "<string>",
"handle": "<string>",
"id_namespace": "<string>",
"platform": "instagram",
"profile_url": "<string>"
}
},
"estimates": [
{
"basis": "classified_sample",
"metric": "suspected_fake_share",
"population": "engaged_accounts",
"sample_size": 2,
"value": 0.5
}
]
},
"status": "found",
"task": "creators.check_audience_authenticity",
"version": 1
},
"pricing": {
"authorizedMicrosUSD": 1,
"billingMode": "fixed_success",
"currency": "USD",
"finalMicrosUSD": 1
},
"status": "queued",
"outputExpired": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}Submit and poll an asynchronous Task
- Send
POST /v1/tasks/creators.check_audience_authenticitywith a uniqueIdempotency-Key. To repeat the same submission, reuse the same key and body. HTTP202returns a Job. Save itsidand the relative URL inLocation. - Wait the number of seconds in
Retry-After, then callGET /v1/tasks/creators.check_audience_authenticity/jobs/{job_id}with the same API key, replacing{job_id}with the returnedid. You can use theLocationURL directly with the API origin. Keep polling whilestatusisqueued,running, orsettling. - Stop at
completed,failed, orcancelled. Forcompleted, readoutput. Anoutput.statusofnot_foundis a normal empty result. Forfailed, readerror.code,error.retryable, anderror.retry_hint.
curl -H "Authorization: Bearer $AISA_API_KEY" "${AISA_API_BASE}/v1/tasks/creators.check_audience_authenticity/jobs/${JOB_ID}"
Billing
| Input | Price unit | Price (USD) |
|---|---|---|
| All valid inputs | Per successful request | 1.18 |
X-AISA-Cost-Mode: quote; quoting neither executes the Task nor reserves funds. Execution reserves the estimated request charge and settles under the rules above. Use X-AISA-Max-Price-USD to cap the price.
Use an Idempotency-Key when executing a Task. For errors, inspect error.code, error.request_id, error.retryable and error.retry_hint. A reconciliation hint requires checking the existing request before retrying; do not assume a pending settlement is a refund.Authorizations
Response
Job accepted