Easy data retrieval from the Google Trends API, with no dependencies.
$ dotnet add package GoogleTrendsApiThis is a library for receiving data from trends into the .net environment, easily, and without dependencies!
You simply call the function like this:
Api.GetInterestOverTime(new[] { "react", "angular" });
And also possible with parameters:
Api.FetchData(new[] { "react", "angular" }, "US", DateOptions.LastThreeMonths, GroupOptions.youtube, 14);
Get all trends, divided by regions:
Api.GetInterestByRegion(new string[] { "Vue" }, DateOptions.LastThreeMonths, "CITY");
You can set the resolution as one of the following options: "DMA", "CITY", "REGION", and "COUNTRY".
Get all trending searches:
Api.GetAllTrendingSearches();
Get trending searches by country (israel, in this example):
Api.GetTrendingSearches("israel");
Get all Today searches, by country:
Api.GetTodaySearches("US");
Get all Related queries. You can enter a query, filter by category, time, country, and group for search ('images', 'news', etc.). For example:
Api.GetRelatedQueries(new string[] { "angular" }, "US", DateOptions.LastThreeMonths, GroupOptions.youtube ,3);
Also, you can also not enter any query, and just search according to the other categories:
Api.GetRelatedQueries(new string[] { "" }, "US", DateOptions.LastThreeMonths);
Get all related topics of query. You can enter a query, filter by parameters. For example:
Api.GetRelatedTopics(new string[] { "angular" }, "US", DateOptions.LastThreeMonths, GroupOptions.youtube ,14);
For get list of all categories, use:
Api.GetCategories();
For get list of all suggestions, use:
Api.GetSuggestions("angula");