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
The "Moderate Comments" operation in the YouTube Enhanced node allows users to perform moderation actions on multiple YouTube comments at once. This includes approving, rejecting, or holding comments for review based on their IDs. It is useful for content creators or channel managers who want to efficiently manage comment visibility and maintain community standards without manually moderating each comment individually.
Practical examples:
- Automatically approve a batch of comments that have been flagged as safe.
- Reject spammy or inappropriate comments in bulk.
- Hold suspicious comments for manual review before they appear publicly.
Properties
| Name | Meaning |
|---|---|
| Comment IDs | Comma-separated list of YouTube comment IDs to moderate. |
| Moderation Action | The action to perform on the specified comments. Options: Approve, Reject, Hold for Review. |
Output
The output JSON contains a results array with the outcome of the moderation action for each comment ID processed. Each element corresponds to one comment and includes either the successful moderation response or an error message if the moderation failed for that comment. Additionally, a total field indicates the number of comments processed.
Example structure:
{
"results": [
{
"commentId": "COMMENT_ID_1",
"status": "approved"
},
{
"commentId": "COMMENT_ID_2",
"error": "Error message describing failure"
}
],
"total": 2
}
Dependencies
- Requires an active subscription and valid API key credential for the external N8N Tools API service.
- The node uses YouTube Data API v3 endpoints via helper classes internally.
- Proper OAuth2 credentials for YouTube API access must be configured in n8n to allow comment moderation operations.
Troubleshooting
- Invalid API Key or Subscription: If the node throws an error about invalid subscription or API key, verify that the API key credential is correct and active.
- Permission Errors: Ensure the YouTube OAuth2 credentials have sufficient permissions to moderate comments on the target channel.
- Malformed Comment IDs: Provide valid, comma-separated comment IDs; invalid or non-existent IDs may cause errors.
- Partial Failures: Some comments might fail moderation while others succeed; check the
resultsarray for individual error messages. - Rate Limits: YouTube API rate limits may affect bulk moderation; consider batching requests if you encounter quota errors.