How to exclude the retweets from being considered in the count?

restapi
api

#1

Trying to get recent tweets from a user timeline w/ count = 3 & rts = false. I’m only getting 1 tweet back because rts are considered as a tweet.

How do you make it so that it totally exclude the retweets from counting ?

I have this set in the twitter API Console Tool :

?count=3&include_rts=false&user_id=0000000&screen_name=microsoft


#2

Unfortunately that’s not possible, as one filter has precedence over the other. Also, you should not specify both user_id and screen_name on that call - just one will work.


#3

Hi @Sohaeb,

I have a solution for you, this will definitely works

?count=3&q=helloworld%20exclude:retweets

and if you want to fetch only from some users then your query should be

?count=3&q=from:nrajsharma794%20OR%20from:sohaeb%20exclude:retweets