HabboAPI Documentation

Furni Directions

Furniture Directions are used to set the direction of the furni. Some furniture got different directions and we return those with the Endpoint Response. Each direction comes with a direction image, to make it even easier for you. You can also use direction as a URL Parameter, when requesting a furni.


The example below, will get the furniture with the code club_sofa, in it's second direction.


https://api.habboapi.net/furni/club_sofa/image?direction=2

Most furniture got 2 or 4 directions, but there are some furni that got no directions at all. The amount of directions are returned with the request.


How do I use it?

It's pretty simple. You keep the returned direction_id's in a PHP Array, for example. Then you use Javascript or jQuery, to update the element url with the provided directions_id's, on a click event.


You can browse Google for examples, make it yourself or check this Stackoverflow question, that provide at fully working example: Shuffle through an Array on button click.




Next: Furniture Colors