API dla KR/JP/SEA 2X VANILLA NOOB FRIENDLY WEEKLY WIPE 6/5 wiped
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 227,
"fps_avg": 225,
"entities_count": 82319,
"world_seed": 162271881,
"world_size": 3750,
"steam_id": "90286611466697728",
"domain": null,
"id": 11607261,
"ip": "157.85.88.158",
"port": 20903,
"query": 20904,
"color": 0,
"city": "Tokyo",
"description": "\nOnly sulfur is 1X\r\nFull wipe on friday\r\nServer restart daily 7am korea time\r\nJoin the discord https://discord.gg/FRvW2Rn3vr",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780610001,
"last_online": 1780645827,
"icon": null,
"name": "KR/JP/SEA 2X VANILLA NOOB FRIENDLY WEEKLY WIPE 6/5 wiped",
"connect": "157.85.88.158:20903",
"request": "157.85.88.158:20904",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 3,
"maxplayers": 125,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1779915501,
"last_update": 1780645827,
"banned": false,
"wipe": 1780609941,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2218,
"language": "ja",
"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/11607261");
$data = json_decode($json, true);
var_dump($data);