Rust
API pentru [US] RustyBuckets [2.5x] [Solo/Duo/Trio]
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11189231json
{
"response": {
"fps": 237,
"fps_avg": 238,
"entities_count": 24512,
"world_seed": 835066761,
"world_size": 2000,
"steam_id": "90284845581116443",
"domain": null,
"id": 11189231,
"ip": "192.99.75.116",
"port": 29159,
"query": 29160,
"color": 0,
"city": "Beauharnois",
"description": "RustyBuckets Server, - 2.5x Gather Rates, - 50% Upkeep, - 2x Loot, - Faster Smelting, - Faster Crafting, - Faster Recycling, - Increased Stack Size, - Minis Spawn on Roads, - Clans, - BP Share, - Solo/Duo/Trio Enforced, - Skins\r\nMap Wipe Tuesdays at 5:30 CST (Keep BP's)",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777656150,
"score": 0,
"last_online": 1777006818,
"icon": null,
"name": "[US] RustyBuckets [2.5x] [Solo/Duo/Trio]",
"connect": "192.99.75.116:29159",
"request": "192.99.75.116:29160",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772699038,
"last_update": 1777656150,
"banned": false,
"wipe": 1776517367,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8039,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11189231");
$data = json_decode($json, true);
var_dump($data);