Reputation: 33
How do I get country codes of my Twitter followers using the Twitter API? Or is there any work around to get the same?
Upvotes: 1
Views: 1859
Reputation: 14324
From the documentation https://dev.twitter.com/docs/api/1/get/users/show
The response should have a location field, like
"location": "San Francisco, CA",
The data in there is free text, so people can type "London" or a lat/long or even nonsense.
Most people have some geo-data in there.
Upvotes: 1