Rust
API для [EU] Raid Simulator
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/448893json
{
"response": {
"fps": 100,
"fps_avg": 98,
"entities_count": 126529,
"world_seed": 1337,
"world_size": 6000,
"steam_id": "90284502122563615",
"domain": null,
"id": 448893,
"ip": "64.40.9.35",
"port": 28014,
"query": 28015,
"color": 0,
"city": "London",
"description": "![[EU] Raid Simulator](https://i.imgur.com/dFnegtk.png)\nSimulated Raiding Experience based on Vanilla Rust Gameplay\r\n\r\n| We Offer |\r\n - Vehicle Raids\r\n - Rocket & Grenade Damaged Scaled to 20%\r\n - Frequent Content and Feature Updates\r\n\r\nView our website and join our Discord to learn more!",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775690523,
"score": null,
"last_online": 1776384614,
"icon": null,
"name": "[EU] Raid Simulator",
"connect": "64.40.9.35:28014",
"request": "64.40.9.35:28015",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 63,
"maxplayers": 200,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 75,
"add_date": 1630779817,
"last_update": 1776384614,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 496,
"language": "en",
"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/448893");
$data = json_decode($json, true);
var_dump($data);