Rust
API для A Shockbyte x Discord Production Rust Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11305788json
{
"response": {
"fps": 212,
"fps_avg": 211,
"entities_count": 17489,
"world_seed": 12345,
"world_size": 2000,
"steam_id": "90283473509024772",
"domain": null,
"id": 11305788,
"ip": "157.85.93.39",
"port": 27030,
"query": 27031,
"color": 0,
"city": "Dallas",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1777666353,
"score": 0,
"last_online": 1776803460,
"icon": null,
"name": "A Shockbyte x Discord Production Rust Server",
"connect": "157.85.93.39:27030",
"request": "157.85.93.39:27031",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2622",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1774592902,
"last_update": 1777666353,
"banned": false,
"wipe": 1774499122,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 8287,
"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/11305788");
$data = json_decode($json, true);
var_dump($data);