API dla Vasty McNasty Community Server - (Solo, Duo, Trio, Quad, Max 8)
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 111852,
"world_seed": 1456960563,
"world_size": 4500,
"steam_id": "90286604319374355",
"domain": null,
"id": 10413246,
"ip": "156.236.84.62",
"port": 28020,
"query": 28021,
"color": 0,
"city": "Dallas",
"description": "\nMonthly / PVE / No roof or door camping\r\n-No offline or online raids\r\n-This a peaceful community. Do not go around attacking or raiding other players\r\n-Consensual PVP with willing participants only",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596270,
"last_online": 1780606836,
"icon": null,
"name": "Vasty McNasty Community Server - (Solo, Duo, Trio, Quad, Max 8)",
"connect": "156.236.84.62:28020",
"request": "156.236.84.62:28021",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1759823828,
"last_update": 1780606836,
"banned": false,
"wipe": 1780596644,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2864,
"language": "en",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/10413246");
$data = json_decode($json, true);
var_dump($data);