API dla Fair Haven 3x Modded
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 219,
"fps_avg": 220,
"entities_count": 104672,
"world_seed": 975989578,
"world_size": 3998,
"steam_id": "90286604449442839",
"domain": null,
"id": 9526903,
"ip": "176.9.113.42",
"port": 28310,
"query": 28245,
"color": 0,
"city": "Falkenstein",
"description": "\nRules \r\n -No racism, discrimination, inappropriate behaviour \r\n -No raiding or stealing allowed in safe zone; do not destroy, obstruct or build on to other players RP builds. \r\n - All buildings must be upgraded, twig will be removed by admin afther warning \r\n -No camping outside of safezone limits \r\n - PVP outside of Safezone \r\n - Loot from Raids is not allowed in the SafeZone, this includes the raidable bases \r\n -No hording of sulfur + eplosives in SafeZone ( max 9k ) , craft it to ammo asap, admins will check your boxes randomly and delete if neccessary. High Velocity Rockets are ok \r\n Plugins - Waterevent, Convoy, Remover Tool, large stacksizes, zone manager, better loot , backpack , extended recycler , kits , z level, raidable bases , NPC raiders , dangerous treasures,...",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596862,
"last_online": 1780605030,
"icon": null,
"name": "Fair Haven 3x Modded",
"connect": "176.9.113.42:28310",
"request": "176.9.113.42:28245",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1750537855,
"last_update": 1780605030,
"banned": false,
"wipe": 1780597253,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2384,
"language": "de",
"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/9526903");
$data = json_decode($json, true);
var_dump($data);