API dla [JP] 初心者PVPサーバー
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 71,
"fps_avg": 76,
"entities_count": 105266,
"world_seed": 1337,
"world_size": 3700,
"steam_id": "90286569185924123",
"domain": null,
"id": 11607208,
"ip": "121.81.161.92",
"port": 28018,
"query": 28020,
"color": 0,
"city": "Ōtsu",
"description": "![[JP] 初心者PVPサーバー](https://image.myrustserver.com/logo/Black777GTR_6a1c46a6176fc.png)\nレイドタイム 20:00-24:00 土曜日20:00-25:00 日曜日 18:00-24:00\r\nワークベンチ LV1開放済 \r\nブループリント 建築関係開放済\r\n鉱石沸き率UP\r\nチーム上限 10人\r\nスタック数 10倍\r\nクラフト時間 半減\r\nリサイクル時間 半減\r\nソート機能\r\nTC タレット コードロック チーム員自動認証\r\nミニヘリ 自然沸きあり\r\n昼55分 夜5分\r\n燃料ゲージ\r\n動物静止\r\nヘリ コードロック取付可",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780517057,
"last_online": 1780555236,
"icon": null,
"name": "[JP] 初心者PVPサーバー",
"connect": "121.81.161.92:28018",
"request": "121.81.161.92:28020",
"map": "Custom Map",
"gamemode": "Vanilla",
"version": "2625",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1779915499,
"last_update": 1780555236,
"banned": false,
"wipe": 1779443670,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5471,
"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/11607208");
$data = json_decode($json, true);
var_dump($data);