TikTok playlist videos API
The videos in a TikTok playlist, in order, with the playlist itself.
GET /v1/tiktok/playlists/{id}/videos1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/playlists/7633966962992892702/videos",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "mixInfo": { "cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-…", "creator": { "avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-006…", "avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-006…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-006…", "ftc": false, "id": "7520296730849281037", "isADVirtual": false, "nickname": "Chef Joey Charney", "openFavorite": false, "…": "8 more fields" }, "id": "7633966962992892702", "name": "Dinners", "videoCount": 17 }, "itemList": [ { "id": "7633618814139174175", "desc": "Cooking dinner for my family: Pork tenderloin the way @Kiera…", "createTime": 1777340391, "author": { "…": "21 fields" }, "authorStats": { "…": "7 fields" }, "stats": { "…": "5 fields" }, "statsV2": { "…": "6 fields" }, "video": { "…": "26 fields" }, "…": "33 more fields" }, "… 1 more" ], "cursor": "17", "hasMore": false}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | Playlist id, or its tiktok.com/@user/playlist/… URL. Example: 7633966962992892702. |
cursorquery | string | The previous page’s cursor, for the next page. Omit for the first. |
Response fields
200 with a TikTokPlaylistVideosResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
mixInfo | object | The playlist: id, name, cover, creator, video count. |
itemList | TikTokItem[] | |
cursor | string | |
hasMore | boolean |
Status codes
| Status | Meaning |
|---|---|
200 | A page of the playlist’s videos. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.