Google Trends icon

Google Trends

Retrieve Google Trends data using @alkalisummer/google-trends-js

Trending Articles

AI-generated

Overview

This node retrieves trending articles from Google Trends based on specific article keys. It is useful for scenarios where users want to fetch detailed trending article data related to daily trends, such as monitoring popular news topics or analyzing trending content for marketing or research purposes. For example, a user can input a JSON array of article keys obtained from daily trends and specify the number of articles to retrieve, and the node will return the relevant trending articles data.

Use Case Examples

  1. Input a JSON array of article keys like [[1, "en", "US"]] and set the article count to 5 to get the top 5 trending articles for those keys.
  2. Use the node to fetch trending articles for specific regions and languages by providing appropriate article keys.

Properties

Name Meaning
Article Keys JSON array of article keys from daily trends used to specify which trending articles to retrieve.
Article Count Number of articles to retrieve for the given article keys.

Output

JSON

  • operation - The operation performed, here it will be 'trendingArticles'.
  • data - The retrieved trending articles data from Google Trends for the specified article keys and count.

Dependencies

  • @alkalisummer/google-trends-js - a library to interact with Google Trends API

Troubleshooting

  • Invalid article keys format error: This occurs if the 'Article Keys' input is not a valid JSON array. Ensure the input is correctly formatted JSON.
  • Google Trends API errors: These may occur due to network issues, invalid parameters, or API limitations. Check the error message for details and verify input parameters.

Discussion