2

I'm trying to find out if there is a way to run a query/complex search on the Stack Exchange API.

I need to find all users that have a reputation greater than 250 and are from a certain location. I made the query and it works fine in the Stack Exchange Data Explorer. Now I'm wondering if there is a way to get the response using a REST request (or to run the same query with a REST client).

2

2 Answers 2

3

SEDE doesn't have an API yet, and the Stack Exchange API does not offer a filter on location. I guess you could fetch all users (ordered by reputation, descending) and let your client do the filtering; you can retrieve 100 users per page, so (assuming you have a registered application with increased quota), you can do that for 100 × 10,000 = 1 million users per day. That should be enough ...

2
  • Thanks for the answer, do you know if there are any tutorials/guides where I can check how to set up the AUTH then to get the users , all I'm looking for a way to log in and get all the users, already took care of the rest P.s. this its the hardest task I got for a junior position Commented Oct 6, 2022 at 19:19
  • @AndrewGremus if it's a one of, you can also download the SEDE results as CSV and process that...
    – Glorfindel Mod
    Commented Oct 6, 2022 at 19:42
-1

There is no API as Glorfindel mentioned. The best way right now is to download the data for your respective websites from the Stack Exchange Data Dump and probably use it in your app.

This is the URL to the download page: https://archive.org/download/stackexchange/

You must log in to answer this question.

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