curl --request GET \
--url 'https://api.keyapi.ai/v1/tiktok/trending/videos?page=1&period=7&limit=20®ion=US&order_by=vv' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"pagination": {
"has_more": true,
"limit": 1,
"page": 1,
"total_count": 500
},
"videos": [
{
"country_code": "US",
"cover": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068c799-us/o4JxEBqB0A29krEiiwHWiAE9CiOKfpIAzIIKdC~tplv-noop.image?dr=18692&refresh_token=046195fd&x-expires=1770133396&x-signature=tTcq8o8OpcY%2BJ6A6ab6oZgXhlNQ%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=83ba07fd&idc=my&VideoID=v15044gf0000d55dh1fog65tuspo944g",
"duration": 9,
"id": "7587114666132868383",
"item_id": "7587114666132868383",
"item_url": "https://www.tiktok.com/@mnm_pipi/video/7587114666132868383",
"region": "United States",
"title": "This pup is living her best life. Thanks to price tracking in Chrome, it’s about to get even better. 🐶"
}
]
},
"requestId": "d78497da-6b4e-4da3-b15e-da48fca8d5af"
}Retrieve the current list of trending videos on TikTok, with view counts, engagement metrics, and creator information.
curl --request GET \
--url 'https://api.keyapi.ai/v1/tiktok/trending/videos?page=1&period=7&limit=20®ion=US&order_by=vv' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"pagination": {
"has_more": true,
"limit": 1,
"page": 1,
"total_count": 500
},
"videos": [
{
"country_code": "US",
"cover": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068c799-us/o4JxEBqB0A29krEiiwHWiAE9CiOKfpIAzIIKdC~tplv-noop.image?dr=18692&refresh_token=046195fd&x-expires=1770133396&x-signature=tTcq8o8OpcY%2BJ6A6ab6oZgXhlNQ%3D&t=9276707c&ps=14f1eb3e&shp=9e36835a&shcp=83ba07fd&idc=my&VideoID=v15044gf0000d55dh1fog65tuspo944g",
"duration": 9,
"id": "7587114666132868383",
"item_id": "7587114666132868383",
"item_url": "https://www.tiktok.com/@mnm_pipi/video/7587114666132868383",
"region": "United States",
"title": "This pup is living her best life. Thanks to price tracking in Chrome, it’s about to get even better. 🐶"
}
]
},
"requestId": "d78497da-6b4e-4da3-b15e-da48fca8d5af"
}🤖 Why Code When AI Can Do It For You?
Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
Pagination page number, used to specify the target page number of the query results
"1"
The time range for querying data. Optional valid values: 7 (last 7 days), 30 (last 30 days)
"7"
The number of data items per page in pagination, used to specify the maximum number of results returned by a single query. The value range is 1 to 20. If it exceeds the maximum value, it will be automatically handled as 20.
"20"
Country/Region Code
"US"
Filter sorting criteria: Hotspot = vv Likes = like Comments = comment Reposts = repost
"vv"
Success
The response is of type object.