Comment stickers: [Sticker] placeholder with no way to retrieve the sticker image URL
Comment stickers: [Sticker] placeholder with no way to retrieve the sticker image URL
Summary
When a comment contains a TikTok sticker, the library returns text: "[Sticker]" (sometimes followed by trailing emojis) but no field anywhere on the comment object — or anywhere in the raw API response — carries the sticker image URL. After extensive investigation I'm fairly confident this is a TikTok web-endpoint limitation rather than a library bug, but I'm filing it here because:
- Other users will hit this and waste time looking for a field that doesn't exist.
- It may be worth documenting in the README or adding an
is_stickerhelper on theCommentclass. - If anyone knows of an endpoint that does return sticker assets, this is the place to surface it.
Environment
- TikTok-Api version: (please fill in your installed version, e.g. 7.x.x)
- Python: 3.11
- OS: Windows 10/11
- Browser used by Playwright: chromium (default)
Reproduction
Any video with sticker comments works. Minimal repro:
from TikTokApi import TikTokApi
import asyncio, os
ms_token = os.environ.get("ms_token")
async def main():
async with TikTokApi() as api:
await api.create_sessions(ms_tokens=[ms_token], num_sessions=1, sleep_after=3)
# Any video that has sticker comments
async for comment in api.video(id="<some_video_id>").comments(count=50):
d = comment.as_dict
if "[Sticker]" in (d.get("text") or ""):
print(sorted(d.keys()))
# image_list, emoji_detail_list, sticker -- all None / absent
break
asyncio.run(main())Observed behavior
Sticker comments are returned with text equal to "[Sticker]" (or "[Sticker] <some emoji>" when the user also typed something). All 34 keys present on the comment dict are populated normally except anything that could hold the sticker asset:
image_listisnull- There is no
sticker,emoji_detail_list,interaction_sticker, or similar field
Full key list (all 34, identical across every sticker comment I sampled):
allow_download_photo, author_pin, aweme_id, cid, collect_stat,
comment_language, comment_post_item_ids, create_time, digg_count,
fold_status, image_list, is_author_digged, is_comment_translatable,
is_high_purchase_intent, label_list, no_show, reply_comment,
reply_comment_total, reply_id, reply_to_reply_id, share_info,
sort_extra_score, sort_tags, status, stick_position, text, text_extra,
text_to_image_item_ids, thread_has_more, thread_id, trans_btn_style,
user, user_buried, user_diggedInvestigation
To rule out the library stripping data, I intercepted the raw HTTP responses (both via httpx and via Playwright's response event) and inspected the full JSON payload from /api/comment/list/. The top-level response keys are:
alias_comment_deleted, comments, cursor, extra, fold_comment_cursor,
has_filtered_comments, has_fold_comment, has_more, log_pb, reply_style,
status_code, status_msg, top_gifts, totalNone of these carries sticker asset data either (top_gifts is null even when stickers are present). I ran a recursive scanner over the entire payload looking for any key whose name contains sticker, emoji, image_meta, interaction_sticker, sub_emoji, etc. — zero hits.
I also tried:
https://www.tiktok.com/api/comment/list/reply/(replies-under-comment endpoint) — same fields, no sticker info.https://api16-normal-c-useast1a.tiktokv.com/aweme/v2/comment/list/— fails withPage.evaluate: Failed to fetchbecause the mobile app endpoint requiresX-Gorgon/device_idsigning that the library doesn't produce.https://api.tiktokv.com/aweme/v1/comment/list/— same failure mode.
So the data appears to genuinely not be exposed on any endpoint that this library can authenticate against. The TikTok web app most likely fetches stickers from a separate static catalog at page load, keyed by an internal sticker id that the comment payload doesn't even include.
Suggestion
If maintainers agree this is a TikTok-side limitation, two small improvements would help users:
- Document it. A note in the README (or the
Commentclass docstring) saying "sticker comments arrive withtext == '[Sticker]'and the sticker image URL is not retrievable via this endpoint" would save people the investigation I just did. - Optional convenience. Expose
comment.is_stickeras a boolean and acomment.sticker_textproperty that returns the comment with the placeholder stripped, so downstream NLP / classification pipelines can handle these cleanly:
@property
def is_sticker(self) -> bool:
return "[Sticker]" in (self.text or "")If anyone knows of an endpoint or trick that does return sticker URLs, I'd love to be proven wrong here.
Possibly related
(If you find any existing issues that mention "sticker" / [Sticker] in this repo, link them here.)
Source: davidteather/TikTok-Api