Rust
API pentru Castaway - 2X No Decay PVE/PVP
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/6367446json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 100264,
"world_seed": 1337,
"world_size": 4250,
"steam_id": "90285606987912213",
"domain": null,
"id": 6367446,
"ip": "174.176.147.7",
"port": 28119,
"query": 28120,
"color": 0,
"city": "Wellington",
"description": "Welcome to Castaway Kings, where epic adventures await in a 2x PvE/PvP Rust server designed for high-octane action and survival! Experience Rust like never before with boosted rates, thrilling combat, and a dynamic environment that challenges both your strategic and combat skills.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778284983,
"score": 0,
"last_online": 1778533946,
"icon": null,
"name": "Castaway - 2X No Decay PVE/PVP",
"connect": "174.176.147.7:28119",
"request": "174.176.147.7:28120",
"map": "BuildersOasis",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1729724242,
"last_update": 1778533946,
"banned": false,
"wipe": 1778181945,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3128,
"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/6367446");
$data = json_decode($json, true);
var_dump($data);