API для smk-test-srv
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90286773600251915",
"domain": null,
"id": 11778530,
"ip": "176.20.62.60",
"port": 5778,
"query": 25019,
"project_id": null,
"color": 0,
"city": "Farum",
"description": null,
"game": 2293680,
"owner": null,
"boosts": 1,
"last_offline": 1780999129,
"last_online": 1781086370,
"icon": null,
"name": "smk-test-srv",
"connect": "176.20.62.60:5778",
"request": "176.20.62.60:25019",
"map": null,
"gamemode": "false",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "DK",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780999129,
"last_update": 1781086370,
"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": 1,
"language": "da",
"parked": false,
"app": {
"id": 1627115,
"steam_id": 2293680,
"name": "Crestfallen: Medieval Survival",
"url": "crestfallen-medieval-survival"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11778530");
$data = json_decode($json, true);
var_dump($data);