from ensemble.api import EDClient
client = EDClient("API_TOKEN")
result = client.tiktok.post_comments(aweme_id="6849400000000")
comments = result.data["comments"]
next_cursor = result.data("nextCursor")
print("Comments fetched:", len(comments))
print("Total comments:", result.data["total"])
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter