pick_comment_winners
Comment giveaway draw (one video_detail request plus one request per 50 comments) — fetches up to max_comments top-level comments for a TikTok video, applies the stated filters and draws winners uniformly at random. Without a seed the draw uses crypto/rand; with a seed it uses a ChaCha8 generator keyed by sha256(seed) over comments sorted by id, so the same seed and the same fetched comments reproduce the same winners. Returns winners, eligible, fetched, totalReported, coverage and the rules applied. Fairness limits: only fetched comments are eligible, TikTok returns comments in its own order, replies are not included, and deleted or hidden comments cannot be seen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional seed for a reproducible draw; publish it so anyone can re-run the draw. | |
| video | Yes | Full https://www.tiktok.com/@creator/video/<id> URL or the numeric video id. | |
| winners | No | How many winners to draw, 1-20. Defaults to 1. | |
| max_comments | No | Comments to fetch, 50-500 in pages of 50. Defaults to 300. | |
| must_include | No | Optional text a comment must contain (case-insensitive), e.g. a hashtag or keyword. | |
| unique_users | No | Count each commenter once (their earliest fetched comment). Defaults to true. | |
| exclude_creator | No | Exclude comments by the video's creator. Defaults to true. |