Ask Your Question

api/v1/users only showing the 1st 10 not all

asked 2014-03-24 17:29:44 -0600

eugenenarciso's avatar

the api/v1/users is only showing the 1st 10 users and their general information. The documentation has optional parameters however I'm can't seem to bring it up properly.

I'd be interested to extract username and karma points off the api. Hopefully someone has done this.

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-24 19:25:31 -0600

Evgeny's avatar

The users listing is paginated and the necessary page is retrieved by the "page" parameter.

Currently batches of 10 are hardcoded, but this can be changed to more, please make a pull request with the patch if you would like to implement this.

edit flag offensive delete link more


Hey Evgeny, Thanks for the pointer, just to confirm, it's basically /api/v1/users/?page=x? That seems to work, it's just the trailing / after the users is throwing me off I was just expecting users?page=x (i could be wrong here). Either way, This may or may not work for our implementation we'll see. The other api I might work on is 'api/v1/users/$username' that returns general information instead of /$user_id. The information is useful for us integrating some stats into our other internal systems. Thanks

eugenenarciso's avatar eugenenarciso  ( 2014-03-25 13:17:49 -0600 )edit
slelievre's avatar slelievre  ( 2016-08-16 11:25:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-03-24 17:29:44 -0600

Seen: 205 times

Last updated: Mar 24 '14