跳转到主要内容
GET
/
v1
/
tiktok
/
trending
/
videos
cURL
curl --request GET \
  --url 'https://api.keyapi.ai/v1/tiktok/trending/videos?page=1&period=7&limit=20&region=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"
}
🪙2 credits每次请求

Copy for AI

🤖 让 AI 帮你写调用代码

点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。

授权

Authorization
string
header
必填

接口鉴权凭证。请在请求 Header 中传入 Authorization: Bearer <YOUR_API_KEY>。 可在 Dashboard 获取你的 API Key。

查询参数

page
string
默认值:1

分页页码,用于指定查询结果的目标页。

示例:

"1"

period
string
默认值:7

查询时间范围,可选值:7=近 7 天,30=近 30 天,120=近 120 天。

示例:

"7"

limit
string
默认值:20

每页返回数量,取值范围 1 到 20;超过最大值时会按 20 处理。

示例:

"20"

region
string
默认值:US

国家/地区代码。

示例:

"US"

order_by
string
默认值:vv

排序指标:Hotspot=vv,Likes=like,Comments=comment,Reposts=repost。

示例:

"vv"

响应

请求成功

The response is of type object.