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 a unified interface to access a wide range of social media data endpoints from four major platforms: TikTok, Instagram, YouTube, and X/Twitter. It supports 149 endpoints in total, divided as follows:

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

The node is designed to allow users to select a platform and an operation (endpoint) to fetch specific data. It handles both GET and other HTTP methods dynamically based on the selected operation.

Common scenarios where this node is beneficial:

  • Social media marketers wanting to aggregate data across multiple platforms in one workflow.
  • Data analysts collecting detailed metrics or content information from TikTok, Instagram, YouTube, or X/Twitter.
  • Developers building dashboards or reports that require fetching diverse social media data programmatically.
  • Automating social media monitoring or content curation tasks by pulling data from various sources.

Practical example:

A user wants to get detailed product information from TikTok Shop by providing a product ID. They select TikTok as the platform, choose the "Get product detail data" operation, and input the product ID. The node then calls the appropriate TikHub API endpoint and returns the product details in JSON format.


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)
商品id/Product id The product ID to query for product detail data. Required when Platform is TikTok and Operation is "Get product detail data".

Note: The full list of operations and their parameters depends on the selected platform and operation, but for the provided Resource and Operation ("Get product detail data"), only the product_id string input is required.


Output

The node outputs an array of JSON objects representing the data returned from the TikHub API for the selected operation. Each item corresponds to one input item processed.

  • The JSON structure depends on the specific endpoint called. For example, for the "Get product detail data" operation, the output JSON contains detailed product information such as product name, description, price, availability, seller info, etc., as provided by the TikHub API.
  • If the API response includes multiple records, each record is returned as a separate JSON object in the output array.
  • In case of errors and if "Continue On Fail" is enabled, the output will include JSON objects with an error field describing the issue for the corresponding input item.
  • The node does not output binary data.

Dependencies

  • Requires an active connection to the TikHub API service at https://api.tikhub.io.
  • Needs an API authentication token credential configured in n8n to authorize requests to TikHub.
  • No additional external dependencies are required beyond the TikHub API and its credentials.

Troubleshooting

  • Unknown operation error: If you select an operation that is not supported or misspell it, the node throws an error like Unknown operation: <operation> for platform: <platform>. Ensure the operation name matches exactly one of the supported endpoints.
  • Missing required parameters: For operations like "Get product detail data", missing required inputs such as product_id will cause the API call to fail. Always provide all mandatory fields.
  • API authentication errors: If the API key or token is invalid or missing, requests will fail. Verify your TikHub API credentials are correctly set up in n8n.
  • Rate limiting or network issues: The TikHub API may enforce rate limits or experience downtime. Handle such errors gracefully by enabling "Continue On Fail" or implementing retries.
  • Empty or unexpected responses: If the API returns no data or an unexpected structure, check the input parameters and consult TikHub API documentation for correct usage.

Links and References

Discussion