API для SourceCoop #3934
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794327570,
"app": {
"id": 4,
"name": "Black Mesa",
"steam_id": 362890,
"url": "black-mesa"
},
"color": 0,
"connect": "77.37.235.137:27015",
"country": "RU",
"domain": null,
"game": 362890,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19914659,
"ip": "77.37.235.137",
"language": "ru",
"last_update": 1794930358,
"map": "bm_c5a1a",
"maxplayers": 32,
"name": "SourceCoop #3934",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27015,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "77.37.235.137:27015",
"secured": true,
"status": false,
"steam_id": "90297135172720660",
"version": "100002",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Москва",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794930358,
"last_online": 1794342347,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 125,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "blackmesa",
"gametype": "increased_maxplayers,",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19914659");
$data = json_decode($json, true);
var_dump($data);