Vaulstein
Vaulstein

Reputation: 22051

Geolocalization user search: Twitter API

I am using the Twitter API to search for the users using the hashtag #developer and within Mumbai region.

Based on the information for the parameters to pass to get the required result, from the Documentation, the resulting search url is:

https://api.twitter.com/1.1/users/search.json?q=%23developers&geocode=19.298572,72.871817,1mi

However, the results of the users I receive are from Amsterdam,LA, prague and else where. How can I localize the results to only Mumbai area? What am I doing wrong?

Upvotes: 0

Views: 153

Answers (1)

Jonas
Jonas

Reputation: 4048

users/search does not accept a geocode parameter. See doc.

You can use search/tweets which does use geocode. See doc. This will return tweets, not users. You can extract the user's screen_name from the tweets.

Upvotes: 1

Related Questions