HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
pat310
google-trends-api
JavaScript2017–2021
pat310 / google-trends-api

google-trends-api

An API layer on top of google trends

2Distinct people
2Mentions
0Explicit recommenders
975GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

An API layer on top of google trends

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year2 dated mentions

Observed mentions: 2017-08-26 02:58:23 UTC to 2021-05-15 12:19:47 UTC.

012017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20172018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC110
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC000
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101

What Hacker News says

2 sources
Hi HN! Google Trends is underrated. This huge search engine is somewhat a projection of what the public has on their minds at a given time. However, Trends have no API and it's not easy enough to go check trends regularly. You have to remind yourself to go to Trends website, choose your country etc. Twitter is the perfect platform to have this. I've made a network of Twitter bots for sharing the Trends of each country 3 times a day. It works for 13+ countries (check Following) right now. The bot first posts a generated image of 20 trending topics and headlines. Then lists the trending topics, and if the account has enough followers it posts one related news link for each topic. I had to dispose several accounts as they got marked as spam, and once that happens there is no going back... That's why I first start with an image and the list o
Read the rest
f trends as tweets first, then enable links once there's a decent follower base (around +100). It was difficult but interesting in hindsight trying to escape Twitter's spam filter. I needed an SMS number for each account. Thankfully there are services giving you burner SMS numbers starting $0.05 . Just need to get lucky they won't ask the number twice. Technically it's a simple node.js script running on Google Cloud Functions. The function is triggered every hour and it checks the current time of countries. If it matches it retrieves the trends using https://github.com/pat310/google-trends-api package, generates the trends image and posts tweets one by one. The setup is fragile. The google-trends-api package seems to use an academic API for Trends and can be shut down any time. Also Twitter is strict about bots (forbidden according to terms) and might shut the accounts down anytime. Anyways, it was fun to build it and now it's quite easy to kickstart a Twitter bot Looking forward for your comments and feedbacks! Also let me know if you have any idea how I can spread it more.
In Show HN: 24Trends – Daily Google trends of your country on Twitter

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.