Rust
API для Kcom-HermitRust
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11435919json
{
"response": {
"fps": 48,
"fps_avg": 60,
"entities_count": 73801,
"world_seed": 25000,
"world_size": 3500,
"steam_id": "90284751756488706",
"domain": null,
"id": 11435919,
"ip": "133.88.99.112",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Nagoya",
"description": "Under testing. A practice server for busy professionals. NPC bases are available for raiding practice. Feel free to join!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776798203,
"score": 0,
"last_online": 1776852623,
"icon": null,
"name": "Kcom-HermitRust",
"connect": "133.88.99.112:28015",
"request": "133.88.99.112:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 25,
"bots": 0,
"secured": true,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774977212,
"last_update": 1776852623,
"banned": false,
"wipe": 1775233634,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5358,
"language": "ja",
"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/11435919");
$data = json_decode($json, true);
var_dump($data);