N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

The node provides enhanced integration with YouTube's Data API v3, supporting a wide range of YouTube resources and operations. Specifically for the Live Streaming resource and the Get Live Chat Messages operation, it retrieves live chat messages from an active YouTube live stream using the provided live chat ID.

This functionality is useful for workflows that need to monitor or analyze live chat interactions during a YouTube live broadcast. For example, you can use this node to:

  • Collect live chat messages in real-time for sentiment analysis.
  • Archive chat messages for later review or moderation.
  • Trigger other workflow actions based on specific chat content or user interactions.

Properties

Name Meaning
Live Chat ID The unique identifier of the live chat associated with a YouTube live broadcast. This ID is required to fetch live chat messages.

Output

The node outputs an array of JSON objects representing the live chat messages retrieved from the specified live chat session. Each item in the output corresponds to a message or batch of messages returned by the YouTube API.

The exact structure of each message object follows YouTube's live chat message format, typically including details such as:

  • Message text
  • Author information
  • Timestamp
  • Message type (e.g., text message, super chat)
  • Any associated metadata

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the "N8N Tools API" service to validate subscription and access rights.
  • Uses YouTube Data API v3 endpoints via helper classes internally.
  • Proper OAuth2 credentials or API keys for YouTube API access must be configured in n8n.
  • The node sends a validation request to the external N8N Tools API before executing the main operation.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.
  • Permission errors from YouTube API: Ensure that the OAuth2 credentials used have sufficient permissions to access live streaming data and live chat messages.
  • Empty or missing live chat ID: The live chat ID must be valid and correspond to an active live broadcast; otherwise, no messages will be returned.
  • Rate limits: YouTube API enforces quota limits; excessive requests may result in quota exhaustion errors. Implement appropriate delays or pagination handling.

Links and References

Discussion