Is there any API that I can use to rank search terms according to their popularity? An official Google API was announced to be released, however there isn't any. Any suggestions on what I may use alternatively?
-
1Have you seen "Simply Measure"?(https://www.bestvendor.com/apps/social-media-analytics/simply-measured) – joashp Jun 13 '13 at 06:06
4 Answers
There are some open source API's available to Google trends.
In node: https://www.npmjs.com/package/google-trends-api
In Python: https://github.com/GeneralMills/pytrends
In Java: https://github.com/elibus/j-google-trends-api
Java client side: https://github.com/elibus/j-google-trends-client

- 1
- 1

- 532
- 4
- 13
-
10It's not really fair to describe them as API's since Google don't officially offer API's. What these products actually are are abstractions of the web interface that the user normally gets, with some filters to remove the UI. It's not an API - just another way to collect the Google Trends page content – 1owk3y Mar 01 '17 at 04:38
-
-
1Technically they are API's, but they are not OFFICIAL Google API's, and they're certainly not supported by Google. These implementations are all illegally scraping Google Trends page results. If Google wanted, they could break all of these implementations instantly just by changing their Trends page markup. That's not very "API" like. I certainly wouldn't be treating these products like conventional API's for that reason. – 1owk3y Apr 12 '19 at 02:31
-
2@1owk3y "_These implementations are all illegally scraping Google Trends page results_," that's not right. Scraping Google is not a violation of DMCA or CFAA, however, you are breaking Google's TOS. But the violation of Google's TOS not a violation of the laws. – Yagiz Degirmenci Dec 16 '20 at 14:26
For Golang groovili/gogtrends can be useful. It's an unofficial API wrapper which works with Google Trends. Gives the ability to get trending searches and compare search items popularity over time and by region.

- 51
- 4
-
A link to a solution is welcome, but please ensure your answer is useful without it: [add context around the link](https://meta.stackexchange.com/a/8259/394800) so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. [Answers that are little more than a link may be deleted.](https://stackoverflow.com/help/deleted-answers) – Dima Kozhevin Dec 30 '18 at 15:27
There is a php api for google trends that I've been using for almost two years without problems: http://codingfocus.com/google-trends-api
It allows to get graph, region and related queries data.

- 2,759
- 2
- 22
- 33
You might check out the SimilarWeb API which provides the proportion of search traffic to a given domain over time. This metric is quite similar to what Google Trends provides.
https://developer.similarweb.com/traffic_intelligence
Full disclosure, I work at SimilarWeb.

- 43
- 2
-
1The link / page does not exist anymore / dead... It says: "It appears we're not on the same page Sorry, but the page you were trying to view does not exist." – KBill Oct 14 '19 at 08:13