HabboAPI Documentation

Request Lines

If you want to make your own Furniture archive or maybe a Marketplace on your Fansite, the Lines endpoint is the way to go. With that, you will get different information, like the name of the line, amount of furniture in the line, an line icon and data. At the time of writing this, there are over 250 different lines.


Note that some lines maybe are missing icons. Tweet us on twitter, and we will add them as fast as possible.


Below is the list of URL Parameters, that you get back from the lines endpoint.

URL Parameters


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


Name Type Required Details
per_page

Integer
(Default: 50)

No

Paginates the result by value provided.

Response Fields


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


Name Type Details
name

String

Return Line name.

code

String

Return unik Line code.

furni_count

Init

Return the amount of furni, in that Line.

icon

String

Return URL to the Line icon.

created_at

String

Return a date we found the line.

total

String

Return total amount of Lines.

per_page

String

Return Lines shown per page.

prev_page_url

String

Return full url to previous Lines page.

next_page_url

String

Return full url to next Lines page.


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



Next: Habbos Endpoint


Get a simple list of Furniture Lines

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

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

// Get Lines from our API
$lines = json_decode(file_get_contents($api_url), true); 
foreach($lines['data'] as $line){
	// Echo out Lines
	echo '<img src="' . $line['icon'] . '" />'; 
}
Json API response example
{
{
"current_page": 1,
"data": [
    {
		"name": "Club Shop",
		"code": "club_shop",
		"furni_count": 9,
		"icon": "https://api.habboapi.net/furnilines_img/club_shop_icon.png",
		"created_at": "2017-12-30 16:58:33"
	}
  ],
"from": 1,
"last_page": 6,
"next_page_url": "https://api.habboapi.net/furni/lines?page=2",
"path": "https://api.habboapi.net/furni/lines",
"per_page": 50,
"prev_page_url": null,
"to": 50,
"total": 256
}
HTML Result Example
Add-OnsAdvertisementAfricanAlhambraAlphabet BlocksAlps (2020)AmericanAncientsAnnaAntiqueArcticAreaArmy BootcampAsianAtticAutomobileAvatar EffectsBackgroundsBadge DisplayBaseBathroomBattle BanzaiBensalemBirdsBlack IcedBlack PuraBlingBonus RaresBooster BoxesBoutiqueBuilders ClubCandylandCarpetsCarsCelestialChill Modern StudioChocolatier ShopChristmas (2005-2007)Christmas (2009)Christmas (2010)Christmas (2011)Christmas (2012)Christmas (2013)Christmas (2014)Christmas (2015)Christmas (2016)Christmas (2017)Christmas (2020)Christmas (2020)Christmas Quest (2010)