Housing API Draft #628
Replies: 2 comments 2 replies
-
There have been internal designs for a basic Housing API for a while, but with our current overall roadmap, there is no ETA for when, or even if, anything will be released. The overall value is hard to determine, but looking at the only other bespoke game endpoints (skyblock) and the changes required, it's going to be very low in comparison to the work involved. In general, I think it's a little rude to say it's "stupid" for the endpoints to not exist, or to say it's "pathetic" that a leaderboard isn't included (which is more than likely a bug). This for sure isn't the correct way to go about attempting to have changes implemented to the API. I would also recommend taking a look at existing endpoints, as your current proposal goes against our current structure, especially in regards to putting the endpoints under resources while offering dynamic content. |
Beta Was this translation helpful? Give feedback.
-
Hey! So a few features regarding Housing were added to the API this week! Are the way these are being used right now final? I'd be down to work on implementing them into the examples! |
Beta Was this translation helpful? Give feedback.
-
Edit: This thread was originally meant for the forums, hence the sassyness. Sadly, the post can't be made due to some complicated glitchyness with my account status preventing me from posting for a bit. I reposted it here with no second look but that's all clarified down below. The rude parts are withdrawn and I don't stand by them anymore! ❤️
Housing API Draft
Hi all, I come at you again with a proper proposal for a Housing API! I understand because of Housing being a very old gameplay there may be tech debt in adding these endpoints, but some of these are just stupid for not existing.
Cookies
House Metadata
This is what I'll be referring to as
HouseMeta
in this thread. This is the data you can access about a house.House Browser
Spicy custom stuff coming up! All bullet points are parameters you can fill in.
/resources/housing/browser
channel
GUESTS
, but can be things like tags asRP
(roleplay) orM
(minigame).player
house
map_id
of a house.Returns
HouseMeta[]
Advanced House Data
Okay, a little more spicy. This should probably be an option in House Settings to expose, perhaps with the new API system it could be locked so you can whitelist certain API keys to access data? Who knows!?
Context: Stats are Housing's variable system.
/resources/housing/stats
house
map_id
of the houseplayer
global
true
it will not search for a player but instead the globally stored stats.team
Returns key-value object of that player's stats like below.
Conclusion
Housing is the 3rd biggest gamemode, but in terms of API it's severely lacking. I hope this post can inspire the devs to take a look into this since it would be a huge upgrade if added.
If the admins are wanting to work on this but want to sit down with developers, fear not, because the HousingDevs group consists of the top Housing modders (including creators of sites & mods like HousingEditor!) and we'd love to sit down and have a chat!
Beta Was this translation helpful? Give feedback.
All reactions