Actions7
- Image Actions
- News Actions
- Scholar Actions
- Search Actions
- Shopping Actions
- Video Actions
Overview
This node integrates with the Google Search API (via Serper.dev) to perform various types of searches, including shopping product searches. Specifically, the Shopping Search operation allows users to search for products available online based on a query string. This is useful for applications that need to retrieve product listings, prices, and related shopping information programmatically.
Common scenarios include:
- E-commerce platforms aggregating product data from multiple sources.
- Market research tools comparing product availability and pricing.
- Automated workflows that notify users about new or discounted products matching their interests.
Example: Searching for "wireless headphones" in the United States market to get a list of relevant products with details.
Properties
| Name | Meaning |
|---|---|
| Page | Page number for paginated results; controls which page of results to fetch. |
| Query | The search query string describing the product or item to find (required). |
| Results | Number of results to return; options are 10, 20, 40, 60, 80, or 100. |
| Country | Country code specifying the regional market for the search (e.g., "us" for United States). |
| Language | Language code for the search results (e.g., "en" for English). |
| Autocorrect | Boolean flag to enable or disable autocorrect on the search query. |
Output
The node outputs a JSON array where each element corresponds to an individual search result item returned by the Google Shopping search API. Each item contains structured data about a product found in the search, such as its title, price, link, and other metadata provided by the 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/shoppingendpoint. - 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.
- Incorrect country or language codes might yield unexpected or no results.
- Network connectivity problems can cause HTTP request failures.
Error messages:
- Errors from the API are caught and returned as error objects if "Continue On Fail" is enabled.
- Typical error messages include authentication failures, invalid parameters, or quota exceeded.
Resolutions:
- Verify the API key credential is correctly set up and active.
- Check the input parameters for correctness, especially country and language codes.
- Enable "Continue On Fail" to handle errors gracefully in workflows.
- Monitor API usage to avoid hitting rate limits.
Links and References
- Serper.dev Google Search API Documentation
- Google Shopping Search Overview
- n8n HTTP Request Node Documentation (for understanding HTTP calls)
This summary is based solely on static analysis of the provided source code and property definitions.