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

The node "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, divided as follows:

  • TikTok: 64 endpoints for video, user, analytics, and shop data.
  • Instagram: 56 endpoints for posts, users, stories, and reels.
  • YouTube: 16 endpoints for videos, channels, and search.
  • X/Twitter: 13 endpoints for tweets, users, and timelines.

This node is beneficial when you want to aggregate or automate workflows involving multiple social media platforms without switching between different nodes or APIs. For example, marketers can use it to gather analytics from TikTok and Instagram simultaneously, or content creators can fetch video details from YouTube and related tweets from X in one workflow.

The node dynamically selects the API endpoint based on the chosen platform and operation, sends requests with appropriate parameters, and returns the fetched data in a structured JSON format.

Properties

Name Meaning
Platform Selects the social media platform to work with. Options:
- TikTok (64 endpoints): Access TikTok video, user, analytics, and shop data
- Instagram (56 endpoints): Access Instagram post, user, story, and reel data
- YouTube (16 endpoints): Access YouTube video, channel, and search data
- X/Twitter (13 endpoints): Access X (Twitter) tweet, user, and timeline data

Additional properties depend on the selected operation and platform and include various identifiers and query parameters such as aweme_id, video_id, username, tweet_id, channel_id, search_query, count, cursor, limit, etc. These are used to specify the exact data to retrieve.

Output

The node outputs an array of JSON objects representing the data returned by the TikHub API for the selected platform and operation. The structure of each JSON object depends on the specific endpoint called but generally includes detailed information about social media entities like videos, users, posts, analytics, or search results.

If the API response contains binary data (e.g., media files), it would be handled accordingly, but this node primarily focuses on JSON data retrieval.

Each output item is paired with metadata linking it back to the input item index, facilitating traceability in workflows.

Dependencies

  • Requires an active API key credential for the TikHub service.
  • Uses the TikHub API base URL: https://api.tikhub.io.
  • Relies on internal utility functions to make authenticated HTTP requests to TikHub endpoints.
  • No other external dependencies are indicated.

Troubleshooting

  • Unknown Operation Error: If an invalid or unsupported operation is selected for the chosen platform, the node throws an error indicating the unknown operation. Ensure that the operation name matches one of the supported endpoints for the platform.
  • Parameter Issues: Missing or incorrect parameters required by specific endpoints may cause request failures. Verify that all mandatory parameters for the chosen operation are provided and correctly formatted.
  • API Authentication Errors: Failure to provide a valid API key or expired credentials will result in authentication errors. Confirm that the TikHub API key credential is configured properly in n8n.
  • Rate Limits or Quotas: The TikHub API may enforce rate limits. If requests fail due to quota exhaustion, consider adding delays or upgrading your API plan.
  • Continue On Fail Behavior: If enabled, the node will continue processing subsequent items even if some requests fail, returning error messages in the output JSON for failed items.

Links and References

(Note: The above links are general references; the node uses TikHub as a unified API gateway.)

Discussion