API для Blue Monday Project
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791143822,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "172.240.71.97:26905",
"country": "US",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17745265,
"ip": "172.240.71.97",
"language": "en",
"last_update": 1791156983,
"map": "EndGame",
"maxplayers": 4,
"name": "Blue Monday Project",
"numplayers": 0,
"official": null,
"points": 30,
"port": 26905,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 26906,
"request": "172.240.71.97:26906",
"secured": false,
"status": true,
"steam_id": "90294088045235227",
"version": "1.0.0.6",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Сан-Хосе",
"description": null,
"disabled_modules": [],
"gamemode": "Abiotic Factor",
"hidden": false,
"last_offline": null,
"last_online": 1791156983,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2528,
"wipe_period": null,
"SN_i": "3",
"SN0_s": "blue",
"SN1_s": "monday",
"SN2_s": "project",
"P2PADDR": "90294088045235227",
"P2PPORT": "26905",
"CONMETHOD": "P2P",
"GamePort_i": "26905",
"Hardcore_b": "false",
"OWNINGNAME": "Blue Monday Project",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "P40KR",
"environment": "w",
"MaxPlayers_i": "4",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "83c75056d6ca43e68352dbdf4b1a8b54",
"players_complete": true,
"ModifiedRuleset_i": "1"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17745265");
$data = json_decode($json, true);
var_dump($data);