API для KHB2-CN3B8A
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": true,
"gametype": "{\"mmr\":0,\"tpcd\":0,\"gm\":\"TacticalConquest\",\"db\":false,\"rnd\":4,\"mr\":\"Ru\",\"rm\":true,\"minl\":26,\"maxl\":70}",
"os": "w",
"product": "Contract Wars 2.0 Standalone",
"region": -1,
"steam_id": "90289391518655503",
"domain": null,
"id": 12482441,
"ip": "92.223.80.6",
"port": 28738,
"query": 27738,
"project_id": null,
"color": 0,
"city": "Khabarovsk",
"description": null,
"game": 374280,
"owner": null,
"boosts": 1,
"last_offline": 1784719981,
"last_online": 1784677899,
"icon": null,
"name": "KHB2-CN3B8A",
"connect": "92.223.80.6:28738",
"request": "92.223.80.6:27738",
"map": "11",
"gamemode": null,
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": null,
"country": "RU",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1784677329,
"last_update": 1784719981,
"ban_reason": null,
"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": 10370,
"language": "ru",
"parked": false,
"app": {
"id": 6495,
"steam_id": 374280,
"name": "Hired Ops",
"url": "hired-ops"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12482441");
$data = json_decode($json, true);
var_dump($data);