Rust
API для Rusty 2x Loot NO KOS, ZA.
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/8990607json
{
"response": {
"fps": 73,
"fps_avg": 75,
"entities_count": 97827,
"world_seed": 65497897,
"world_size": 3885,
"steam_id": "90284806105291805",
"domain": null,
"id": 8990607,
"ip": "129.232.154.35",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Cape Town",
"description": "\nWelcome to the server. This is no ordinary server has PVP and PVE elements. Raiding and PVP allowed and encouraged. No offline protection. KOS allowed. Active trolling Admin and Owner. Any questions or suggestions join the discord.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776852199,
"score": 0,
"last_online": 1776874222,
"icon": null,
"name": "Rusty 2x Loot NO KOS, ZA.",
"connect": "129.232.154.35:28025",
"request": "129.232.154.35:28026",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "ZA",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1746825652,
"last_update": 1776874222,
"banned": false,
"wipe": 1775159714,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3623,
"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/8990607");
$data = json_decode($json, true);
var_dump($data);