public-roadmap icon indicating copy to clipboard operation
public-roadmap copied to clipboard

[Google Trends API] Google trending now page had changed

Open Ganfeng0668 opened this issue 1 year ago • 4 comments

Snipaste_2024-08-07_09-47-32 Will you develop a new API to accommodate the new data?

Ganfeng0668 avatar Aug 07 '24 01:08 Ganfeng0668

Hi @Ganfeng0668, thanks for reporting the issue 👍 . We will look into this new changes. If there is any update, we will update it here.

tanys123 avatar Aug 07 '24 03:08 tanys123

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

githubfan21 avatar Sep 11 '24 12:09 githubfan21

Thank you for the feedback, @githubfan21 .

martin-serpapi avatar Sep 11 '24 14:09 martin-serpapi

Another user requested this:

Intercom

martin-serpapi avatar Sep 11 '24 14:09 martin-serpapi

Another request:

Front

alexbarron avatar Oct 09 '24 11:10 alexbarron

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.

Screenshot 2024-10-14 at 8 33 08 AM

tanys123 avatar Oct 14 '24 00:10 tanys123

Thank you @tanys123!

@Ganfeng0668, tagging you just to ensure you see this update. Please let us know if we can help with anything else.

alexbarron avatar Oct 14 '24 08:10 alexbarron

@tanys123 why i don't see the same crenshot you have this is what I see image

githubfan21 avatar Oct 16 '24 16:10 githubfan21

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

image image

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?

githubfan21 avatar Oct 16 '24 17:10 githubfan21

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: image

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.

marm123 avatar Oct 16 '24 18:10 marm123