Rust
API для Hunt and Chill PVE Rust
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11435342json
{
"response": {
"fps": 117,
"fps_avg": 118,
"entities_count": 71856,
"world_seed": 453832400,
"world_size": 3500,
"steam_id": "90285631922310158",
"domain": null,
"id": 11435342,
"ip": "91.98.186.104",
"port": 28080,
"query": 28015,
"color": 0,
"city": "Falkenstein",
"description": "\nHunt and Chill PVE\r\n\r\n• PVE experience on one of best maps selected with almost all Monuments\r\n• Some QoL plugins like TruePVE mod\r\n• Small Server and Low Upkeep\r\n• Rules in game chat\r\n• Update when is posibile\r\n• English",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778436781,
"score": 0,
"last_online": 1778536815,
"icon": null,
"name": "Hunt and Chill PVE Rust",
"connect": "91.98.186.104:28080",
"request": "91.98.186.104:28015",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2625",
"numplayers": 2,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 68,
"add_date": 1774977186,
"last_update": 1778536815,
"banned": false,
"wipe": 1778206217,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 896,
"language": "de",
"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/11435342");
$data = json_decode($json, true);
var_dump($data);