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 products in an image, or discovering the origin of an image.

Practical examples:

  • A marketer wants to find all instances of a product image across the web.
  • A researcher needs to identify the source or related content of a particular image.
  • An e-commerce site owner wants to find similar product images to compare prices or listings.

Properties

Name Meaning
Image URL URL of the image used for reverse image search (required for Image Search (Lens))
Page Page number for paginated results (not applicable for Image Search (Lens))
Query Search query string (not applicable for Image Search (Lens))
Results Number of results to return (options: 10, 20, 40, 60, 80, 100; not applicable for Lens)
Country Country code to localize the search (e.g., "us" for United States)
Language Language code to localize the search (e.g., "en" for English)
Autocorrect Whether to enable autocorrect on the query (true/false; not applicable for Lens)

Note: For the Image Search (Lens) operation, only the Image URL property is required and used. Other properties like Page, Query, Results, and Autocorrect are hidden and not applicable.

Output

The node outputs JSON data representing the search results returned by the Serper.dev API for the reverse image search. The exact structure depends on the API response but generally includes information about visually similar images, related pages, and metadata about the image search.

If the node supports binary data output (not indicated here), it would typically represent image files or thumbnails related to the search results. However, this node's output is JSON-based search result data only.

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/lens endpoint for the Image Search (Lens) operation.
  • Proper configuration of the API key credential in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:
    • Missing or invalid 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 the node from reaching the API endpoint.
  • Error messages:
    • Authentication errors: Check that the API key credential is correctly set up and valid.
    • Invalid URL errors: Verify the image URL is correct and publicly accessible.
    • API rate limits or quota exceeded: Monitor usage limits on the Serper.dev API account.
  • To resolve errors, ensure all required parameters are provided, credentials are valid, and the image URL is reachable.

Links and References


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

Discussion