[Google Trends API] Google trending now page had changed
Will you develop a new API to accommodate the new data?
Hi @Ganfeng0668, thanks for reporting the issue 👍 . We will look into this new changes. If there is any update, we will update it here.
please make sure that this new way doesn't disable what's working now. I believe Google will slowly block other ways of getting trends so it is important to be able to crawl this
Thank you for the feedback, @githubfan21 .
We have made an update to Google Trends Trending Now API. It's now parsing the latest layout from Google (Documentation). It is backward compatible, meaning your existing code that request daily/realtime would still work.
Thank you @tanys123!
@Ganfeng0668, tagging you just to ensure you see this update. Please let us know if we can help with anything else.
@tanys123 why i don't see the same crenshot you have
this is what I see
can you please include the value "status":active if active label appear on the trend
also can you support the parameter status to only return active trends
https://trends.google.com/trending?geo=US&hours=4&status=active
Q: if i retreive data from the timeseries api call "serpapi_google_trends_link": "https://serpapi.com/search.json?data_type=TIMESERIES&date=now+4-H&engine=google_trends&geo=US&hl=en&q=north+korean+troops+deserting&tz=420", is it a second api call?
Hi @githubfan21, please find answers to your questions below:
@tanys123 why i don't see the same crenshot you have
We support two different response types, and if you'd like to see the new one, you should remove the frequency parameter:
This link should work: Playground
can you please include the value "status":active if active label appear on the trend
I've opened a separate thread to scrape this. You can see it here: https://github.com/serpapi/public-roadmap/issues/2038
also can you support the parameter status to only return active trends
I've opened another thread for this feature request: https://github.com/serpapi/public-roadmap/issues/2039
Q: if i retreive data from the timeseries api call "serpapi_google_trends_link": "https://serpapi.com/search.json?data_type=TIMESERIES&date=now+4-H&engine=google_trends&geo=US&hl=en&q=north+korean+troops+deserting&tz=420", is it a second api call?
Yes, that is correct. Since you'll be calling different API (Google Trends, not Google Trends Trending Now) with different parameters, it'll cost you additional search credit. Please make sure to also append your API Key to the GET request if you'd like to use the serpapi_google_trends_link.