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.
The recommended way to use this is to use the nixos module, though there is a docker image with docker-compose.yml as well.
nix run github:BatteredBunny/roblox-account-value-api#docker.copyToDockerDaemon
# flake.nix
inputs = {
roblox-account-value-api.url = "github:BatteredBunny/roblox-account-value-api";
};
# configuration.nix
imports = [
inputs.roblox-account-value-api.nixosModules.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;
};
nix build github:BatteredBunny/roblox-account-value-api
Handy info for utilizing the api yourself
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/"
]
}
GET https://roblox-account-value-api.sly.ee/api/can-view-inventory?userid=XXX
true
GET https://roblox-account-value-api.sly.ee/api/profile-info?userid=XXX
{
"username": "username",
"displayname": "displayname",
"avatar": "https://tr.rbxcdn.com/avatar"
}
Used for calculating currency value
GET https://roblox-account-value-api.sly.ee/api/exchange-rate
{
"robux_per_euro": 60
}