Rust
API для A Rusted Development LCC
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/8580456json
{
"response": {
"oxide": true,
"modded": true,
"fps": 54,
"fps_avg": 53,
"entities_count": 177632,
"world_seed": 1897653674,
"world_size": 3700,
"steam_id": "90280845561786377",
"domain": null,
"id": 8580456,
"ip": "92.118.19.66",
"port": 28025,
"query": 28026,
"color": 0,
"city": "Dallas",
"description": "Just continuing to get the show on the road! \nAll welcome, server's been equipped with the best QoL mods to enhance game play and make the grind easier. \nUsually custom maps are used except when updates make that difficult.\nHope you enjoy.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1769368292,
"score": 0,
"last_online": 1776988219,
"icon": null,
"name": "A Rusted Development LCC",
"connect": "92.118.19.66:28025",
"request": "92.118.19.66:28026",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2348",
"numplayers": 0,
"maxplayers": 0,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1744830436,
"last_update": 1776988219,
"banned": false,
"wipe": 1686850203,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3271,
"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/8580456");
$data = json_decode($json, true);
var_dump($data);