获取用户的作品列表/Get user posts
TikTokapi
About
获取用户的作品列表/Get user posts
Documentation
获取用户的作品列表/Get user posts
[中文]
用途:
- 获取用户的作品列表
参数:
- secUid: 用户secUid
- cursor: 翻页游标
- count: 每页数量,默认为20,不可变更。
- coverFormat: 封面格式,默认为2,可选值为1或2。
- post_item_list_request_type: 排序方式
- 0:默认排序
- 1:热门排序
- 2:最旧排序
返回:
- 用户的作品列表
备注:
- 此接口返回的所有视频CDN链接均需要携带返回的
tt_chain_token参数才能正常访问,否则会返回HTTP403错误。 - 在访问视频CDN链接时,请务必在请求头中携带
Cookie: tt_chain_token={tt_chain_token},其中{tt_chain_token}替换为接口返回的tt_chain_token参数值。 - 如果访问视频CDN链接时返回HTTP 403错误:
- 请使用接口响应中以
https://www.tiktok.com/aweme/v1/play/开头的视频链接(通常在响应数据的video.playAddr或类似字段中) - 在请求该链接时,务必在请求头中添加
Cookie: tt_chain_token={tt_chain_token},其中{tt_chain_token}为接口返回的tt_chain_token参数值 - 示例请求头:
Cookie: tt_chain_token=xxx
- 请使用接口响应中以
- 如果需要绕过此限制获取可以直接访问的无水印视频CDN链接,请使用 TikTok APP V3 目录下的接口。
[English]
Purpose:
- Get user posts
Parameters:
- secUid: User secUid
- cursor: Page cursor
- count: Number per page, default is 20, cannot be changed.
- coverFormat: Cover format, default is 2, optional values are 1 or 2.
- post_item_list_request_type: Sort type
- 0: Default sort
- 1: Hot sort
- 2: Oldest sort
Return:
- User posts
Note:
- All video CDN links returned by this interface need to carry the returned
tt_chain_tokenparameter 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 thett_chain_tokenparameter value returned by the interface. - If you receive HTTP 403 error when accessing video CDN links:
- Use the video link starting with
https://www.tiktok.com/aweme/v1/play/from the API response (usually found invideo.playAddror similar fields) - 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 - Example request header:
Cookie: tt_chain_token=xxx
- Use the video link starting with
- 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]
secUid = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM" cursor = 0 post_item_list_request_type = 0 count = 20 coverFormat = 2
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 获取用户的作品列表/Get user posts
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
提取列表作品id/Extract list video idTikTokapi提取列表用户sec_user_id/Extract list user sec_user_idTikTokapi获取列表unique_id/Get list unique_idTikTokapi提取单个作品id/Extract single video idTikTokapi批量直播间开播状态检测/Batch live room start status checkTikTokapi直播间开播状态检测/Live room start status checkTikTokapi解密strData/Decrypt strDataTikTokapi设备注册/Register device for TikTok WebTikTokapi