fl16180 / gtrends-tools

Interface for retrieving data from Google Health Trends API
MIT License
3 stars 1 forks source link

HttpError 400 when requesting API #2

Open Cinch0408 opened 10 months ago

Cinch0408 commented 10 months ago

Hi I got the following message when running:

<HttpError 400 when requesting https://www.googleapis.com/trends/v1beta/timelinesForHealth?terms=diabetes&terms=exercise&time.startDate=2010-01-01&time.endDate=2020-12-31&timelineResolution=year&geoRestriction.dma=US&key=myAPIkey&alt=json returned "Request contains an invalid argument.". Details: "[{'message': 'Request contains an invalid argument.', 'domain': 'global', 'reason': 'badRequest'}]">

Do you know how to solve it?