Rust
API для Peanut Goon's Server
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10741156json
{
"response": {
"fps": 93,
"fps_avg": 91,
"entities_count": 159239,
"world_seed": 880372833,
"world_size": 4500,
"steam_id": "90284802179615772",
"domain": null,
"id": 10741156,
"ip": "216.245.177.37",
"port": 28015,
"query": 28017,
"color": 0,
"city": "Chicago",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776846797,
"score": 0,
"last_online": 1776858133,
"icon": null,
"name": "Peanut Goon's Server",
"connect": "216.245.177.37:28015",
"request": "216.245.177.37:28017",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2616",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766250801,
"last_update": 1776858133,
"banned": false,
"wipe": 1765599093,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 6313,
"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/10741156");
$data = json_decode($json, true);
var_dump($data);