Identify bot-generated tweets



I’m using the Twitter Streaming API to fetch tweets from Twitter. I want to determine if the tweet returned in the JSON format, was tweeted by a user or some bot?

Link to the sample JSON returned by the Twitter Streaming API.


You could look into the source field of the Tweet to see what client or app it was posted by - I don’t know any other way to filter out these kinds of Tweets though.


Thanks for the reply. Couple of questions -

  1. What are the list of distinct values for the source field?
  2. Do bot generated tweets have any specific source value?


The source field is based on the application name that developers get to configure in their app settings, so there’s no definitive list of all of the available values as it would be very large! You’d have to know (or guess at) the names of bot apps.