N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

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 results array for individual error messages.
  • Rate Limits: YouTube API rate limits may affect bulk moderation; consider batching requests if you encounter quota errors.

Links and References

Discussion