The response includes the current subscription plan and a normalized data array. Each item uses accountId, not the raw platform user ID, when calling publishing and status endpoints.
const API_BASE_URL = 'https://api.wahdx.com';
const API_KEY = process.env.WAHDX_API_KEY;
const response = await fetch(API_BASE_URL + '/api/content/accounts', {
method: 'GET',
headers: {
'X-API-Key': API_KEY
}
});
const result = await response.json();
console.log(result);
// Example response:
// {
// "success": true,
// "subscription": "pro",
// "data": [
// {
// "accountId": "acc_tiktok_internal_uuid",
// "platform": "tiktok",
// "display_name": "Wahdx Creator",
// "username": "wahdx_creator",
// "avatar_url": "https://example.com/avatar.jpg",
// "bio_description": "Content team account",
// "status": "active",
// "followers": 12000,
// "following": 210,
// "likes": 45000,
// "videos": 128,
// "is_verified": false
// },
// {
// "accountId": "acc_instagram_internal_uuid",
// "platform": "instagram",
// "display_name": "Wahdx Studio",
// "username": "wahdx.studio",
// "avatar_url": "https://example.com/instagram.jpg",
// "bio_description": "Studio profile",
// "status": "active",
// "followers": 8400,
// "following": 180,
// "likes": null,
// "videos": 96,
// "is_verified": null
// },
// {
// "accountId": "acc_threads_internal_uuid",
// "platform": "threads",
// "display_name": "Wahdx Threads",
// "username": "wahdx_threads",
// "avatar_url": "https://example.com/threads.jpg",
// "bio_description": "Threads profile",
// "status": "expired",
// "followers": 3200,
// "following": 85,
// "likes": null,
// "videos": null,
// "is_verified": null
// },
// {
// "accountId": "acc_facebook_internal_uuid",
// "platform": "facebook",
// "display_name": "Wahdx Page",
// "username": "1234567890",
// "avatar_url": "https://example.com/page.jpg",
// "bio_description": "Facebook Page",
// "status": "active",
// "followers": 5600,
// "following": null,
// "likes": 4100,
// "videos": null,
// "is_verified": null
// }
// ]
// }
import os
import requests
API_BASE_URL = 'https://api.wahdx.com'
API_KEY = os.environ['WAHDX_API_KEY']
response = requests.get(
API_BASE_URL + '/api/content/accounts',
headers={
'X-API-Key': API_KEY,
},
timeout=30,
)
result = response.json()
print(result)
# Example response:
# {
# "success": true,
# "subscription": "pro",
# "data": [
# {
# "accountId": "acc_tiktok_internal_uuid",
# "platform": "tiktok",
# "display_name": "Wahdx Creator",
# "username": "wahdx_creator",
# "avatar_url": "https://example.com/avatar.jpg",
# "bio_description": "Content team account",
# "status": "active",
# "followers": 12000,
# "following": 210,
# "likes": 45000,
# "videos": 128,
# "is_verified": false
# },
# {
# "accountId": "acc_instagram_internal_uuid",
# "platform": "instagram",
# "display_name": "Wahdx Studio",
# "username": "wahdx.studio",
# "avatar_url": "https://example.com/instagram.jpg",
# "bio_description": "Studio profile",
# "status": "active",
# "followers": 8400,
# "following": 180,
# "likes": null,
# "videos": 96,
# "is_verified": null
# },
# {
# "accountId": "acc_threads_internal_uuid",
# "platform": "threads",
# "display_name": "Wahdx Threads",
# "username": "wahdx_threads",
# "avatar_url": "https://example.com/threads.jpg",
# "bio_description": "Threads profile",
# "status": "expired",
# "followers": 3200,
# "following": 85,
# "likes": null,
# "videos": null,
# "is_verified": null
# },
# {
# "accountId": "acc_facebook_internal_uuid",
# "platform": "facebook",
# "display_name": "Wahdx Page",
# "username": "1234567890",
# "avatar_url": "https://example.com/page.jpg",
# "bio_description": "Facebook Page",
# "status": "active",
# "followers": 5600,
# "following": null,
# "likes": 4100,
# "videos": null,
# "is_verified": null
# }
# ]
# }
curl -X GET "https://api.wahdx.com/api/content/accounts" \
-H "X-API-Key: $WAHDX_API_KEY"
# Example response:
# {
# "success": true,
# "subscription": "pro",
# "data": [
# {
# "accountId": "acc_tiktok_internal_uuid",
# "platform": "tiktok",
# "display_name": "Wahdx Creator",
# "username": "wahdx_creator",
# "avatar_url": "https://example.com/avatar.jpg",
# "bio_description": "Content team account",
# "status": "active",
# "followers": 12000,
# "following": 210,
# "likes": 45000,
# "videos": 128,
# "is_verified": false
# },
# {
# "accountId": "acc_instagram_internal_uuid",
# "platform": "instagram",
# "display_name": "Wahdx Studio",
# "username": "wahdx.studio",
# "avatar_url": "https://example.com/instagram.jpg",
# "bio_description": "Studio profile",
# "status": "active",
# "followers": 8400,
# "following": 180,
# "likes": null,
# "videos": 96,
# "is_verified": null
# },
# {
# "accountId": "acc_threads_internal_uuid",
# "platform": "threads",
# "display_name": "Wahdx Threads",
# "username": "wahdx_threads",
# "avatar_url": "https://example.com/threads.jpg",
# "bio_description": "Threads profile",
# "status": "expired",
# "followers": 3200,
# "following": 85,
# "likes": null,
# "videos": null,
# "is_verified": null
# },
# {
# "accountId": "acc_facebook_internal_uuid",
# "platform": "facebook",
# "display_name": "Wahdx Page",
# "username": "1234567890",
# "avatar_url": "https://example.com/page.jpg",
# "bio_description": "Facebook Page",
# "status": "active",
# "followers": 5600,
# "following": null,
# "likes": 4100,
# "videos": null,
# "is_verified": null
# }
# ]
# }