Rust
API for CYBR.TO | My Garry's Mod Server
JSON for programs, websites and more
text
https://api.gamemonitoring.net/servers/11159079json
{
"response": {
"fps": 240,
"fps_avg": 239,
"entities_count": 220,
"world_seed": 0,
"world_size": 1000,
"steam_id": "90285142241510413",
"domain": null,
"id": 11159079,
"ip": "185.249.75.208",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Linz",
"description": "\nPrison Life: Rust Edition\r\n Live as a prisoner and escape, or become a guard and defend the prison!\r\n Riots, lockdowns, stealth escapes, coordinated patrols. Fair RP rules, active admins. Join now - break out or lock it down.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777511010,
"score": 0,
"last_online": 1777505421,
"icon": null,
"name": "CYBR.TO | My Garry's Mod Server",
"connect": "185.249.75.208:28015",
"request": "185.249.75.208:28017",
"map": "Custom Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "AT",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772228122,
"last_update": 1777511010,
"banned": false,
"wipe": 1777313416,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8078,
"language": "de",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Code examples
php
<?php
$json = file_get_contents("https://api.gamemonitoring.net/servers/11159079");
$data = json_decode($json, true);
var_dump($data);