API для ChaseIsGay
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793151394,
"app": {
"id": 50335,
"name": "Barotrauma",
"steam_id": 602960,
"url": "barotrauma"
},
"color": 0,
"connect": "104.136.17.164:27015",
"country": "US",
"domain": null,
"game": 602960,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19250475,
"ip": "104.136.17.164",
"language": "en",
"last_update": 1794626712,
"map": "Azimuth",
"maxplayers": 10,
"name": "ChaseIsGay",
"numplayers": 3,
"official": null,
"points": 53,
"port": 27015,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "104.136.17.164:27016",
"secured": false,
"status": true,
"steam_id": "90297424100111380",
"version": "1.13.5.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Sanford",
"description": null,
"disabled_modules": [],
"gamemode": "multiplayercampaign",
"hidden": false,
"last_offline": 1794614820,
"last_online": 1794626712,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 13,
"wipe_period": null,
"traitors": "0",
"playstyle": "Casual",
"submarine": "Azimuth",
"listentype": "d",
"environment": "w",
"gamestarted": "True",
"playercount": "3",
"a2s_protocol": 17,
"allowrespawn": "True",
"eoscrossplay": "False",
"karmaenabled": "False",
"allowspectating": "True",
"contentpackage0": "Vanilla,D14AF79498BED9EB475FA6D3A3117093,",
"players_complete": true,
"subselectionmode": "Manual",
"voicechatenabled": "True",
"modeselectionmode": "Manual",
"friendlyfireenabled": "True"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19250475");
$data = json_decode($json, true);
var_dump($data);