API для SourceCoop #7883
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1794527996,
"app": {
"id": 4,
"name": "Black Mesa",
"steam_id": 362890,
"url": "black-mesa"
},
"color": 0,
"connect": "70.80.93.166:27016",
"country": "CA",
"domain": null,
"game": 362890,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 20059678,
"ip": "70.80.93.166",
"language": "en",
"last_update": 1794938759,
"map": "bm_c1a0a",
"maxplayers": 4,
"name": "SourceCoop #7883",
"numplayers": 0,
"official": null,
"points": 0,
"port": 27016,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "70.80.93.166:27016",
"secured": true,
"status": false,
"steam_id": "90297620929877021",
"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": 1794938759,
"last_online": 1794885951,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 163,
"wipe_period": null,
"os": "w",
"region": 255,
"product": "blackmesa",
"gametype": "empty,increased_maxplayers,",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/20059678");
$data = json_decode($json, true);
var_dump($data);