API dla JP-APOLLO-RUST-PVE-SERVER
JSON dla programów, stron i innych
text
json
{
"response": {
"fps": 95,
"fps_avg": 106,
"entities_count": 174534,
"world_seed": 1764492528,
"world_size": 4500,
"steam_id": "90286460090415108",
"domain": null,
"id": 9972562,
"ip": "219.164.228.12",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Tōno",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1780575215,
"last_online": 1780347084,
"icon": null,
"name": "JP-APOLLO-RUST-PVE-SERVER",
"connect": "219.164.228.12:28015",
"request": "219.164.228.12:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1754855464,
"last_update": 1780575215,
"banned": false,
"wipe": 1778184511,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10534,
"language": "ja",
"parked": false,
"app": {
"id": 252490,
"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/9972562");
$data = json_decode($json, true);
var_dump($data);