Google Search API
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 analyzing product availability and pricing.
- Automated workflows that trigger actions based on product search results.
For example, you could use this node to search for "wireless headphones" and retrieve a list of relevant products, their details, and links to purchase them.
Properties
| Name | Meaning |
|---|---|
| Page | Page number for paginated results |
| Query | The search query string for the shopping search |
| Results | Number of results to return; options: 10, 20, 40, 60, 80, 100 |
| Country | Country code to localize the search; many country options such as United States (us), UK (gb), etc. |
| Language | Language code for the search results; many language options like English (en), Spanish (es), etc. |
| Autocorrect | Boolean flag to enable or disable autocorrect on the search query |
Output
The node outputs a JSON array containing the search results returned by the Google Shopping Search API. Each item in the output corresponds to a product or shopping result matching the query. The exact structure depends on the API response but typically includes product titles, descriptions, prices, URLs, and other metadata relevant to shopping.
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/shopping. - 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 or unsupported country/language codes might yield no or unexpected results.
- Network connectivity problems can cause HTTP request failures.
Error messages:
- Authentication errors indicate issues with the provided API key; verify and update credentials.
- Rate limit exceeded errors require waiting or upgrading the API plan.
- Validation errors on parameters suggest checking the input values for correctness.
Links and References
- Serper.dev Google Search API Documentation
- Google Shopping Search API 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.