SerpApi Official icon

SerpApi Official

Get live Google Search data and more from SerpApi's official node

Search → YouTube Search

AI-generated

Overview

This node performs a YouTube search using the SerpApi service. It allows users to input a search query and customize the search with additional parameters such as country, language, filters, caching options, and output format. This node is useful for retrieving live YouTube search results programmatically, which can be used for content discovery, data analysis, or integration into other workflows.

Use Case Examples

  1. Searching for videos related to 'Coffee' on YouTube with default settings.
  2. Performing a YouTube search filtered by country (e.g., United States) and language (e.g., English).
  3. Using pagination and filtering options to refine search results and retrieve specific data fields.

Properties

Name Meaning
Search Query (search_query) Defines the search query for the YouTube search, similar to what you would enter in a regular YouTube search.
Additional Fields Collection of optional parameters to customize the YouTube search, including country (gl), language (hl), filter (sp), caching options (no_cache), async mode, ZeroTrace mode, output format, and JSON restrictor to limit response fields.

Output

JSON

  • results - The JSON response containing the YouTube search results and related metadata.

Dependencies

  • SerpApi service with an API key credential

Troubleshooting

  • Ensure the API key credential for SerpApi is correctly configured and has sufficient quota.
  • If no results are returned, verify the search query and additional parameters such as country and language are valid.
  • Be cautious when using async mode and no_cache together as they are not compatible.
  • Timeouts may occur if the server response is slow; adjust the timeout setting in request options if needed.

Links

Discussion