Social Media
TikTok Followings
List the accounts a TikTok user follows by sec_user_id — username, nickname, and profile info — with pagination, as JSON.
POST/api/v1/tiktok/user/followings
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonsec_user_idstringrequiredSecure user id (from the Profile endpoint).
Example: MS4wLjABAAAAv7iSuuXD…
countnumberNumber of results (max 20).
page_tokenstringPagination token from a previous response.
min_timenumberPagination timestamp from a previous response.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tiktok.user_followings(sec_user_id="MS4wLjABAAAAv7iSuuXD…")
print(results)Response
"has_more": true,
"max_time": 1783003292,
"min_time": 1592423607,
"myself_user_id": "0",
"next_page_token": "eyJtYXhfY3Vyc29yIjoxNzgyOTM0ODQ5LCJtaW5fY3Vyc29yIjoxNTkyNDIzNjA3fQ==",
"offset": 0,
"rec_has_more": true,
"status_msg": "",
"total": 12,
"version": "v2"
},
"response_time": 924,
"credits_used": 1,
"credits_remaining": 4745
}