API dla Children of the Zone
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 123,
"fps_avg": 122,
"entities_count": 93870,
"world_seed": 1337,
"world_size": 4000,
"steam_id": "90286541394591767",
"domain": null,
"id": 11502420,
"ip": "135.148.137.50",
"port": 60400,
"query": 60402,
"color": 0,
"city": "Warrenton",
"description": "A unique survival experience. Visit monuments from real world locations in Chernobyl and Pripyat. Drive tanks, Call in Airstrikes, and SURVIVE! Make sure to join the discord for information on rules, pvp, and events! https://discord.gg/w2qbjsvn",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780458253,
"last_online": 1780566034,
"icon": null,
"name": "Children of the Zone",
"connect": "135.148.137.50:60400",
"request": "135.148.137.50:60402",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779207200,
"last_update": 1780566034,
"banned": false,
"wipe": 1780458731,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4956,
"language": "en",
"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/11502420");
$data = json_decode($json, true);
var_dump($data);