Hi all, I want to know more about how to detect location changes for a user list. Is it possible to get this info with geo and place queries or Is there any way to do that for a user list?
I have a user list and I want to detect location changes of each user on that list.
Can someone please help me with this?
Thank you!
The API will always return the latest version of the objects - so if a user changed their profile, you will only be able to retrieve the current version - unless you have an archive that you got earlier and saved it yourself.
The location field in the user is not a location - it’s a free text field User object | Docs | Twitter Developer Platform
You can try to track specific matches for location with bio_location: Filtered stream - How to build a rule | Docs | Twitter Developer Platform but this is a live stream that will not notify you if the user changed anything, it will either match or not match tweets - but i guess you could rig this to detect changes based on keeping track of users that appear or disappear from the stream over time. This is maybe a poor approach because, again - location is a free text field.
Place objects Place objects | Docs | Twitter Developer Platform in tweets can be deleted but not altered once posted. So you could use place: queries in search to infer a general location for a user over time, if they have enough tweets with locations remaining.
The best thing to do is to crawl the tweets of each of your users, and see if they have any geo objects attached to their tweets.