Answer the question
In order to leave comments, you need to log in
How to get two random (real-life) Github user logins?
Good afternoon!
I'm making an app to compare two random Github users based on their account data. I use Retrofit and github API.
Tell me how to get two random existing logins?
Answer the question
In order to leave comments, you need to log in
https://developer.github.com/v3/users/#get-all-users
pull a random page (30 users are displayed by default) and randomly select two users from it.
or pull 2 random pages and take a user from each.
or, for example:
https://api.github.com/users?since=234566&per_page=1
https://api.github.com/users?since=987654&per_page=1
to determine the
upper bound since experimentally
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question