Louie1505 / trendsdotnet

Unofficial C# wrapper around the Google Trends API (https://trends.google.com/)
MIT License
1 stars 0 forks source link

Bad Response when Requesting Non-Year Timeframe #2

Open Blaze147 opened 3 years ago

Blaze147 commented 3 years ago

Hello, I have attempted many different formatting adjustments to the parameters on the "Client.GetInterestOverTime()" method, but I have not been successful at requesting data on a timeframe other than the default 1 year(weekly) timeframe. I am curious what the trick is to get this to work, as it seems the API may be very picky with what start and end dates are provided. For example, the following request fails:

var a = await c.GetInterestOverTime(lst, DateTime.Now.AddMonths(-3), DateTime.Now);

Hoping you can provide the secret! Thanks, James K