API dla EU-UnOff-Legacy-Cluster-PVE - Crystal Island
JSON dla programów, stron i innych
text
json
{
"response": {
"steam_id": "90285649565518867",
"domain": null,
"id": 4237517,
"ip": "49.13.241.152",
"port": 8003,
"query": 27018,
"project_id": null,
"color": 0,
"city": "Nuremberg",
"description": "",
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1778568778,
"last_online": 1781307650,
"icon": null,
"name": "EU-UnOff-Legacy-Cluster-PVE - Crystal Island",
"connect": "49.13.241.152:8003",
"request": "49.13.241.152:27018",
"map": "CrystalIsles",
"gamemode": "TestGameMode_C",
"version": "361.7",
"numplayers": 2,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 31,
"add_date": 1715371045,
"last_update": 1781307650,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2425,
"language": "de",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/4237517");
$data = json_decode($json, true);
var_dump($data);