Reputation: 1886
I'm trying to figure out if its possible to tell the github api to return me the top 10 users by part of username for the sake of autocomplete feature. I am trying to use the search api:
I tried ?top=10 and ?limit=10 and ?page=0&per_page=10, but they seem to fail to work. Is there any way to do this or i'll just have to filter 10 of 100 always?
Upvotes: 2
Views: 308
Reputation: 1886
I didn't find a way to do it so I reached out to GitHub for help. It seems there is no way to limit it in the request for legacy APIs and the advice is to limit the list at the client.
Upvotes: 1