N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

This node provides an enhanced integration with the YouTube Data API v3, specifically supporting a wide range of YouTube resources and operations. For the Videos resource, the Delete Video operation allows users to delete a specified YouTube video by its ID.

Typical use cases include:

  • Automating video management workflows where videos need to be programmatically removed from a channel.
  • Cleaning up outdated or unwanted content in bulk as part of a content lifecycle management process.
  • Integrating video deletion into larger automation flows that respond to external triggers or conditions.

Example: A user can set up a workflow that deletes videos flagged for removal based on certain criteria (e.g., low engagement or policy violations) by providing the video IDs to this node.

Properties

Name Meaning
Video ID The unique identifier of the YouTube video to delete.
Max Results Maximum number of results to return (not applicable for delete but available generally).
Page Token Pagination token for paged requests (not applicable for delete but available generally).
Language Language code (e.g., "en", "pt") for localized data (not applicable for delete).

For the Delete Video operation, only the Video ID property is required and relevant.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will be a confirmation response from the YouTube API indicating success or failure of the deletion request.

  • The output JSON contains the API response details.
  • If multiple items are processed, each item's result is included separately.
  • In case of errors and if "Continue On Fail" is enabled, error messages are returned per item.

No binary data output is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service used for validation.
  • Requires OAuth2 credentials or API credentials configured for accessing the YouTube Data API.
  • The node internally uses helper classes to interact with YouTube API endpoints.
  • No additional environment variables are explicitly required beyond standard n8n credential setup.

Troubleshooting

  • Invalid subscription or API key: If the node throws an error about invalid subscription or API key, verify that the API key credential is correct and has access to the N8N Tools API.
  • YouTube API errors: Errors such as "video not found" or "permission denied" may occur if the video ID is incorrect or the authenticated user lacks permission to delete the video.
  • Rate limits: Deleting many videos in rapid succession may hit YouTube API rate limits; consider adding delays or handling retries.
  • Continue On Fail: Enable this option to allow the node to continue processing other items even if some deletions fail, capturing errors in the output.

Links and References

Discussion