API dla VGRoom [vanilla]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 60,
"fps_avg": 58,
"entities_count": 93991,
"world_seed": 892217654,
"world_size": 4000,
"steam_id": "90286630419123229",
"domain": null,
"id": 11158246,
"ip": "89.212.52.19",
"port": 28015,
"query": 28017,
"project_id": null,
"color": 0,
"city": "Ljubljana",
"description": "![VGRoom [vanilla]](https://files.facepunch.com/garry/5e70bc8f-a7c6-4966-891d-4013f317c909.png)\nA Modded server for beginners. This is a Vanilla solo server with bi-weekly wipe. \r\n\r\nMods: TimeOfDay, DangerousTreasueres, OfflineRaindProtection, NPC Drop Gun \r\n\r\nRules:\r\n- don't be toxic\r\n- solo only\r\n\r\n \r\nEnjoy",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780661064,
"last_online": 1780679437,
"icon": null,
"name": "VGRoom [vanilla]",
"connect": "89.212.52.19:28015",
"request": "89.212.52.19:28017",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "SI",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772228106,
"last_update": 1780679437,
"banned": false,
"wipe": 1778353176,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4406,
"language": "sl",
"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/11158246");
$data = json_decode($json, true);
var_dump($data);