Vidflow icon

Vidflow

Extract audio, transcribe with BCut, and process social media videos

Douyin → Get User Likes

AI-generated

Summary

Fetch user liked videos from Douyin by providing the user's sec_user_id, using one of two TikHub API sources (App V3 or Web). Supports pagination.

Inputs

  • Likes API Source — Select which TikHub endpoint to use for retrieving user likes; defaults to 'App V3' which does not require a Douyin web cookie, while 'Web' requires a valid Douyin web cookie.
  • Sec User ID (required) — The Douyin user's 'sec_user_id' identifier for whom the liked videos are to be fetched.
  • Max Cursor — Pagination cursor to navigate through liked videos; use 0 for the initial request.
  • Count — The number of liked video items to return per request, between 1 and 100.
  • Douyin Web Cookie — Required only when Likes API Source is set to 'Web'; provide your Douyin web cookie for authentication.

Output shape

a JSON object containing TikHub API response data for the user's liked videos

Returns the TikHub API response with metadata including request ID, status message, operation details, and an array of liked video data. Pagination is controlled by 'maxCursor'. An error is thrown if required parameters are missing or TikHub credentials are not properly configured.

Examples

Example 1: Fetching Douyin user liked videos using App V3 API

Set 'Likes API Source' to 'appV3', provide the 'secUserId', optionally set 'Max Cursor' and 'Count'. No web cookie required.

Example 2: Fetching Douyin user liked videos using Web API

Set 'Likes API Source' to 'web', provide the 'secUserId', Douyin web cookie in 'Douyin Web Cookie', optionally set 'Max Cursor' and 'Count'.

Links

Discussion