TikTok playlists API
The playlists a TikTok creator made: id, name, cover and video count.
GET /v1/tiktok/users/{handle}/playlists1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/users/mariahhcooks/playlists",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "playList": [ { "id": "7706301695555160862", "name": "Thanksgiving Recipes 🦃", "cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/ockGVFDgREEIiIWr8yEIogBASHiAXe7W8qf6mv~tplv-tiktokx-orig…", "videoCount": 5, "creator": { "avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/afea89e75a557c764622ef0ae33d4d7d~tplv-tiktokx-cropcent…", "avatarMedium": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/afea89e75a557c764622ef0ae33d4d7d~tplv-tiktokx-cropcent…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/afea89e75a557c764622ef0ae33d4d7d~tplv-tiktokx-cropcent…", "ftc": false, "id": "6787900728574903301", "isADVirtual": false, "nickname": "Mariah | Cooking & Baking", "openFavorite": false, "privateAccount": true, "relation": 0, "secUid": "MS4wLjABAAAAE84XQuS3ikwhSKTLkeCR6KQaV5jgRM0wC-LTBIkQRmnYp6UP0NctPDHky2FPUbFr", "secret": true, "shortDramaCreator": {}, "signature": "🥘 comfort food | food inspo | drinks \n📧: contact@recipesbymariah.com\n📍 houston | tx", "uniqueId": "mariahhcooks", "verified": false }, "mixId": "7706301695555160862", "mixName": "Thanksgiving Recipes 🦃" }, { "id": "7631107075900230430", "name": "Dinner Ideas 🥘", "cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oEeIXDLwmIGlREAAKyAAefI5UCQFjRBIqApkQE~tplv-tiktokx-orig…", "videoCount": 25, "creator": { "avatarLarger": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/afea89e75a557c764622ef0ae33d4d7d~tplv-tiktokx-cropcent…", "avatarMedium": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/afea89e75a557c764622ef0ae33d4d7d~tplv-tiktokx-cropcent…", "avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/afea89e75a557c764622ef0ae33d4d7d~tplv-tiktokx-cropcent…", "ftc": false, "id": "6787900728574903301", "isADVirtual": false, "nickname": "Mariah | Cooking & Baking", "openFavorite": false, "privateAccount": true, "relation": 0, "secUid": "MS4wLjABAAAAE84XQuS3ikwhSKTLkeCR6KQaV5jgRM0wC-LTBIkQRmnYp6UP0NctPDHky2FPUbFr", "secret": true, "shortDramaCreator": {}, "signature": "🥘 comfort food | food inspo | drinks \n📧: contact@recipesbymariah.com\n📍 houston | tx", "uniqueId": "mariahhcooks", "verified": false }, "mixId": "7631107075900230430", "mixName": "Dinner Ideas 🥘" } ], "cursor": "7", "hasMore": false}Parameters
| Name | Type | Description |
|---|---|---|
handlepath · required | string | Handle, with or without the @, or a profile URL. Example: nasa. |
cursorquery | string | The previous page’s cursor, for the next page. Omit for the first. |
Response fields
200 with a TikTokPlaylistsResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
playList | object[] | |
cursor | string | |
hasMore | boolean |
Status codes
| Status | Meaning |
|---|---|
200 | Playlists. |
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.