Search tweets using location parameter in REST API


how to search tweets based location parameter in REST API?
eg. i will get tweet from specific city


Firstly - note that very few users choose to geotag their Tweets. This is an opt-in operation and overall around 1-2% of Tweets carry geo information.

Beyond that, the Search API is documented here and you’ll want the geocode parameter.

Hope that helps.


is it different from streaming_api that can take tweets based on location?


Yes, the streaming API is realtime with no look back, and requires an active connection; the search API requires you to poll the service (and has a 7 day history limit).


what we can search tweets based on user location in profil user at the time user registration in twitter firstly?