API dla [JP][PVE]桜もちServer
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 105,
"fps_avg": 104,
"entities_count": 111186,
"world_seed": 1713185111,
"world_size": 4000,
"steam_id": "90286855055962141",
"domain": null,
"id": 11190198,
"ip": "51.79.163.112",
"port": 28015,
"query": 28017,
"project_id": null,
"color": 0,
"city": "Singapore",
"description": "![[JP][PVE]桜もちServer](https://ul.h3z.jp/KcZTgR9T.png)\nようこそ、桜もち(PvE)サーバーへ!\r\n\r\n★月間BP | MAPワイプ\r\n★初心者歓迎\r\n★カスタムMOD導入(RaidableBasesなど)\r\n★毎日5:00と15:00にサーバー再起動\r\n\r\nルール\r\n◇ 日本サーバー(Only who can speak Japanese)\r\n◇ ハックやチートの使用は禁止\r\n◇ 他のプレイヤーへの略奪、攻撃、拠点破壊は禁止\r\n◇ 差別、人身攻撃、嫌がらせ、自傷行為を助長する行為は禁止\r\n◇ 管理者やモデレーターへの虐待行為は禁止\r\n◇ バグや不具合の悪用は禁止\r\n\r\n詳しいルールはDiscordへ!\r\nhttps://discord.gg/4mBYWwASfX",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780596862,
"last_online": 1781124037,
"icon": null,
"name": "[JP][PVE]桜もちServer",
"connect": "51.79.163.112:28015",
"request": "51.79.163.112:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2627",
"numplayers": 1,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "SG",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772699058,
"last_update": 1781124037,
"banned": false,
"wipe": 1780596603,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4505,
"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/11190198");
$data = json_decode($json, true);
var_dump($data);