Rust
API для Rust Empires II - Roleplay/RP friendly, Cities, PVE, No KOS out
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/8297610json
{
"response": {
"fps": 128,
"fps_avg": 120,
"entities_count": 137230,
"world_seed": 1337,
"world_size": 4096,
"steam_id": "90284735308088347",
"domain": null,
"id": 8297610,
"ip": "158.69.5.16",
"port": 28021,
"query": 28015,
"color": 0,
"city": "Montreal",
"description": "\nWelcome to RUST EMPIRES II\r\n\r\nRoleplay(RP)-friendly server with both PvE and PvP elements\r\n\r\n- PvP limited to specific zones (check /map)\r\n- Raiding allowed only in designated areas\r\n- Land claiming system with player-built cities\r\n- Larger stack sizes for better storage\r\n- Quests, Arenas, and Monthly Special Events\r\n- Purchasable vehicles and clan support\r\n- Active admins & strict rule enforcement\r\n- Safe, social, and inclusive community\r\n\r\nWebsite: rustempires.com\r\nDiscord: https://discord.gg/qVBnEqJ",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776773002,
"score": 0,
"last_online": 1776852616,
"icon": null,
"name": "Rust Empires II - Roleplay/RP friendly, Cities, PVE, No KOS out",
"connect": "158.69.5.16:28021",
"request": "158.69.5.16:28015",
"map": "proceduralmap.4000.190923.27",
"gamemode": "Survival",
"version": "2623",
"numplayers": 4,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "CA",
"status": true,
"votes": 0,
"points": 64,
"add_date": 1743250270,
"last_update": 1776852616,
"banned": false,
"wipe": 1776360432,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 909,
"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/8297610");
$data = json_decode($json, true);
var_dump($data);