TikHub Complete (149 Endpoints) icon

TikHub Complete (149 Endpoints)

Access ALL 149 TikHub social media data endpoints for TikTok (64), Instagram (56), YouTube (16), and X/Twitter (13)

Actions64

Overview

This node, named "TikHub Complete (149 Endpoints)," provides unified access to a wide range of social media data endpoints across four major platforms: TikTok, Instagram, YouTube, and X/Twitter. It supports 149 endpoints in total, including video, user, analytics, post, story, reel, channel, tweet, and timeline data.

The node is useful for scenarios where users want to aggregate or analyze social media content and metadata from multiple platforms within a single workflow. For example, marketers can use it to gather video performance data from TikTok and YouTube, social engagement metrics from Instagram stories and reels, or recent tweets and timelines from X/Twitter, all without switching between different APIs.

Specifically, the "Get user homepage video data" operation under the "Default" resource allows fetching videos related to a user’s homepage or channel on these platforms, with options to control pagination, sorting, and filtering.

Properties

Name Meaning
Platform Select the social media platform to work with. Options: TikTok (64 endpoints), Instagram (56 endpoints), YouTube (16 endpoints), X/Twitter (13 endpoints).
用户sec_user_id/User sec_user_id (sec_user_id) (TikTok only) The user's sec_user_id identifier used to fetch videos. Optional.
用户unique_id/User unique_id (unique_id) (TikTok only) The user's unique_id identifier used to fetch videos. Optional.
最大游标/Maximum cursor (max_cursor) (TikTok only) Maximum cursor value for pagination. Number between 1 and 1000. Default 20.
每页数量/Number per page (count) (TikTok only) Number of videos to return per page. Number between 1 and 1000. Default 20.
排序类型/Sort type (sort_type) (TikTok only) Sort type for returned videos. Number between 1 and 1000. Default 20.
频道ID/Channel ID (channel_id) (YouTube only) Channel ID to fetch videos from. Required.
视频结果语言代码/Video result language code (lang) (YouTube only) Language code to filter video results by language. Optional.
排序方式/Sort by (sortBy) (YouTube only) Sorting method for videos (e.g., date, rating). Optional.
内容类型/Content type (contentType) (YouTube only) Content type filter for videos. Optional.
翻页令牌/Pagination token (nextToken) (YouTube only) Token for fetching the next page of results. Optional.

Output

The node outputs an array of JSON objects representing the data retrieved from the selected social media platform endpoint. Each item corresponds to a piece of social media content such as a video, post, or tweet, depending on the platform and operation.

  • The output JSON structure depends on the specific platform and endpoint called but generally includes metadata fields relevant to videos or posts (e.g., IDs, URLs, titles, descriptions, timestamps).
  • If the API returns binary data (e.g., video files or images), it would be included in the binary property of the output items, though this particular operation focuses on metadata retrieval.
  • In case of errors during execution, the node outputs an error object with an error field containing the error message, paired with the input item index.

Dependencies

  • Requires an API key credential for authenticating requests to the TikHub API service at https://api.tikhub.io.
  • No other external dependencies are required.
  • The node uses internal helper functions to make HTTP requests to TikHub endpoints corresponding to the selected platform and operation.

Troubleshooting

  • Unknown operation error: If the specified operation is not recognized for the chosen platform, the node throws an error indicating the unknown operation. Ensure that the operation name matches one of the supported operations for the selected platform.
  • Missing required parameters: For example, the YouTube "videos" operation requires a valid channel_id. Omitting required parameters will cause the API request to fail.
  • API authentication errors: If the API key credential is missing or invalid, requests will fail. Verify that the correct API key is configured in n8n credentials.
  • Rate limiting or quota exceeded: The TikHub API may enforce rate limits. If you encounter errors related to too many requests, consider adding delays or reducing request frequency.
  • Pagination issues: When using pagination tokens or cursors, ensure they are correctly passed and updated to retrieve subsequent pages.

Links and References


If you need details about other resources or operations, please provide their names.

Discussion