HabboAPI Documentation

Request Clothing

If you want to make a list of the latest clothing added to Habbo, or a tool that displays clothing by line, you will need to make a Clothing Request. The following documentation shows you have to do that, wich URL Parameters you can use and wich Response Fields you will get back.


Note that all clothing added after 28-04-2017, will not have descriptions. Habbo has stopped useing Badge and Furni descriptions, on all hotels.


Another thing to note. Clothing items are made the same way as furniture items. That means that many of the Response Field names will be the same and do the same. In teory, the clothing are furniture, before you wear it.

URL Parameters


The following table shows request parameters you can use in a clothing API call.


Name Type Required Details
name

String

No

Wildcard search for clothing with that name.

description

String

No

Wildcard search for clothing with that description.

code

String

No

Wildcard search for clothing with that code.

habbo_furni_id

String

No

Wildcard search for clothing with a specific clothing id.

furni_line

String

No

Wildcard search for clothing within a specific clothing line.

new

String

No

If supplied, will only return new clothing.

for_sale

String

No

If supplied, will only return clothing for sale.

per_page

Integer
(Default: 50)

No

Paginates the result by value provided.

Response Fields


The following table shows response fields returned by the clothing API call.


Name Type Details
name

String

Return clothing name.

description

String

Return clothing description.

code

String

Return unik clothing code.

habbo_furni_id

String

Return specific clothing id.

furni_line

String

Return specific clothing line.

furni_line_name

String

Return custom clothing line name.

image

String

Return full URL to clothing image.

icon

String

Return full URL to clothing icon.

public_icon

String

Return full URL to clothing icon, hosted on Habbos server.

directions

Array

Return direction_id's and image of the direction.

new

Boolean

Return true or false, if the clothing is less then 24 hours old.

for_sale

Boolean

Return true or false, if the clothing is for sale.

discovered_at

String

Return date and time on the day we discovered it.

discovered_at_iso

String

Return iso timestamp on the day we discovered it.

total

String

Return total amount of clothing.

per_page

String

Return clothing shown per page.

prev_page_url

String

Return full url to previous clothing page.

next_page_url

String

Return full url to next clothing page.


We hope to bring much more features to the API, in the future.



Next: Clothing Directions


Get a simple list of Clothing

  • jQuery
  • PHP
// Make sure you include the official jQuery Library
// This is a simple example and return a list of 50 clothing
$(function(){

	// Get clothing from our API
	$.getJSON('https://api.habboapi.net/clothing?per_page=50', function(clothings){
		$.each(clothings.data, function(key, clothing){
			// Append clothing to div
			$('#clothing').append('<img src="' + clothing.icon + '" />');	
		});
	});
})
// JavaScript
// This is a simple example and will only give you a list of clothing
$api_url = 'https://api.habboapi.net/clothing?per_page=50';

// Get clothing from our API
$clothings = json_decode(file_get_contents($api_url), true); 
foreach($clothings['data'] as $clothing){
	// Echo out clothing
	echo '<img src="' . $clothing['icon'] . '" />'; 
}
Json API response example
{
	"current_page":1,
	"data":[
		{
			"name":"clothing_icecrown name",
			"code":"clothing_icecrown",
			"description":"clothing_icecrown desc",
			"habbo_furni_id":10944,
			"furni_line":"xmas2019",
			"furni_line_name":"xmas2019",
			"image":"https://api.socialhabbo.com/furni/clothing_icecrown/image",
			"icon":"https://api.socialhabbo.com/furni/clothing_icecrown/icon",
			"public_icon":"http://habboo-a.akamaihd.net/.../65312/clothing_icecrown_icon.png",
			"colors":[ ],
			"directions":[
				{
					"direction_id":0
				},
				{
					"direction_id":2
				},
			],
			"for_sale":false,
			"builders_club":false,
			"discovered_at":"2019-10-21 13:41:33",
			"discovered_at_iso":"2019-10-21T13:41:33+00:00",
			"new":false,
		}
	],
	"from":1,
	"last_page":494,
	"next_page_url":"https://api.habboapi.net/clothing?page=2",
	"path":"https://api.habboapi.net/clothing",
	"per_page":"50",
	"prev_page_url":null,
	"to":1,
	"total":494,
}
HTML Result Example