Rust
API для [US] Stevious 2x Mondays | Vanilla | 5/11
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10942523json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 223301,
"world_seed": 263599447,
"world_size": 3750,
"steam_id": "90285655926986762",
"domain": null,
"id": 10942523,
"ip": "64.40.8.14",
"port": 28010,
"query": 28015,
"color": 0,
"city": "Dallas",
"description": "![[US] Stevious 2x Mondays | Vanilla | 5/11](https://cdn.rustlegends.com/Stevious_2x_header.png)\nWeekly wipes and the following modifications: \r\n\r\n2x Gather Rates (2.5x for Sulfur and Wood) \r\nHalf smelt and crafting speeds (Vanilla for raiding items) \r\nBuilding and Level 1 Workbench blueprints unlocked \r\nComponent System loot tables (Junk items removed) \r\n\r\nVisit https://stevious.io for VIP (Queue Skip) and Rules / Discord information.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778176987,
"score": 0,
"last_online": 1778598613,
"icon": null,
"name": "[US] Stevious 2x Mondays | Vanilla | 5/11",
"connect": "64.40.8.14:28010",
"request": "64.40.8.14:28015",
"map": "Wiped 19 hours ago",
"gamemode": "Survival",
"version": "2625",
"numplayers": 145,
"maxplayers": 240,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 90,
"add_date": 1768500043,
"last_update": 1778598613,
"banned": false,
"wipe": 1778529482,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 356,
"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/10942523");
$data = json_decode($json, true);
var_dump($data);