
Tyler B. answered 08/13/19
3 years using jQuery
Hello,
What you would need is the Twitter API. You'd have to:
- Create a Twitter developer account
- Get/setup some authentication keys in the developer dashboard
- Figure out which of the "endpoints" you need from the ones made available by Twitter in their API
- Make a GET request using jQuery to the Twitter endpoint you are using being sure to pass in the required information: authorization keys, and the search parameters. Search parameters will be something like the number of tweets you want, a time frame...etc
So for example:
let tweets = $.get('https://api.twitter.com/1.1/search/tweets.json?q=#hashtag')
#hashtag here would be which ever hashtag you are searching for, and of course you would need to include in this GET request the authorization key preferably in the headers.
See:
https://developer.twitter.com/en/docs/tweets/search/guides/standard-operators.html
https://developer.twitter.com/en/docs