API dla Gaming Hive
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286565853446166",
"domain": null,
"id": 11723551,
"ip": "144.34.86.15",
"port": 9030,
"query": 9031,
"color": 0,
"city": "The Hague",
"description": null,
"game": 1857950,
"owner": null,
"boosts": 1,
"last_offline": 1780325033,
"last_online": 1780530036,
"icon": null,
"name": "Gaming Hive",
"connect": "144.34.86.15:9030",
"request": "144.34.86.15:9031",
"map": "Champlain Valley",
"gamemode": "VEIN",
"version": "0.024h1",
"numplayers": 3,
"maxplayers": 5,
"bots": 0,
"secured": false,
"private": true,
"country": "NL",
"status": true,
"votes": 0,
"points": 57,
"add_date": 1780325033,
"last_update": 1780530036,
"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": 16,
"language": "nl",
"parked": false,
"app": {
"id": 1530675,
"steam_id": 1857950,
"name": "VEIN",
"url": "vein"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11723551");
$data = json_decode($json, true);
var_dump($data);