API dla EU Havoc |Vanilla+Bi-Weekly |50% Upkeep| duo/trio/quad Max 5
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 249,
"fps_avg": 247,
"entities_count": 94820,
"world_seed": 1,
"world_size": 4000,
"steam_id": "90286582993430533",
"domain": null,
"id": 11511011,
"ip": "88.211.210.50",
"port": 25565,
"query": 25567,
"color": 0,
"city": "Amsterdam",
"description": "Fresh new server with custom map and events, friendly community no toxcity, Come try us out! All feedback welcome. we build with the community for the community\r\n\r\n2x Gathering\r\nFaster Crafting\r\nShorter Nights\r\nMap Vote\r\nEvents\r\nNoob Friendly\r\nJoin our discord! Get to know the community\r\ndiscord.gg/B5FezHb3Uk",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780470420,
"last_online": 1780587633,
"icon": null,
"name": "EU Havoc |Vanilla+Bi-Weekly |50% Upkeep| duo/trio/quad Max 5",
"connect": "88.211.210.50:25565",
"request": "88.211.210.50:25567",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 500,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779353837,
"last_update": 1780587633,
"banned": false,
"wipe": 1778517768,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5117,
"language": "nl",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Przykłady kodu
php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/11511011");
$data = json_decode($json, true);
var_dump($data);