TikTok effect videos API
Videos made with a TikTok effect, 30 a page.
GET /v1/tiktok/effects/{id}/videos1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/effects/2943930847/videos",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "aweme_list": [ { "aweme_id": "7625437965619072269", "desc": "", "create_time": 1775435655, "author": { "accept_private_policy": false, "account_labels": null, "account_region": "", "ad_cover_url": null, "advance_feature_item_order": null, "advanced_feature_info": null, "apple_account": 0, "authority_status": 0, "avatar_168x168": { "…": "5 fields" }, "avatar_300x300": { "…": "5 fields" }, "…": "110 more fields" }, "statistics": { "aweme_id": "7625437965619072269", "collect_count": 195384, "comment_count": 37950, "digg_count": 3945923, "download_count": 14093, "forward_count": 0, "lose_comment_count": 0, "lose_count": 0, "play_count": 58628351, "repost_count": 0, "…": "2 more fields" }, "added_sound_music_info": { "album": "", "allow_offline_music_to_detail_page": false, "artists": [], "audition_duration": 22, "author": "VLADGOS", "author_deleted": false, "author_position": null, "avatar_medium": { "…": "5 fields" }, "avatar_thumb": { "…": "5 fields" }, "binded_challenge_id": 0, "…": "66 more fields" }, "ai_remix_info": { "has_entrance": false }, "aigc_info": { "aigc_label_type": 0, "created_by_ai": false }, "anchors": null, "animated_image_info": { "effect": 0, "type": 0 }, "…": "131 more fields" }, "… 1 more" ], "cursor": "30", "has_more": true}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | Effect id, or its tiktok.com/sticker/… URL. Example: 2943930847. |
cursorquery | string | The previous page’s cursor, for the next page. Omit for the first. |
Response fields
200 with a TikTokAwemeListResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
aweme_list | object[] | |
cursor | string | |
has_more | boolean |
Status codes
| Status | Meaning |
|---|---|
200 | A page of 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.