Rust
API для Respawn Isle / Small Teams / UK & Europe
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/449191json
{
"response": {
"fps": 86,
"fps_avg": 85,
"entities_count": 78676,
"world_seed": 0,
"world_size": 3700,
"steam_id": "90284387285640194",
"domain": null,
"id": 449191,
"ip": "51.89.222.250",
"port": 28036,
"query": 28035,
"color": 0,
"city": "London",
"description": "\nLike Rust just as it is? Join this server for our vanilla survival experience.\n\n - This is an English speaking server based in the UK, all nationalities welcome.\n - Maps and blueprints are wiped on the first Thursday of each month.\n\nView webpage for more details.",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776222113,
"score": null,
"last_online": 1776277817,
"icon": null,
"name": "Respawn Isle / Small Teams / UK & Europe",
"connect": "51.89.222.250:28036",
"request": "51.89.222.250:28035",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "GB",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1630779825,
"last_update": 1776277817,
"banned": false,
"wipe": 1775152866,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 2928,
"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/449191");
$data = json_decode($json, true);
var_dump($data);