Google Search API icon

Google Search API

Integrate with Google Search API (Serper.dev API) for search functionalities. Powered by CloudFly

Actions7

Overview

The "Find Videos" operation of the Google Search API node (Serper.dev) enables users to search for videos on the web using a query string. This node is useful when you want to programmatically retrieve video search results based on specific keywords, with options to control pagination, number of results, language, country, and autocorrect settings.

Typical use cases include:

  • Automating video content discovery for marketing or research.
  • Integrating video search results into custom dashboards or applications.
  • Filtering video search results by region or language preferences.

For example, you could use this node to find the top 40 videos related to "climate change" in English from the United States, or to paginate through video search results for a trending topic.

Properties

Name Meaning
Page Page number for paginated results (e.g., 1, 2, 3...)
Query The search query string to find relevant videos (required)
Results Number of video results to return; options: 10, 20, 40, 60, 80, 100
Country Country code to localize search results; many country options available (e.g., US, GB, DE, etc.)
Language Language code to specify the language of search results; many language options available
Autocorrect Boolean flag to enable or disable autocorrect on the search query

Output

The node outputs a JSON array where each item corresponds to a video search result returned by the API. Each JSON object contains metadata about a video such as title, URL, description, thumbnail, and other relevant details provided by the Serper.dev API.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the Serper.dev Google Search API.
  • The node makes authenticated HTTP POST requests to https://google.serper.dev/videos.
  • Proper configuration of the API key credential in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication errors.
    • Exceeding API rate limits may result in request failures.
    • Providing an empty or invalid query string will likely return no results or errors.
    • Incorrect country or language codes might affect the relevance or availability of results.
  • Error messages:

    • Authentication errors: Check that the API key credential is correctly set up and valid.
    • Network or timeout errors: Verify network connectivity and API service status.
    • Validation errors: Ensure required parameters like "Query" are provided and valid.

Links and References

Discussion