N8N Tools - YouTube Enhanced
Actions83
- Videos Actions
- Channels Actions
- Playlists Actions
- Search Actions
- Analytics Actions
- Get Channel Analytics
- Get Video Analytics
- Get Playlist Analytics
- Get Content Owner Analytics
- Get Audience Retention
- Get Demographics
- Get Geographic Data
- Get Device Data
- Get Traffic Source Data
- Get Revenue Data
- Get Ad Performance Data
- Get Subscriber Analytics
- Get Playback Location Data
- Get Video Performance Data
- Get Playlist Performance Data
- Get Annotation Performance Data
- Get Card Performance Data
- Get Sharing Service Data
- Get Live Streaming Data
- Get Content Type Data
- Get Time Based Data
- Comments Actions
- Subscriptions Actions
- Live Streaming Actions
- Video Upload Actions
- Community Posts Actions
- Thumbnails Actions
- Captions Actions
- Channel Memberships Actions
- Super Chat & Thanks Actions
Overview
This node integrates with the YouTube Data API v3 and Analytics via a third-party service to perform various operations on YouTube resources. Specifically, for the Playlists resource and the Delete Playlist operation, it allows users to delete a specified YouTube playlist by its ID.
Common scenarios where this node is beneficial include:
- Automating YouTube channel management workflows, such as cleaning up outdated or unwanted playlists.
- Integrating playlist deletion into larger content management or marketing automation pipelines.
- Managing YouTube content programmatically without manual intervention in the YouTube Studio interface.
Practical example:
- A user wants to automatically remove playlists that no longer align with their current content strategy. They can set up an n8n workflow using this node to delete playlists by specifying their IDs.
Properties
| Name | Meaning |
|---|---|
| Playlist ID | The unique identifier of the YouTube playlist to delete. |
| Max Results | Maximum number of results to return (used in other operations; not directly relevant here). Allowed values: 1 to 50. |
| Page Token | Pagination token for paginated requests (used in other operations; not directly relevant here). |
| Language | Language code (e.g., "en", "pt") for filtering or localization purposes (used in other operations). |
Note: For the Delete Playlist operation, only the Playlist ID property is required and used.
Output
The node outputs JSON data representing the result of the delete operation. Typically, this will be a confirmation object indicating success or details about the deleted playlist. If the deletion fails, an error message will be included.
The output structure includes:
json: Contains the API response from the delete playlist request.itemData.item: The index of the input item corresponding to the output.
The node does not output binary data for this operation.
Dependencies
- Requires an active subscription and valid API key for the third-party "N8N Tools API" service that wraps YouTube API calls.
- Requires OAuth2 credentials for YouTube API access.
- The node internally uses multiple helper classes to interact with different YouTube API endpoints.
- The node expects proper configuration of these credentials within n8n.
Troubleshooting
Common Issues
- Invalid API Key or Subscription: If the API key or subscription is invalid or expired, the node will throw an error during validation.
- Insufficient Permissions: The OAuth2 credentials must have permissions to manage playlists on the target YouTube channel.
- Invalid Playlist ID: Providing a non-existent or malformed playlist ID will cause the API call to fail.
Error Messages and Resolutions
"N8N Tools API: Invalid subscription or API key. Please check your credentials."
Resolution: Verify that the API key and subscription are correct and active."Resource 'playlists' not implemented yet"
Resolution: This should not occur for the Delete Playlist operation as it is implemented. If encountered, ensure the resource and operation parameters are correctly set.API errors related to authorization or quota limits should be resolved by checking YouTube API quotas and OAuth2 scopes.
Links and References
- YouTube Data API v3 - Playlists
- YouTube Data API v3 - Deleting a Playlist
- n8n Documentation - Creating Custom Nodes
- OAuth 2.0 for YouTube API
If you need further details on other operations or resources, feel free to ask!