tiktok/web/user-like
Get user likes Note: This interface requires that the user's like list be public
Input
Idle
Example output — click Run to generate your own
API README
Get user likes
Purpose:
- Get user likes
- Note: This interface requires that the user's like list be public Parameters:
- secUid: User secUid
- cursor: Page cursor
- count: Number per page, default is 20, cannot be changed.
- coverFormat: Cover format
- post_item_list_request_type: Sort type
- 0: Default sort
- 1: Hot sort
- 2: Oldest sort Return:
- User likes 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 = "MS4wLjABAAAAq1iRXNduFZpY301UkVpJ1eQT60_NiWS9QQSeNqmNQEDJp0pOF8cpleNEdiJx5_IU" cursor = 0 count = 20 coverFormat = 2
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

