API для Puchikapocalyps
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1792452493,
"app": {
"id": 1530675,
"name": "VEIN",
"steam_id": 1857950,
"url": "vein"
},
"color": 0,
"connect": "15.235.113.40:27100",
"country": "CA",
"domain": null,
"game": 1857950,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 18710045,
"ip": "15.235.113.40",
"language": "en",
"last_update": 1794603329,
"map": "Champlain Valley",
"maxplayers": 6,
"name": "Puchikapocalyps",
"numplayers": 5,
"official": null,
"points": 72,
"port": 27100,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27101,
"request": "15.235.113.40:27101",
"secured": false,
"status": true,
"steam_id": "90295277181984777",
"version": "0.025h3",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Монреаль",
"description": null,
"disabled_modules": [],
"gamemode": "VEIN",
"hidden": false,
"last_offline": null,
"last_online": 1794603329,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 10,
"wipe_period": null,
"listentype": "d",
"environment": "l",
"a2s_protocol": 17,
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/18710045");
$data = json_decode($json, true);
var_dump($data);