Rust
API для #3 OMSK-Rust Modded | X2 | Для новичков
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10973025json
{
"response": {
"fps": 40,
"fps_avg": 39,
"entities_count": 64105,
"world_seed": 777534,
"world_size": 3500,
"steam_id": "90284581675297818",
"domain": null,
"id": 10973025,
"ip": "94.137.28.90",
"port": 36500,
"query": 36503,
"color": 0,
"city": "Omsk",
"description": null,
"game": 252490,
"owner": 95361,
"boosts": 1,
"last_offline": 1776423819,
"score": 5,
"last_online": 1776525011,
"icon": null,
"name": "#3 OMSK-Rust Modded | X2 | Для новичков",
"connect": "94.137.28.90:36500",
"request": "94.137.28.90:36503",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 4,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 46,
"points": 113,
"add_date": 1769173414,
"last_update": 1776525011,
"banned": false,
"wipe": 1776423798,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 118,
"language": "ru",
"parked": false,
"app": {
"id": 12,
"steam_id": 252490,
"name": "Rust",
"url": "rust"
},
"server_owner": {
"username": "Hooligan55rus",
"avatar": "dcd4fabb-a7c5-4581-bec6-c1a9511dce51.jpg",
"last_online": 1776184312
},
"mods": [
{
"id": 979,
"name": "Kits"
},
{
"id": 1323,
"name": "Shop"
},
{
"id": 926,
"name": "IQChat"
},
{
"id": 1388,
"name": "Stack Size Controller"
},
{
"id": 1227,
"name": "RaidBlock"
},
{
"id": 947,
"name": "IQRates"
},
{
"id": 1589,
"name": "No Steam"
},
{
"id": 952,
"name": "IQTeleportation"
},
{
"id": 1357,
"name": "Skip Night"
},
{
"id": 954,
"name": "IQWipeBlock"
},
{
"id": 1451,
"name": "Trade"
},
{
"id": 1257,
"name": "Report System"
},
{
"id": 948,
"name": "IQReportSystem"
},
{
"id": 924,
"name": "IQBreakingTools"
},
{
"id": 540,
"name": "Battle Pass"
}
],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10973025");
$data = json_decode($json, true);
var_dump($data);