TikTok
TikTok User Playlists
List a TikTok creator's playlists (series) - playlist id, name, video count and creator - by sec_user_id, as JSON. Accounts without playlists return none. 1 credit.
POST/api/v1/tiktok/user/playlists
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_idstringrequiredThe creator's sec_user_id.
Example: MS4wLjABAAAABKjQkOz_IIzXXzEAl_9LGsWhvK-gBnlczwRPXK8EmxAp6K3X0qiaP5_OEqmm0XwG
cursorstringdefault:0Pagination cursor. Pass the cursor from the previous response to get the next page.
countintegerdefault:30Playlists per page, 1-30.
Notes
Pass a playlist's mixId to Playlist Videos. An account with no playlists returns an empty list.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tiktok.user_playlists(sec_user_id="MS4wLjABAAAABKjQkOz_IIzXXzEAl_9LGsWhvK-gBnlczwRPXK8EmxAp6K3X0qiaP5_OEqmm0XwG")
print(results)Response
"cursor": "6",
"hasMore": false,
"statusCode": 0
},
"response_time": 618
}