Skip to content

BatteredBunny/roblox-account-value-api

Repository files navigation

Roblox account value api

Simple companion API for the web app

This is needed as browser itself can't do many of the requests to roblox so a proxy of sorts is needed.

Recommended usage

The recommended way to use this is to use the nixos module, though there is a docker image with docker-compose.yml as well.

Building docker image with nix

nix run github:BatteredBunny/roblox-account-value-api#docker.copyToDockerDaemon

Running as service on nixos

# flake.nix
inputs = {
    roblox-account-value-api.url = "github:BatteredBunny/roblox-account-value-api";
};
# configuration.nix
imports = [
    inputs.roblox-account-value-api.nixosModules.${builtins.currentSystem}.default
];

services.roblox-account-value-api = {
    enable = true;
	settings.port = 8080;

	# Optional parameters
    package = inputs.roblox-account-value-api.packages.${builtins.currentSystem}.default;
    settings.robux_per_euro = 60;
};

Building standalone program with nix

nix build github:BatteredBunny/roblox-account-value-api

API

Handy info for utilizing the api yourself

Account collectibles value API

GET https://roblox-account-value-api.sly.ee/api/collectibles-account-value?userid=XXX
{
	"total_robux": 0,
	"in_euro": 0,
	"collectibles": [
	    "name": "Collectibles",
	    "price": 0,
	    "id": 0,
	    "serialnumber": 0,
		"thumbnail": "https://tr.rbxcdn.com/"
	]
}

Can view inventory API

GET https://roblox-account-value-api.sly.ee/api/can-view-inventory?userid=XXX
true

Profile info API

GET https://roblox-account-value-api.sly.ee/api/profile-info?userid=XXX
{
    "username": "username",
    "displayname": "displayname",
    "avatar": "https://tr.rbxcdn.com/avatar"
}

Exchange Rate API

Used for calculating currency value

GET https://roblox-account-value-api.sly.ee/api/exchange-rate
{
    "robux_per_euro": 60
}