API dla GuberX Gaming - (v560.3)
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286873011102731",
"domain": null,
"id": 11631283,
"ip": "96.54.222.72",
"port": 9024,
"query": 30024,
"project_id": null,
"color": 0,
"city": "Courtenay",
"description": null,
"game": 834910,
"owner": null,
"boosts": 1,
"last_offline": 1781165660,
"last_online": 1781247037,
"icon": null,
"name": "GuberX Gaming - (v560.3)",
"connect": "96.54.222.72:9024",
"request": "96.54.222.72:30024",
"map": "Ocean",
"gamemode": "TestGameMode_C",
"version": "560.3",
"numplayers": 2,
"maxplayers": 80,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1779916725,
"last_update": 1781247037,
"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": 223,
"language": "en",
"parked": false,
"app": {
"id": 23488,
"steam_id": 834910,
"name": "ATLAS",
"url": "atlas"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11631283");
$data = json_decode($json, true);
var_dump($data);