API для BBYeah_Rust_Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 240,
"fps_avg": 239,
"map_url": "procedural_map_2500_seed_1619573762_r287",
"map_kind": "procedural",
"map_name": "Procedural Map",
"map_seed": 1619573762,
"map_size": 2500,
"map_revision": 287,
"entities_count": 30749,
"steam_id": "90291489677531145",
"domain": null,
"id": 14006861,
"ip": "122.118.0.233",
"port": 28015,
"query": 65000,
"project_id": null,
"color": 0,
"city": "Taichung",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1787565441,
"last_online": 1787552471,
"icon": null,
"name": "BBYeah_Rust_Server",
"connect": "122.118.0.233:28015",
"request": "122.118.0.233:65000",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2632",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "TW",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1787450490,
"last_update": 1787565441,
"ban_reason": null,
"banned": false,
"wipe": 1787300769,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 23148,
"language": "zh",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14006861");
$data = json_decode($json, true);
var_dump($data);