API для LuigisOpenWorld
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1783801961,
"app": {
"id": 1600891,
"name": "Icarus",
"steam_id": 1149460,
"url": "icarus"
},
"color": 0,
"connect": "185.137.173.157:17778",
"country": "CH",
"domain": null,
"game": 1149460,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 12115851,
"ip": "185.137.173.157",
"language": "de",
"last_update": 1792934928,
"map": null,
"maxplayers": 8,
"name": "LuigisOpenWorld",
"numplayers": 0,
"official": null,
"points": 30,
"port": 17778,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27020,
"request": "185.137.173.157:27020",
"secured": true,
"status": true,
"steam_id": "90295729727323143",
"version": "0.0.0.1",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Эннетбаден",
"description": null,
"disabled_modules": [],
"gamemode": "Icarus",
"hidden": false,
"last_offline": 1792877423,
"last_online": 1792934928,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2074,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "Icarus",
"gametype": "BUILDID:0,OWNINGID:90295729727323143,OWNINGNAME:LuigisOpenWorld,SESSIONFLAGS:683,P_s:Lobby,G_s:3.0.33.159137-x-x",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12115851");
$data = json_decode($json, true);
var_dump($data);