N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

This node enables searching for YouTube playlists (as well as other content types) using the YouTube Data API v3 via an enhanced API service. Specifically, the "Search Playlists" operation allows users to query YouTube for playlists matching a search term and retrieve relevant playlist data.

Common scenarios where this node is beneficial include:

  • Automating discovery of playlists related to specific topics or keywords.
  • Integrating YouTube playlist search results into workflows for content curation or analysis.
  • Building applications that need to dynamically fetch playlists based on user input or scheduled queries.

For example, a marketing team could use this node to find trending playlists about a product category, or a content creator might automate fetching playlists to analyze competitor content.

Properties

Name Meaning
Search Query The text query string used to search for playlists.
Search Type The type of content to search. For this operation, set to "Playlist". Other options: Video, Channel, All.
Order The order in which search results are returned. Options: Relevance, Date, Rating, Title, Video Count, View Count.
Max Results Maximum number of search results to return (1 to 50).
Page Token Token for pagination to retrieve subsequent pages of results.

Output

The node outputs an array of JSON objects representing the search results. Each item corresponds to a playlist matching the search criteria and includes detailed metadata as returned by the YouTube API, such as playlist ID, title, description, thumbnails, and other relevant fields.

If multiple items are processed, the output contains one entry per input item.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for the external enhanced YouTube API service ("n8nToolsApi") which acts as a proxy/enhancement layer over the official YouTube Data API.
  • The node validates the API key subscription before making requests.
  • No direct YouTube OAuth credentials are strictly required for this operation but may be configured for other operations.

Troubleshooting

  • Invalid subscription or API key error: If you receive an error indicating invalid subscription or API key, verify that your API key credential is correctly configured and active.
  • API rate limits: The underlying YouTube API enforces quota limits; excessive requests may result in quota errors.
  • Empty results: Ensure the search query is not empty and that the search type is set appropriately (e.g., "Playlist" for this operation).
  • Pagination issues: Use the "Page Token" property correctly to paginate through large result sets.
  • Network or service errors: Check network connectivity and the status of the external API service.

Links and References

Discussion