Getting twitterID from the Username


Hi All,

We are on the way to developing an application to extract traffic information using tweets. For this we are following a particular user(Rather a crowdsourced timeline). We are using Streaming API using twitter4j libraryfor this. In order to follow a particular user we need their twitterIDs to be inserted in the filter.

Is there anyway to convert between twitter name to twitter ID?


You can use the REST API for this - users/show.json and pass in the screen_name parameter, then parse the response to get the ID.