API dla Champs 2X NA [Bounty|BetterLoot|Clans]
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 236,
"fps_avg": 232,
"entities_count": 101554,
"world_seed": 282862726,
"world_size": 4300,
"steam_id": "90286372507785221",
"domain": null,
"id": 11511404,
"ip": "15.235.23.17",
"port": 28798,
"query": 28799,
"color": 0,
"city": "Montreal",
"description": "Made and managed by Champ servers \r\n join our discord now https://discord.gg/RSYqfJzfgr\r\nVip que skip and kits can be bought at \r\n https://champs-rust-webshop.tebex.io/\r\nany issues please",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780607011,
"last_online": 1780107623,
"icon": null,
"name": "Champs 2X NA [Bounty|BetterLoot|Clans]",
"connect": "15.235.23.17:28798",
"request": "15.235.23.17:28799",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 80,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779353846,
"last_update": 1780607011,
"banned": false,
"wipe": 1778478740,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 11463,
"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/11511404");
$data = json_decode($json, true);
var_dump($data);