Create analytics export
curl --request POST \
--url https://api.social-api.ai/v1/accounts/{id}/export \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"include_transcript": true,
"include_vision": false
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({include_transcript: true, include_vision: false})
};
fetch('https://api.social-api.ai/v1/accounts/{id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/accounts/{id}/export"
payload = {
"include_transcript": True,
"include_vision": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"account_id": "<string>",
"created_at": "<string>",
"id": "<string>",
"platform": "<string>",
"status": "<string>"
}{
"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": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Exports
Create analytics export
Enqueue an async analytics export job for a connected account. Subject to plan limits (exports per month, cooldown hours, concurrent export cap). For some TikTok accounts, include_transcript and include_vision are refused with 400 account.export_enrichment_not_supported; export again without them.
POST
/
accounts
/
{id}
/
export
Create analytics export
curl --request POST \
--url https://api.social-api.ai/v1/accounts/{id}/export \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"include_transcript": true,
"include_vision": false
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({include_transcript: true, include_vision: false})
};
fetch('https://api.social-api.ai/v1/accounts/{id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/accounts/{id}/export"
payload = {
"include_transcript": True,
"include_vision": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"account_id": "<string>",
"created_at": "<string>",
"id": "<string>",
"platform": "<string>",
"status": "<string>"
}{
"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": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Connected account ID
Body
application/json
Export options