Twitter query result returns only 15 tweets
NickName:emily Ask DateTime:2013-12-31T10:13:28

Twitter query result returns only 15 tweets

I'm using the twitter api in java to query tweets containing certain hashtags.

Example:

Query query = new Query("%23superbowl since:2013-12-21");
QueryResult result;
result = twitter.search(query);
List<Status> tweets = result.getTweets();

Array size is only 15. How do I change the max number of tweets returned?

Copyright Notice:Content Author:「emily」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/20850712/twitter-query-result-returns-only-15-tweets

Answers
dhamibirendra 2013-12-31T02:19:00

You can set count in your query as:\n\nquery.setCount(100);\n\n\nBut remember, as per Twitter4j doc it allows max up to 100 only. You can check it here",


More about “Twitter query result returns only 15 tweets” related questions

Twitter query result returns only 15 tweets

I'm using the twitter api in java to query tweets containing certain hashtags. Example: Query query = new Query("%23superbowl since:2013-12-21"); QueryResult result; result = twitter.search(quer...

Show Detail

why does tweepy api.search only returns maximum of 15 tweets per page when using result_type="popular"?

The following code only returns 15 tweets, although count has been set to 100. (I replaced my desired hashtag with #hashtag.) tweets = api.search(&quot;#hashtag&quot;, count = 100, tweet_mode=&quot;

Show Detail

Search for tweets with pics/media ONLY using Twitter4j

I am trying to find a way to search for tweets with a specific hashtag AND tweets that only have pictures/media. Searching for a hashtag is working: Step #1 Twitter twitter = new TwitterFactory(cb.

Show Detail

Twitter search api always return 15 tweets

When I call the twitter search API, to search on tweets with a certain hashtag, it always returns 15 tweets, even though I set the count to five. $.ajax({ url:'http://search.twitter.com/...

Show Detail

Twitter Search api - Tweets containing url are not returned in search result

I am using twitter rest api for reading user's twitter feed and searching tweets for specific hashtags. But twitter search api do not return tweets containing url in search result. E.g. I have 2 t...

Show Detail

Twitter: Number of tweets OR get more tweets

I would like to know how can I get all tweets from a certain hash tag? I am currently using the following code: xhr.open("GET","http://search.twitter.com/search.json?q=%23PrayForJapan"); This...

Show Detail

Tweepy returns only 76 tweets

I am trying to gather movie reviews from Twitter. However, I get only 76 tweets. I tried to except tweeterror but that doesn't help. Here is my code: import tweepy import time import cPickle as pi...

Show Detail

Twitter gem search only returns tweets from the past week

I'm trying to get tweets containing a certain hashtag with the Twitter.search("#sometag"), however this only returns tweets from the past 7 days. Anyone know how I can get at least 20 tweets? I've...

Show Detail

Why does the Twitter API search endpoint only show a max of 15 results when sorting by popular tweets?

When using the search endpoint, I am only getting a max of 15 results, no matter how popular of a search query I use. Setting count to 100 does not make a difference, however it does when sorting b...

Show Detail

Crawling Twitter API for specific tweets

I am trying to crawl twitter for specific keywords, which I have made into the array keywords = ["art", "railway", "neck"] I am trying to search for these words in a specific location, which I have

Show Detail