API dla N00b World Quattro
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286506500610051",
"domain": null,
"id": 11728199,
"ip": "77.7.77.7",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Munich",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780554806,
"last_online": 1780434706,
"icon": null,
"name": "N00b World Quattro",
"connect": "77.7.77.7:27015",
"request": "77.7.77.7:27016",
"map": "VRisingWorld",
"gamemode": "26fcf5ee-2a05-49e4-b638-3832372ff30b",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": true,
"country": "DE",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780388867,
"last_update": 1780554806,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4621,
"language": "de",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11728199");
$data = json_decode($json, true);
var_dump($data);