Rust
API для My Untitled Rust Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/2011348json
{
"response": {
"fps": 60,
"fps_avg": 59,
"entities_count": 91612,
"world_seed": 930675632,
"world_size": 4250,
"steam_id": "90283777895678986",
"domain": null,
"id": 2011348,
"ip": "156.236.84.53",
"port": 28110,
"query": 28111,
"color": 0,
"city": "Dallas",
"description": "",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1775194332,
"score": null,
"last_online": 1776289237,
"icon": null,
"name": "My Untitled Rust Server",
"connect": "156.236.84.53:28110",
"request": "156.236.84.53:28111",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2622",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1701297523,
"last_update": 1776289237,
"banned": false,
"wipe": 1772852246,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 5912,
"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/2011348");
$data = json_decode($json, true);
var_dump($data);