TikTok effects API
TikTok effects by id: name, creator and how many videos use each.
GET /v1/tiktok/effects1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/effects?ids=2943930847",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "sticker_infos": [ { "id": "2943930847", "name": "Iris", "user_count": 9706582, "attributions": [ { "source": "Loki" }, { "source": "Loki" }, "… 6 more" ], "avatar_large": { "uri": "1080x1080/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014", "url_list": [ "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014~tplv-tiktokx-cropcenter:108…", "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014~tplv-tiktokx-cropcenter:108…", "… 1 more" ], "url_prefix": null }, "avatar_medium": { "uri": "720x720/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014", "url_list": [ "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014~tplv-tiktokx-cropcenter:720…", "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014~tplv-tiktokx-cropcenter:720…", "… 1 more" ], "url_prefix": null }, "avatar_thumb": { "uri": "100x100/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014", "url_list": [ "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014~tplv-tiktokx-cropcenter:100…", "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/979789c82ca10bcf24b01db383514014~tplv-tiktokx-cropcenter:100…", "… 1 more" ], "url_prefix": null }, "can_be_edited": true, "children": [], "desc": "", "effect_id": "2943930847", "effect_source": 102, "icon_url": { "uri": "f20f2f2bbe88627209b8d73ee457aac7", "url_list": [ "https://lf16-effectcdn-us.tiktokcdn-us.com/obj/tiktok-loki-effect-oracle-tx/f20f2f2bbe88627209b8d73ee457aac7", "https://lf19-effectcdn-us.tiktokcdn-us.com/obj/tiktok-loki-effect-oracle-tx/f20f2f2bbe88627209b8d73ee457aac7" ], "url_prefix": null }, "is_favorite": false, "is_top_effect_designer": false, "linked_anchors": null, "owner_id": "7138826746522862597", "owner_nickname": "sarvsami", "owner_verified_type": 0, "publish_time": 1756746933000, "resource_id": "149468672004", "sdk_extra": "{\"editor\":{\"created_from\":\"AME\",\"versions\":{\"main.scene\":{\"version\":\"0.9.0\"},\"algorithm\":{\"version\":\"0.9.0\"},\"builtinAss…", "sec_uid": "MS4wLjABAAAA3gz_ho_fwhcbu7crZnH1qTNmRrZqJo19VUCuNItX1vqOfATq3R-A60M1hdfd6wiw", "share_info": { "now_invitation_card_image_urls": null, "share_desc": "Check out this sticker! #TikTok", "share_url": "?_d=f6kjc66i976hcl&share_sticker_id=2943930847&source=h5_m&u_code=0" }, "…": "2 more fields" } ]}Parameters
| Name | Type | Description |
|---|---|---|
idsquery · required | string | Comma-separated effect ids. Example: 2943930847. |
Response fields
200 with a TikTokEffectsResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
sticker_infos | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | The effects. |
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.