API для CTF | MODDED-SHOOTER
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793470620,
"app": {
"id": 1559569,
"name": "Banana Shooter",
"steam_id": 1949740,
"url": "banana-shooter"
},
"color": 0,
"connect": "91.98.96.199:27015",
"country": "DE",
"domain": null,
"game": 1949740,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19458806,
"ip": "91.98.96.199",
"language": null,
"last_update": 1794949574,
"map": "Water",
"maxplayers": 20,
"name": "CTF | MODDED-SHOOTER",
"numplayers": 0,
"official": null,
"points": 30,
"port": 27015,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "91.98.96.199:27016",
"secured": true,
"status": true,
"steam_id": "90297629760124928",
"version": "1.37",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Фалькенштайн",
"description": null,
"disabled_modules": [],
"gamemode": "Banana Shooter",
"hidden": false,
"last_offline": 1794897384,
"last_online": 1794949574,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 4,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19458806");
$data = json_decode($json, true);
var_dump($data);