获取探索作品数据/Get explore video data

TikTokapi

About

获取探索作品数据/Get explore video data

Documentation

获取探索作品数据/Get explore video data

[中文]

用途:

  • 获取探索作品数据

参数:

  • categoryType: 作品分类
    • 100: 动画与漫画
    • 101: 表演
    • 102: 美容护理
    • 103: 游戏
    • 104: 喜剧
    • 105: 日常生活
    • 106: 家庭
    • 107: 情感关系
    • 108: 戏剧
    • 109: 穿搭
    • 110: 对口型
    • 111: 美食
    • 112: 运动
    • 113: 动物
    • 114: 社会
    • 115: 汽车
    • 116: 教育
    • 117: 健身和健康
    • 118: 科技
    • 119: 唱歌跳舞
    • 120: 全部
  • count: 每页数量

返回:

  • 作品数据

备注:

  • 此接口返回的所有视频CDN链接均需要携带返回的 tt_chain_token 参数才能正常访问,否则会返回HTTP403错误。
  • 在访问视频CDN链接时,请务必在请求头中携带 Cookie: tt_chain_token={tt_chain_token},其中 {tt_chain_token} 替换为接口返回的 tt_chain_token 参数值。
  • 如果访问视频CDN链接时返回HTTP 403错误:
    1. 请使用接口响应中以 https://www.tiktok.com/aweme/v1/play/ 开头的视频链接(通常在响应数据的 video.playAddr 或类似字段中)
    2. 在请求该链接时,务必在请求头中添加 Cookie: tt_chain_token={tt_chain_token},其中 {tt_chain_token} 为接口返回的 tt_chain_token 参数值
    3. 示例请求头: Cookie: tt_chain_token=xxx
  • 如果需要绕过此限制获取可以直接访问的无水印视频CDN链接,请使用 TikTok APP V3 目录下的接口。

[English]

Purpose:

  • Get explore video data

Parameters:

  • categoryType: Video category
    • 100: Animation and comics
    • 101: Performance
    • 102: Beauty care
    • 103: Game
    • 104: Comedy
    • 105: Daily life
    • 106: Family
    • 107: Emotional relationship
    • 108: Drama
    • 109: Dress up
    • 110: Dubbing
    • 111: Food
    • 112: Sports
    • 113: Animals
    • 114: Society
    • 115: Car
    • 116: Education
    • 117: Fitness and health
    • 118: Technology
    • 119: Singing and dancing
    • 120: All
  • count: Number per page

Return:

  • Video data

Note:

  • All video CDN links returned by this interface need to carry the returned tt_chain_token parameter to be accessed normally, otherwise HTTP 403 error will be returned.
  • When accessing the video CDN link, be sure to carry Cookie: tt_chain_token={tt_chain_token} in the request header, where {tt_chain_token} is replaced with the tt_chain_token parameter value returned by the interface.
  • If you receive HTTP 403 error when accessing video CDN links:
    1. Use the video link starting with https://www.tiktok.com/aweme/v1/play/ from the API response (usually found in video.playAddr or similar fields)
    2. When requesting this link, make sure to add Cookie: tt_chain_token={tt_chain_token} in the request header, where {tt_chain_token} is the value returned by the API
    3. Example request header: Cookie: tt_chain_token=xxx
  • If you need to bypass this restriction to get a watermark-free video CDN link that can be accessed directly, please use the interface under the TikTok APP V3 directory.

[示例/Example]

categoryType = "120" count = 16

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 获取探索作品数据/Get explore video data

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models