Answer the question
In order to leave comments, you need to log in
Twitter API - search result for "top tweets" hashtag for twitter widget?
I want to put a twitter widget on a site that displays tweets for a given hashtag.
But not all tweets (realtime), but only popular ones. This means this:
When using twitter widgets (both official and third-party), ALL tweets are always shown in the hashtag search. It was not possible to achieve results from widgets similar to the all tab in the search on Twitter itself.
Tried the official widget, a few 3rd party widgets, and manual Twitter API call options.
1.
In the official Twitter widget , this parameter is not available in the settings.
However, I googled this toptweets parameter: features: { toptweets: true }
With this parameter, the query did not return any result.
Information about the existence of this parameter was taken from here .
2.
In a third-party widget, I substituted the &result_type=popular parameter in the URL of the call , but I again received an empty response for my searches. The search terms: #twitter, #google each returned only one tweet, which led me to believe that this option was showing very, very, very popular tweets, and not the ones in the all tab of a regular twitter search. Information about this parameter was taken from the official documentation of the Twitter API - GET search
In total, a simple and logical task at first glance: to put a feed of high-quality tweets on a given topic on the site has not yet been solved. I don't want to show a large stream of frequently updated and low-quality tweets.
I ask for help from those who have good experience with the Twitter API.
Maybe I don’t know something (didn’t catch up) or is it just impossible?
Thank you!
Answer the question
In order to leave comments, you need to log in
Use the Twitter REST API search/tweets .
In your case, the request will look like this:
(will return 10 tweets)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question