Rust
API для Rusty Dream Testing Grounds
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11305244json
{
"response": {
"fps": 240,
"fps_avg": 239,
"entities_count": 4977,
"world_seed": 481981,
"world_size": 2000,
"steam_id": 90284793460297740,
"domain": null,
"id": 11305244,
"ip": "88.211.219.3",
"port": 28080,
"query": 28015,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776308512,
"score": 0,
"last_online": 1776846116,
"icon": null,
"name": "Rusty Dream Testing Grounds",
"connect": "88.211.219.3:28080",
"request": "88.211.219.3:28015",
"map": "Custom Map",
"gamemode": "Survival",
"version": "2623",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "NL",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774592881,
"last_update": 1776846116,
"banned": false,
"wipe": 1775153210,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 7272,
"language": "nl",
"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/11305244");
$data = json_decode($json, true);
var_dump($data);