API для WhoopsDidIt
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1780998774,
"app": {
"id": 140,
"name": "Empyrion - Galactic Survival",
"steam_id": 383120,
"url": "empyrion-galactic-survival"
},
"color": 0,
"connect": "67.222.198.40:30000",
"country": "US",
"domain": null,
"game": 383120,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 11777426,
"ip": "67.222.198.40",
"language": "en",
"last_update": 1790479581,
"map": null,
"maxplayers": 8,
"name": "WhoopsDidIt",
"numplayers": 0,
"official": null,
"points": 0,
"port": 30000,
"private": true,
"project_id": null,
"pve": null,
"pvp": null,
"query": 30001,
"request": "67.222.198.40:30001",
"secured": false,
"status": false,
"steam_id": "90293335316709385",
"version": "v1.19.5",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Арлингтон",
"description": null,
"disabled_modules": [],
"gamemode": "Empyrion - Galactic Survival",
"hidden": false,
"last_offline": 1790479581,
"last_online": 1790277266,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 693,
"wipe_period": null,
"IP": "67.222.198.40",
"Host": "WhoopsDidIt",
"Ping": "-1",
"Port": "30000",
"Players": "0",
"Product": "EGS",
"SteamID": "90293335316709385",
"GameName": "",
"IsPublic": "True",
"WipeTime": "0",
"DecayTime": "5",
"Dedicated": "True",
"EACActive": "True",
"GameModeId": "1",
"IsUsingDLC": "False",
"MaxPlayers": "8",
"ServerInfo": "",
"StopPeriod": "0",
"listentype": "d",
"environment": "w",
"AntiGriefPvE": "10",
"AntiGriefPvP": "300",
"OfflProtTime": "24",
"a2s_protocol": 17,
"AntiGriefDist": "30",
"MaxStructures": "1000",
"NumPlayfields": "288",
"OfflProtDelay": "1800",
"RelayJoinCode": "",
"EnabledTrading": "30",
"PasswordNeeded": "True",
"NumStartPlanets": "6",
"NumericalVersion": "-1",
"players_complete": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11777426");
$data = json_decode($json, true);
var_dump($data);