Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/batteredbunny/roblox-account-value-api

Roblox account value API
https://github.com/batteredbunny/roblox-account-value-api

api collectibles roblox

Last synced: 5 days ago
JSON representation

Roblox account value API

Awesome Lists containing this project

README

        

Roblox account value api

## Simple companion API for the [web app](https://roblox-account-value.sly.ee/)

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
```nix
# flake.nix
inputs = {
roblox-account-value-api.url = "github:BatteredBunny/roblox-account-value-api";
};
```

```nix
# 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;
};
```

# 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
}
```