TikTok endpoints
TikTok endpoints in the Siar social media API: 3 operations that exist on TikTok only, with parameters, body fields, responses and curl examples.
Updated
These operations exist for TikTok only. The shared operations (posts, comments, analytics) are in the API reference; all network-specific areas are listed under network-specific operations.
Operations
| Operation | Method and path |
|---|---|
| Get popular tracks from TikTok Commercial Music Library | GET /api/v1/misc/tiktok/cml/trending-list |
| Delete a TikTok comment | DELETE /api/v1/misc/tiktok/comment |
| TikTok creator info for the post form | GET /api/v1/misc/tiktok/creator-info |
/api/v1/misc/tiktok/cml/trending-list Get popular tracks from TikTok Commercial Music Library
misc.tiktok.getCommercialMusicTrendingList · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string | |
genre | query | string | One of ROCK, POP, LATIN, METAL, ELECTRONIC, HIP_HOP/RAP, ALTERNATIVE/INDIE, R&B/SOUL, COUNTRY, CLASSICAL, JAZZ, CHILDHOOD, ALTERNATIVE_HIP_HOP, AMBIENT, BOSSA_NOVA, BRAZILIAN_FUNK_STYLE, CHILL_BEATS, CHILLOUT, CHINESE_POP, CHRISTIAN_MUSIC, COUNTRY_POP, DANCE_POP, DISCO, DJ, DRUM&BASS, DUBSTEP, EDM, FUNK, HOUSE, INDIE_POP, J-POP, K-POP, LATIN_POP, LO-FI, OLD_SCHOOL, PUNK, RUSSIAN_POP, SOUL, SOUNDTRACK, SYNTH_POP, TECHNO, TEEN_POP · default "POP" |
dateRange | query | string | One of 1DAY, 7DAY, 30DAY · default "7DAY" |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/tiktok/cml/trending-list?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
10 top-level fields
-
commercial_music_namestring nullable -
durationinteger nullable -
thumbnail_urlstring required uri -
artiststring required -
preview_urlstring nullable uri -
genresstring[] default [] -
rank_positionstring required -
trending_historyobject[] default []2 fields
-
datestring required -
rank_position_dailystring nullable
-
-
full_duration_song_clipobject nullable3 fields
-
preview_urlstring nullable uri -
durationinteger nullable -
song_clip_idstring required
-
-
trending_song_clipobject nullable3 fields
-
preview_urlstring nullable uri -
durationinteger nullable -
song_clip_idstring required
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/tiktok/comment Delete a TikTok comment
misc.tiktok.deleteComment · requires x-api-key
Request body application/json
-
teamIdstring required -
commentIdstring required
Example
curl -X DELETE "https://api.siaran.my/api/v1/misc/tiktok/comment" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"commentId": "COMMENT_ID"
}' Response 200
1 top-level fields
-
successboolean required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/misc/tiktok/creator-info TikTok creator info for the post form
misc.tiktok.getCreatorInfo · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string |
Example
curl -X GET "https://api.siaran.my/api/v1/misc/tiktok/creator-info?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
11 top-level fields
-
canPostboolean required -
reasonstring nullable -
businessboolean -
creatorNicknamestring nullable -
creatorUsernamestring nullable -
creatorAvatarUrlstring nullable -
privacyLevelOptionsstring[] required -
commentDisabledboolean -
duetDisabledboolean -
stitchDisabledboolean -
maxVideoPostDurationSecinteger nullable