List Top TikTok Videos for a Track
Return the top TikTok videos associated with a track. When type=trending only, returns trending videos; otherwise the top videos by the selected sort. cm_id is populated when the poster is linked to a Chartmetric artist.
Path Parameters
- Type: integeridmin:0max:2147483647required
Chartmetric track ID.
Query Parameters
- Type: string enumtype
Sort metric for the returned videos. Defaults to
likes; allowed values come from TikTok engagement stats.values- likes
- views
- comments
- followers
- created
_at - trending
- modified
_at - saves
- shares
- Type: integerlimitmin:1max:100
Maximum number of videos to return. Max 100.
- Type: booleanby
Tiktok Id If true, treat
idas a TikTok sound ID (string-internally) rather than a Chartmetric track ID. Defaults to false.
Responses
- application/json
Request Example for get/api/track/{id}/topVideos
curl https://api.chartmetric.com/api/track/0/topVideos \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"obj": [
{
"created_at": "2021-04-23T07:09:53.962Z",
"username": "ivanmarsiglia",
"video_id": "6953643605160480005",
"thumbnail_url": "https://p16-sign-va.tiktokcdn.com/obj/tos-maliva-p-0068/1d79b9af19d543349c0e225fef89e01d",
"followers": 290700,
"cm_id": null,
"link": "https://www.tiktok.com/@ivanmarsiglia/video/6953643605160480005",
"stats": {
"likes": 8400000,
"comments": 82100,
"views": 54100000
}
}
]
}