First time here? Check out the FAQ!
1

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

  • retag add tags

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

eugenenarciso's avatar
43
eugenenarciso
asked 2014-03-24 17:29:44 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Evgeny's avatar
13.2k
Evgeny
answered 2014-03-24 19:25:31 -0500
edit flag offensive 0 remove flag delete link

Comments

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 -0500) edit
slelievre's avatar slelievre (2016-08-16 11:25:20 -0500) edit
add a comment see more comments