Google Search API icon

Google Search API

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

Actions7

Overview

This node integrates with the Google Search API (via Serper.dev) to perform various search-related operations, including a specialized reverse image search called "Image Search (Lens)." Specifically for the Image Search (Lens) operation under the Image resource, it allows users to perform a reverse image search by providing an image URL. This is useful for finding visually similar images, identifying objects or landmarks in an image, or discovering the origin of an image.

Practical examples:

  • A marketer wants to find where a product image appears online.
  • A researcher needs to identify the source or context of an image.
  • An e-commerce site owner wants to find similar product images across the web.

Properties

Name Meaning
Image URL URL of the image used for reverse image search (required).

Note: The following properties are not applicable for this operation and thus hidden:

  • Page
  • Query
  • Results (Number of results)
  • Autocorrect

The node also supports these common properties (though hidden for this operation):

  • Country: Country code to localize the search results (e.g., "us" for United States).
  • Language: Language code to specify the language of the search results (e.g., "en" for English).

Output

The output is a JSON array containing the search results returned from the reverse image search API endpoint. Each item in the output corresponds to one result from the image search lens query.

The exact structure of each result depends on the API response but typically includes metadata about matched images, such as URLs, titles, descriptions, and possibly related links.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the Google Search API via Serper.dev.
  • The node makes HTTP POST requests to https://google.serper.dev/lens endpoint for the reverse image search.
  • Proper configuration of the API key credential in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication errors.
    • Providing an invalid or inaccessible image URL may result in no results or errors.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • Errors thrown by the API are caught and returned as error objects if "Continue On Fail" is enabled.
    • Typical error messages include authentication failures, invalid parameters, or rate limiting.
  • Resolutions:

    • Ensure the API key credential is correctly set up and has sufficient permissions.
    • Verify that the image URL is publicly accessible and valid.
    • Check network connectivity and retry after some time if rate limited.

Links and References


This summary focuses exclusively on the Image Search (Lens) operation under the Image resource as requested.

Discussion