RestAPI commands

The Lithium framework that the message boards runs on uses an API that makes it possible to see otherwise hidden information.

to use a RestAPI command, write or paste "community.lego.com" into your browser and paste the command in front of it like this "community.lego.com/restapi(and the rest of the command)". here is an example URL for seeing a user`s like count: community.lego.com/restapi/vc/users/login/jonencloud/kudos/received/count

If the command contains "(username)" replace it with the name of the user you are trying to call information on

In the case of error 101, you entered an invalid username. Check the username for typos, you might get this error if the user in question has been deleted or banned.

In the case of error 303 you may need to be logged in to the LMB`s to use the command, use the same browser for RestAPI calls.

Most stats are considered private and can only be seen if the command is executed in a browser where that user is logged on. for instance, online time can only be viewed by the user in question. Trying to call private stats on another user results in error 303 with the message "user does not have the following permission(s) at lego: [ allow_manage_users ]"

Regular users have a very limited set of permissions and thus its limited how many commands they can use(they cannot use the "change username" command for instance). In addition, many features are incorrectly setup due to the child-friendly nature of the LMB`s like social media features. Be aware that the LEGO Message Board admins can disable the RestAPI completely without warning.

List of useful commands
See the likes count for any user: /restapi/vc/users/login/(username)/kudos/received/count

See the total online time for the current user: /restapi/vc/users/login/(username)/online/minutes/count

Check the post count for any user: /restapi/vc/users/login/(username)/posts/count

See the amount of logins performed by the current user: /restapi/vc/users/login/(username)/logins/count

See ranks based on Rank ID: /restapi/vc/rankings/id/(id)

''replace "(id)" with the number of the ID you want to see. See Rank ID`s for more info''

See total post views: /restapi/vc/users/login/(username)/views/posts/style/all/count

See profile info and settings on the current user: /restapi/vc/authentication/sessions/current/user

See polls and their results: /restapi/vc/polls/id/x

''replace "x" with the number of the poll you want to see. only even numbers are use, oldest polls has the lowest numbers starting with 2. increment with 2 to see the next poll. e.g 2,4,6,8-. you might occasionally see german polls. ''