I want to know if I can search Stack Overflow users by their country. For example, I had, like, to see all users who live in the UK.

How do I do this?


2 Answers 2


You can use SEDE to find the users which have a specific Location set in their profile (note that this only uses public data, and doesn't use gathered information on usage locations).

You could try this query for example. If this doesn't meet your exact requirements, you could fork it and create your own.

There is no way to search for users' locations using the site directly and I think it is against the philosophy of SE to do so. It would emphasize too much the user's origin, while that doesn't matter for the Q/A site.

  • 1
    Right. The location is user inputted. So some users could be "lying" about their location. Many users don't have any location set. So there is no way for you to see all users who live in a specific country.
    Apr 17, 2015 at 11:44

I wrote a SEDE query here that you might find helpful. As said in a comment, the data is input by the users, and may not be accurate, and some users (myself included) do not have location data set.

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