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 64 TikTok endpoints, 56 Instagram endpoints, 16 YouTube endpoints, and 13 X/Twitter endpoints, enabling users to retrieve diverse data such as videos, user profiles, analytics, posts, stories, reels, tweets, channels, and more.

The node is particularly useful for social media analysts, marketers, content creators, and developers who want to automate the retrieval of social media data from multiple platforms within a single workflow. For example, one can use it to fetch a list of TikTok videos associated with a specific music ID or hashtag, gather Instagram reel data for a campaign, or collect YouTube channel statistics.

In the context of the specified Resource "Default" and Operation "Get video list of specified music" on TikTok, the node fetches a list of videos related to a given music ID or hashtag, supporting pagination through cursor and count parameters.

Properties

Name Meaning
Platform Select the social media platform to work with. Options: TikTok, Instagram, YouTube, X/Twitter.
音乐id/Music id The music ID on TikTok to get the video list for. Required when platform is TikTok and operation is videolist.
游标/Cursor Pagination cursor to specify the starting point for fetching results. Optional, default is 20. Range: 1-1000.
数量/Number Number of videos to retrieve in one request. Optional, default is 20. Range: 1-1000.
话题id/Hashtag id Hashtag ID on TikTok to get the video list for. Required when platform is TikTok and operation is videolist.

Note: Cursor and Number properties appear twice in the input JSON but represent the same concept; they are used for pagination and limiting the number of results respectively.

Output

The node outputs an array of JSON objects representing the retrieved data from the selected social media platform endpoint. For the "Get video list of specified music" operation on TikTok, the output JSON contains video metadata related to the specified music ID or hashtag.

Each item in the output corresponds to a single video entry with its associated details as returned by the TikHub API. The exact structure depends on the TikHub API response but typically includes fields like video ID, description, author info, stats, and URLs.

If the node encounters errors during execution and "Continue On Fail" is enabled, the output will include error objects paired with the corresponding input item index.

The node does not explicitly handle binary data output.

Dependencies

  • Requires an API key credential for authenticating requests to the TikHub API service.
  • The base URL for API requests is https://api.tikhub.io.
  • No other external dependencies are required.
  • The node uses internal helper functions to make HTTP requests to TikHub endpoints.

Troubleshooting

  • Common Issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Providing incorrect or empty required parameters like music ID or hashtag ID will result in errors or empty responses.
    • Exceeding allowed ranges for cursor or count parameters may cause API errors.
    • Selecting an unsupported operation or platform combination will throw an "Unknown operation" error.
  • Error Messages:

    • "Unknown operation: <operation> for platform: <platform>": Indicates that the requested operation is not supported for the chosen platform. Verify the operation name and platform selection.
    • API request errors with messages from TikHub API: Check parameter validity and API key correctness.
    • Network or timeout errors: Ensure stable internet connection and TikHub API availability.
  • Resolution Tips:

    • Double-check all required parameters are provided and valid.
    • Confirm the API key credential is correctly configured in n8n.
    • Use smaller counts or adjust cursor values if pagination issues occur.
    • Enable "Continue On Fail" to allow partial processing when some items fail.

Links and References

  • TikHub API Documentation (official API base URL referenced)
  • n8n Documentation on Creating Custom Nodes
  • Social Media Platform APIs (for understanding underlying data structures):
    • TikTok Developer Portal
    • Instagram Graph API
    • YouTube Data API
    • X (Twitter) API

This summary is based solely on static analysis of the provided source code and property definitions.

Discussion