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 news article searches based on user queries. It is useful for automating the retrieval of current news articles relevant to specific topics, regions, or languages. For example, a user can search for the latest news about "electric vehicles" in the United States or get news headlines in French from France.
Common scenarios include:
- Monitoring news trends for market research.
- Aggregating news content for newsletters or dashboards.
- Filtering news by country and language for localized insights.
Properties
| Name | Meaning |
|---|---|
| Page | Page number for paginated results; controls which page of results to retrieve. |
| Query | The search query string specifying what news to find; this is required. |
| Results | Number of news results to return; options are 10, 20, 40, 60, 80, or 100. |
| Country | Country code to localize the search results; e.g., "us" for United States, "fr" for France, etc. |
| Language | Language code to specify the language of the news results; e.g., "en" for English, "fr" for French. |
| Autocorrect | Boolean flag to enable or disable autocorrect on the search query. |
Output
The node outputs an array of JSON objects representing news articles matching the search criteria. Each item corresponds to one news result returned by the API. The exact structure depends on the API response but typically includes fields such as title, link, snippet, source, and publication date.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for the Serper.dev Google Search API.
- The node uses HTTP POST requests to the Serper.dev endpoints.
- No additional environment variables are needed beyond the API key credential configured in n8n.
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 no results or unexpected results.
- Empty or invalid query strings will cause the API to reject the request.
Error messages:
- Authentication errors: Check that the API key credential is correctly set up.
- Network or timeout errors: Verify network connectivity and API service status.
- API error messages returned in the output JSON under an
errorfield if "Continue On Fail" is enabled.
Links and References
- Serper.dev Google Search API Documentation
- Google Search API Concepts (for general understanding)
This summary is based on static analysis of the node's source code and provided property definitions.