API для Black Mesa: Deathmatch
JSON для программ, сайтов и прочего
text
json
{
"response": {
"dedicated": false,
"gametype": "gravity,increased_maxplayers,",
"os": "w",
"product": "blackmesa",
"region": -1,
"steam_id": "90288798991350814",
"domain": null,
"id": 12278797,
"ip": "185.183.95.192",
"port": 27015,
"query": 27015,
"project_id": null,
"color": 0,
"city": "Lutsk",
"description": null,
"game": 362890,
"owner": null,
"boosts": 1,
"last_offline": 1784052186,
"last_online": 1783943031,
"icon": null,
"name": "Black Mesa: Deathmatch",
"connect": "185.183.95.192:27015",
"request": "185.183.95.192:27015",
"map": "dm_bounce",
"gamemode": null,
"version": "100002",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": null,
"country": "UA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1783931013,
"last_update": 1784052186,
"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": 129,
"language": "uk",
"parked": false,
"app": {
"id": 4,
"steam_id": 362890,
"name": "Black Mesa",
"url": "black-mesa"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12278797");
$data = json_decode($json, true);
var_dump($data);