API pentru Rusttopia | Vanilla | Solo/Duo/Trio | NA | Weekly 05.26
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"fps": 61,
"fps_avg": 60,
"entities_count": 88220,
"world_seed": 183764796,
"world_size": 4000,
"steam_id": "90286601499778072",
"domain": null,
"id": 10957795,
"ip": "184.105.7.88",
"port": 28015,
"query": 28017,
"color": 0,
"city": "San Jose",
"description": "\nBienvenidos a Rusttopia/Welcome to Rusttopia\r\n\r\nRules in Spanish\r\nNo se permite ningun tipo de acoso a los jugadores como Homofobicos, sexista, racismo,\r\n\r\nEsta totalmente prohivido el uso de Hack, Script, etc etc todo con lleva a un ban permanente en el server\r\n\r\nEsta rotundamente prohibido hacer ruff camping, al menos que sea que estes velando al compañero cuando este farmeando al rededor de la base para que no lo manten, delo contrario el ruff camping esta prohibido\r\n\r\n\r\nRules in English\r\nNo form of harassment against players—including homophobic, sexist, or racist behavior—is permitted.\r\n\r\nThe use of hacks, scripts, etc. is strictly prohibited; doing so will result in a permanent ban from the server.\r\n\r\nRuff camping is strictly prohibited, unless you are watching over a teammate while they are farming around the base to ensure their safety; otherwise, ruff camping is prohibited.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780590265,
"last_online": 1780594230,
"icon": null,
"name": "Rusttopia | Vanilla | Solo/Duo/Trio | NA | Weekly 05.26",
"connect": "184.105.7.88:28015",
"request": "184.105.7.88:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1768741784,
"last_update": 1780594230,
"banned": false,
"wipe": 1780590328,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 1772,
"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/10957795");
$data = json_decode($json, true);
var_dump($data);