Filter twitter user timeline to fetch only those tweets which are replies or refer to another user?


I’m trying to fetch tweets from a user’s timeline ( only when it is a reply to another tweet or user.

If this is the case, in the returned json object, “in_reply_to_status_id_str” and “in_reply_to_user_id” will not be null. However, this filtering is done on the client side, is there any way to pass this as a filter option to the server-side API call ?


There’s no way to filter to just mentions and replies directly with the API. You will have to post-filter the result once you receive it – whether you’re doing that on your own server or client-side is your choice.