2

I want to get site users by their location but I don't see any method for that.
And it's not possible with a filter either.

Is there any way to get users based on location or is it not possible?

1

No, this is not possible with the API:

  1. Neither the API, nor the main sites, provides a way to search on location.
  2. You can't even brute-force it, by downloading every user either. Because:

    1. There are currently 4,972,549 users on Stack Overflow.
    2. You can download, at most, 1 million user records per day. (10,000 API quota times pagesize of 100.)

    You could brute-force smaller sites that have less than 1 million users, but I wouldn't recommend it.


You can search by location using SEDE. For example:

          Stack Overflow users who claim to reside in Bangladesh


Note that SEDE data may be up to 1 week old and there is no API for it.

  • Thanks for answer, i know about SEDE , but i wanted to get the user real time based on any location not a fixed one that's why i was looking for a method in se api but that's not possible right now :( – Nehal Hasnayeen Dec 17 '15 at 20:49
  • Keep in mind that Stack Overflow was explicitly founded NOT to be a social site and the owners and developers consistently stress that we should ignore users AMAP and concentrate on quality Q&A. ... For this reason, it is unlikely that any more user-search capabilities will be added. But, you can try making a feature request on Meta Stack Exchange. – Brock Adams Dec 17 '15 at 20:55
  • what is meant by AMAP ? – Nehal Hasnayeen Dec 17 '15 at 21:01
  • It's a common English acronym: "As much as possible" – Brock Adams Dec 17 '15 at 21:03

Not the answer you're looking for? Browse other questions tagged .