TokConnect Pick Comment Winners API
Draws giveaway winners at random from a video's comments, with optional filters (must_include, unique users, exclude the creator).
Draws giveaway winners at random from a video's comments, with optional filters (must_include, unique users, exclude the creator).
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tokconnect-com:tokconnect-com-pick-comment-winners-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Tokconnect Com Pick Comment Winners API
version: 4.1.0
contact:
email: dj@tokconnect.com
name: TokConnect
url: https://tokconnect.com/docs/api/
description: 'Operations tagged pick_comment_winners across 3 of this provider''s published API definitions: api.tokconnect.com_v1_openapi.json, tokconnect-com-openapi.json, tokconnect.com_openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- description: Production
url: https://api.tokconnect.com
security:
- bearer: []
- apiKey: []
tags:
- description: Draws giveaway winners at random from a video's comments, with optional filters (must_include, unique users, exclude the creator).
name: pick_comment_winners
x-displayName: Comment giveaway draw
paths:
/v1/videos/{video}/giveaway:
post:
description: Draws giveaway winners at random from a video's comments, with optional filters (must_include, unique users, exclude the creator). A seed makes the draw reproducible. Reports how many comments were eligible.
operationId: POST_videos_video_giveaway
parameters:
- description: Post id or full https://www.tiktok.com/@creator/video/<id> URL.
example: '7691522530129022221'
in: path
name: video
required: true
schema:
type: string
- description: full adds TikTok's raw payload (large).
in: query
name: detail
required: false
schema:
default: compact
enum:
- compact
- full
type: string
- description: Exclude comments by the video's creator.
in: query
name: exclude_creator
required: false
schema:
default: true
type: boolean
- description: Comments to fetch, in pages of 50.
in: query
name: max_comments
required: false
schema:
default: 300
type: integer
- description: Optional text a comment must contain (case-insensitive), e.g. a hashtag or keyword.
in: query
name: must_include
required: false
schema:
type: string
- description: Optional seed for a reproducible draw. Publish it so anyone can re-run the draw.
in: query
name: seed
required: false
schema:
type: string
- description: Count each commenter once (their earliest fetched comment).
in: query
name: unique_users
required: false
schema:
default: true
type: boolean
- description: How many winners to draw.
in: query
name: winners
required: false
schema:
default: 1
type: integer
responses:
'200':
content:
application/json:
example:
data:
awemeId: '7691522530129022221'
coverage: 0.95
eligible: 16
excluded:
duplicateUser: 3
fairness: Only the 19 fetched top-level comments were eligible; replies, hidden, filtered or deleted comments are not included. TikTok returns comments in its own order, so on large videos the fetched set is TikTok's selection, not a random sample of all comments. TikTok reports 20 comments; 19 were fetched.
fetched: 19
pages: 1
random: crypto/rand (not reproducible; pass seed for a verifiable draw)
rules:
creatorHandle: ingaterner
excludeCreator: true
maxComments: 300
mustInclude: ''
uniqueUsers: true
winners: 1
seed: null
totalReported: 20
winners:
- authorNickname: R.
authorUniqueId: r9079756
createTime: 1791056562
diggCount: 0
id: '7692529272121000725'
isAuthor: false
text: 😳😳😳
meta:
credits_charged: 1
credits_remaining: 7906
request_id: req_3f9c2a1b7d4e
schema:
properties:
data:
description: The tool's result. Compact by default; pass detail=full for the complete record.
properties:
awemeId:
type: string
coverage:
type: number
eligible:
type: integer
excluded:
properties:
duplicateUser:
type: integer
type: object
fairness:
type: string
fetched:
type: integer
pages:
type: integer
random:
type: string
rules:
properties:
creatorHandle:
type: string
excludeCreator:
type: boolean
maxComments:
type: integer
mustInclude:
type: string
uniqueUsers:
type: boolean
winners:
type: integer
type: object
seed:
type: 'null'
totalReported:
type: integer
winners:
items:
properties:
authorNickname:
type: string
authorUniqueId:
type: string
createTime:
type: integer
diggCount:
type: integer
id:
type: string
isAuthor:
type: boolean
text:
type: string
type: object
type: array
type: object
meta:
$ref: '#/components/schemas/Meta'
next_cursor:
description: 'Present when there is another page: pass it back as cursor.'
type: string
required:
- data
- meta
type: object
description: 'OK. The call was charged: 1 credit, or 2 for a Shop sales lookup.'
headers:
Request-Id:
description: Quote it to support.
schema:
type: string
TokConnect-Credits-Charged:
description: 'Credits this call was charged: 0 when it failed, otherwise the route''s x-credits.'
schema:
type: integer
TokConnect-Credits-Remaining:
description: Credits left this period.
schema:
type: integer
'400':
$ref: '#/components/responses/E400'
'401':
$ref: '#/components/responses/E401'
'402':
$ref: '#/components/responses/E402'
'403':
$ref: '#/components/responses/E403'
'404':
$ref: '#/components/responses/E404'
'429':
$ref: '#/components/responses/E429'
'502':
$ref: '#/components/responses/E502'
'503':
$ref: '#/components/responses/E503'
summary: Comment giveaway draw
tags:
- pick_comment_winners
x-credits: 1
x-example-params:
video: '7691522530129022221'
x-mcp-method: ''
x-mcp-tool: pick_comment_winners
servers:
- description: Production
url: https://api.tokconnect.com
components:
responses:
E404:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: No such route, or TikTok has nothing at that id (deleted, private or never existed).
request_id: req_0a1b2c3d4e5f
type: not_found
schema:
$ref: '#/components/schemas/Error'
description: No such route, or TikTok has nothing at that id (deleted, private or never existed).
E429:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: Over your plan's requests per minute or calls at once. Wait for the Retry-After seconds. Not charged.
request_id: req_0a1b2c3d4e5f
type: rate_limited
schema:
$ref: '#/components/schemas/Error'
description: Over your plan's requests per minute or calls at once. Wait for the Retry-After seconds. Not charged.
E400:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: An argument is missing, unknown or out of range. The message names it and says what the route takes. Not charged.
request_id: req_0a1b2c3d4e5f
type: invalid_request
schema:
$ref: '#/components/schemas/Error'
description: An argument is missing, unknown or out of range. The message names it and says what the route takes. Not charged.
E402:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: 'No credits left this period (credits_exhausted), or the last payment did not go through (billing_hold: update the card on the account page). Not charged.'
request_id: req_0a1b2c3d4e5f
type: credits_exhausted
schema:
$ref: '#/components/schemas/Error'
description: 'No credits left this period (credits_exhausted), or the last payment did not go through (billing_hold: update the card on the account page). Not charged.'
E403:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: The API needs a paid plan (Starter, Growth, Pro or Enterprise). Not charged.
request_id: req_0a1b2c3d4e5f
type: plan_required
schema:
$ref: '#/components/schemas/Error'
description: The API needs a paid plan (Starter, Growth, Pro or Enterprise). Not charged.
E503:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: TokConnect is at capacity. Retry after a few seconds. Not charged.
request_id: req_0a1b2c3d4e5f
type: server_busy
schema:
$ref: '#/components/schemas/Error'
description: TokConnect is at capacity. Retry after a few seconds. Not charged.
E502:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: TokConnect could not read this answer from TikTok. Retry shortly. Not charged.
request_id: req_0a1b2c3d4e5f
type: upstream_failed
schema:
$ref: '#/components/schemas/Error'
description: TokConnect could not read this answer from TikTok. Retry shortly. Not charged.
E401:
content:
application/json:
example:
error:
charged: false
docs: https://tokconnect.com/docs/api/errors/
message: 'No API key, or the key is revoked. Send X-API-Key or Authorization: Bearer.'
request_id: req_0a1b2c3d4e5f
type: unauthorized
schema:
$ref: '#/components/schemas/Error'
description: 'No API key, or the key is revoked. Send X-API-Key or Authorization: Bearer.'
schemas:
Meta:
properties:
credits_charged:
description: 1 on success.
type: integer
credits_remaining:
description: Credits left this period, when known.
type: integer
request_id:
description: Quote it to support.
type: string
type: object
Error:
properties:
error:
properties:
charged:
description: 'Always false: failed calls are not charged.'
type: boolean
docs:
format: uri
type: string
message:
description: What went wrong and what to do.
type: string
request_id:
type: string
retry_after:
description: Seconds to wait, on 429 and 503.
type: integer
type:
description: 'Machine code: invalid_request, unauthorized, credits_exhausted, billing_hold, plan_required, forbidden (a browser request from a site that may not call the API), not_found, rate_limited, too_concurrent, upstream_failed, server_busy.'
type: string
required:
- type
- message
type: object
required:
- error
type: object
securitySchemes:
apiKey:
in: header
name: X-API-Key
type: apiKey
bearer:
scheme: bearer
type: http
externalDocs:
description: Guides and reference
url: https://tokconnect.com/docs/api/
x-refined-from:
- api.tokconnect.com_v1_openapi.json
- tokconnect-com-openapi.json
- tokconnect.com_openapi.json
x-tagGroups:
- name: Products
tags:
- product
- product_top_selling
- name: Shops
tags:
- shop
- shop_browse
- shop_top_selling
- name: Creators
tags:
- creator
- creator_commerce
- creator_playlist
- creator_search
- creator_top_selling
- name: Videos
tags:
- video
- video_feed
- video_search
- video_top_selling
- name: LIVE
tags:
- live
- live_search
- live_top_selling
- name: Categories
tags:
- category_trends
- name: Charts
tags:
- charts
- name: Ads and Creative Center
tags:
- ad_library
- creative_center
- name: Demand and keywords
tags:
- demand_find_topics
- demand_keywords
- demand_topic
- name: Hashtags and sounds
tags:
- hashtag
- hashtag_search
- sound
- sound_search
- name: Places
tags:
- place
- place_search
- name: Helpers
tags:
- pick_comment_winners
- name: Markets and reference
tags:
- reference
- shop_regions