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 integration with YouTube's extensive API capabilities, including live streaming management. Specifically, for the Live Streaming resource and the Delete Live Broadcast operation, it allows users to delete a live broadcast on YouTube by specifying its broadcast ID. This is useful in scenarios where a scheduled or ongoing live broadcast needs to be removed from the channel, such as canceling an event or cleaning up outdated broadcasts.

Practical examples:

  • Automatically deleting canceled live events from your YouTube channel.
  • Managing live broadcasts programmatically within a workflow to maintain channel content hygiene.
  • Integrating with other systems to remove live broadcasts based on external triggers or conditions.

Properties

Name Meaning
Broadcast ID The unique identifier of the live broadcast to delete.

Output

The node outputs JSON data representing the response from the YouTube API after attempting to delete the specified live broadcast. The structure typically includes confirmation of deletion or error details if the operation failed.

No binary data output is involved in this operation.

Example output JSON (conceptual):

{
  "status": "success",
  "message": "Live broadcast deleted successfully",
  "broadcastId": "abc123"
}

Or in case of failure:

{
  "error": "Broadcast not found or already deleted"
}

Dependencies

  • Requires an active subscription and valid API key credential for the external service referred to as "N8N Tools API" for validation.
  • Requires OAuth2 credentials or API authentication tokens to access YouTube Data API v3.
  • The node internally uses helper classes that wrap YouTube API endpoints, including a dedicated Live Streaming API handler.
  • Proper configuration of these credentials in n8n is necessary before using the node.

Troubleshooting

  • Invalid subscription or API key error: If you receive errors about invalid subscription or API key, verify that your API key credential is correct and has the required permissions.
  • Broadcast not found: Ensure the provided Broadcast ID exists and belongs to the authenticated user's channel.
  • Permission denied: The authenticated user must have rights to manage the live broadcast; check OAuth scopes and channel ownership.
  • Network or API errors: Check connectivity and YouTube API quota limits.

If the node is set to continue on fail, errors for individual items will be returned in the output JSON under an error field.

Links and References

Discussion