API для Xenos Bad Office
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1790928958,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "142.162.193.184:7778",
"country": "CA",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17611952,
"ip": "142.162.193.184",
"language": "en",
"last_update": 1794755196,
"map": "MFTrain",
"maxplayers": 6,
"name": "Xenos Bad Office",
"numplayers": 0,
"official": null,
"points": 30,
"port": 7778,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27015,
"request": "142.162.193.184:27015",
"secured": false,
"status": true,
"steam_id": "90292697045530632",
"version": "1.0.0.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Happy Valley-Goose Bay",
"description": null,
"disabled_modules": [],
"gamemode": "Abiotic Factor",
"hidden": false,
"last_offline": 1793311177,
"last_online": 1794755196,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1372,
"wipe_period": null,
"SN_i": "3",
"SN0_s": "xenos",
"SN1_s": "bad",
"SN2_s": "office",
"P2PADDR": "90292697045530632",
"P2PPORT": "7778",
"CONMETHOD": "P2P",
"GamePort_i": "7778",
"Hardcore_b": "false",
"OWNINGNAME": "Xenos Bad Office",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "9S6I2",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "bb8b84f6dfc74169b3e6406901b40ca7",
"players_complete": true,
"ModifiedRuleset_i": "0"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17611952");
$data = json_decode($json, true);
var_dump($data);