Actions7
- Data API Actions
- Web Scraping Actions
Overview
The node "Dumpling AI" provides an interface to interact with Dumpling AI's various APIs, including data retrieval, web scraping, document conversion, and AI-powered services. Specifically, the Search News operation under the Data API resource allows users to query Google News for articles matching a search term, optionally filtered by country, location, language, date range, and paginated results.
This node is beneficial when you want to automate news monitoring, gather current events related to specific topics, or integrate news data into workflows without manual searching. For example, a marketing team could use it to track mentions of their brand in recent news, or a researcher could collect articles about climate change from different regions and time frames.
Properties
| Name | Meaning |
|---|---|
| Query | The search query string to find relevant news articles (e.g., "climate change"). |
| Country | Optional two-letter country code to bias search results geographically (e.g., "US" for USA). |
| Location | Optional specific location name to focus the search more narrowly (e.g., "New York, NY"). |
| Language | Language code to filter news articles by language (default is English "en"). |
| Date Range | Filter news articles by publication date. Options: Any Time, Past Hour, Past Day, Past Week, Past Month, Past Year. |
| Page | Page number for paginated results, starting at 1. |
Output
The output JSON contains the search results from Google News based on the provided query and filters. Each item typically includes details such as article title, snippet, source, publication date, and URL. This structured data can be used downstream in workflows for analysis, notifications, or further processing.
If the node supports binary data output (not explicitly shown here), it would likely relate to downloading article content or media, but this is not indicated in the provided code or properties.
Dependencies
- Requires an active API key credential for Dumpling AI to authenticate requests.
- The node sends HTTP requests to
https://app.dumplingai.com/api/v1. - No additional environment variables are specified beyond the API key credential.
Troubleshooting
- Common issues:
- Missing or invalid API key will cause authentication errors.
- Providing unsupported or incorrect country/language codes may result in empty or unexpected results.
- Pagination values less than 1 might be rejected or defaulted to page 1.
- Error messages:
- Authentication failures usually indicate problems with the API key; verify the credential setup.
- Rate limiting or quota exceeded errors suggest too many requests; consider adding delays or upgrading the plan.
- Invalid parameter errors mean some input property value does not conform to expected formats; check the property descriptions.
Links and References
- Dumpling AI Official Website
- Google News Search Documentation
- n8n Documentation on Creating Custom Nodes