N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

The "Get Video Categories" operation under the "Videos" resource in this YouTube Enhanced node allows users to retrieve a list of video categories available on YouTube. This is useful for workflows that need to categorize videos, filter content by category, or display category options dynamically.

Typical use cases include:

  • Automatically tagging uploaded videos with appropriate categories.
  • Filtering or organizing video data based on category.
  • Building user interfaces that allow selection from YouTube's official video categories.

For example, a workflow could fetch video categories and then prompt a user to select one when uploading a new video, ensuring consistent categorization.

Properties

Name Meaning
Max Results Maximum number of video categories to return (1 to 50).
Page Token Pagination token to retrieve the next set of results if there are more than maxResults.
Language Language code (e.g., "en", "pt") to localize the category names where supported.

Output

The output JSON contains an array of video category objects as returned by the YouTube Data API v3. Each category typically includes fields such as:

  • id: The unique identifier of the video category.
  • snippet.title: The localized title of the category.
  • snippet.assignable: Whether the category can be assigned to videos.

The node outputs these categories in the json field of each item, allowing subsequent nodes to process or filter them.

No binary data 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 for YouTube API access.
  • The node internally uses the YouTube Data API v3 endpoints via helper classes bundled in the node.

Troubleshooting

  • Invalid subscription or API key error: If you receive an error about invalid subscription or API key, verify that your API key credential is correct and has the necessary permissions.
  • Quota exceeded or permission errors from YouTube API: Ensure your YouTube OAuth2 credentials have sufficient quota and scopes enabled.
  • Pagination issues: If you do not get all categories, try using the Page Token property to paginate through results.
  • Language codes: Using unsupported or incorrect language codes may result in default English titles or errors.

Links and References

Discussion