API dla HGKG3-4MB62A
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90286518281156638",
"domain": null,
"id": 11737186,
"ip": "209.58.191.56",
"port": 27233,
"query": 27233,
"color": 0,
"city": "Wan Chai",
"description": null,
"game": 374280,
"owner": null,
"boosts": 1,
"last_offline": 1780526007,
"last_online": 1780411858,
"icon": null,
"name": "HGKG3-4MB62A",
"connect": "209.58.191.56:28233",
"request": "209.58.191.56:27233",
"map": "17",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": null,
"country": "HK",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780411858,
"last_update": 1780526007,
"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": 3095,
"language": "zh",
"parked": false,
"app": {
"id": 6495,
"steam_id": 374280,
"name": "Hired Ops",
"url": "hired-ops"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11737186");
$data = json_decode($json, true);
var_dump($data);