Actions28
- TikTok Actions
- Instagram Actions
- YouTube Actions
- Twitter Actions
TikTok → Get User Posts
AI-generatedSummary
Fetch TikTok user video posts by specifying either the user's sec_user_id or unique username. Supports pagination with a cursor and limits the number of posts returned per request.
Inputs
- Identifier Type (required) — Select whether to specify the user by Sec User ID or Unique ID (username).
- Sec User ID — The TikTok user's sec_user_id, required if 'Sec User ID' is selected as the Identifier Type.
- Username — The TikTok user's unique username (unique_id), required if 'Unique ID (Username)' is selected as the Identifier Type.
- Max Cursor — Pagination cursor to retrieve the next page of results, defaults to 0 for the first page.
- Count — The number of posts to fetch, with a maximum limit of 35; defaults to 20.
Output shape
a single JSON object containing an array of the user's video posts and pagination info as returned by the TikHub API
The returned data includes pagination details to allow fetching additional posts using the Max Cursor parameter. Errors related to user retrieval or posts fetching will be surfaced in the output.
Examples
Example 1: Fetch up to 20 latest posts of TikTok user 'unique_id' 'charlidamelio'
Set Identifier Type to 'Unique ID', provide 'charlidamelio' as Username, leave Max Cursor as 0, and Count as 20.
Example 2: Retrieve next page of posts using pagination cursor
Use the Max Cursor value returned from the previous call to fetch more posts.