API для Yeets playhouse
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791348985,
"app": {
"id": 1611062,
"name": "Abiotic Factor",
"steam_id": 427410,
"url": "abiotic-factor"
},
"color": 0,
"connect": "85.190.157.121:10800",
"country": "US",
"domain": null,
"game": 427410,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17878835,
"ip": "85.190.157.121",
"language": "en",
"last_update": 1794679531,
"map": "PostLabs",
"maxplayers": 6,
"name": "Yeets playhouse",
"numplayers": 0,
"official": null,
"points": 30,
"port": 10800,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 10801,
"request": "85.190.157.121:10801",
"secured": false,
"status": true,
"steam_id": "90297458064034821",
"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": 1794490444,
"last_online": 1794679531,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 1465,
"wipe_period": null,
"SN_i": "2",
"SN0_s": "yeets",
"SN1_s": "playhouse",
"P2PADDR": "90297458064034821",
"P2PPORT": "10800",
"CONMETHOD": "P2P",
"GamePort_i": "10800",
"Hardcore_b": "false",
"OWNINGNAME": "Yeets playhouse",
"bHasMods_b": "false",
"listentype": "d",
"Dedicated_b": "true",
"ShortCode_s": "WD3QM",
"environment": "w",
"MaxPlayers_i": "6",
"SESSIONFLAGS": "43",
"a2s_protocol": 17,
"USESPRESENCE_b": "false",
"CUSTOMJOININFO_s": "133295681e214d62b351f8d7ee5fc1a3",
"players_complete": true,
"ModifiedRuleset_i": "0",
"AllowLocalOnlyMods_b": "true"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17878835");
$data = json_decode($json, true);
var_dump($data);