N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

This node integrates with YouTube's API to perform a wide range of operations across multiple YouTube resources. Specifically, for the Live Streaming resource and the Create Live Broadcast operation, it allows users to schedule a new live broadcast on their YouTube channel by specifying details such as the title, scheduled start time, and privacy status.

This functionality is beneficial for content creators and marketers who want to automate the scheduling of live events on YouTube directly from their workflows. For example, a user can set up an automated workflow that creates a live broadcast event at a specific date and time without manual intervention.

Properties

Name Meaning
Scheduled Start Time The date and time when the live broadcast is scheduled to start (required).

Note: Although not listed in the provided properties JSON, the code also uses these input parameters for creating a live broadcast:

  • Title: The title of the live broadcast.
  • Privacy Status: The privacy setting of the broadcast (e.g., public, private, unlisted).

These are inferred from the code snippet handling the createLiveBroadcast operation:

a=await w.createLiveBroadcast({title:s,scheduledStartTime:i,privacyStatus:n});

where s = title, i = scheduledStartTime, and n = privacyStatus.

Output

The node outputs JSON data representing the response from the YouTube API after creating the live broadcast. This typically includes details about the newly created broadcast such as its ID, title, scheduled start time, privacy status, and other metadata returned by YouTube.

The output is structured as an array of items, each containing a json field with the API response and an itemData field indicating the index of the input item processed.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for the "N8N Tools API" service to validate subscription and access rights.
  • Requires OAuth2 credentials for YouTube API access.
  • The node depends on internal helper classes that wrap YouTube API endpoints, including a LiveStreamingApi class responsible for live streaming operations.
  • The node sends a validation request to the external N8N Tools API before executing the main operation.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error related to invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • YouTube API Errors: Errors from YouTube API calls (e.g., invalid parameters, permission issues) will be surfaced. Ensure that OAuth2 credentials have the necessary scopes and permissions.
  • Missing Required Parameters: The scheduledStartTime property is required; omitting it will cause errors.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details per item.

Links and References


If you need further details on other operations or resources, please let me know!

Discussion