API для Dankri-La
JSON для программ, сайтов и прочего
text
json
{
"response": {
"fps": 125,
"fps_avg": 118,
"entities_count": 103529,
"world_seed": 28096,
"world_size": 4250,
"steam_id": "90285478991849497",
"domain": null,
"id": 7788427,
"ip": "172.240.71.191",
"port": 26955,
"query": 26956,
"color": 0,
"city": "Chicago",
"description": "\nWelcome to Dankri-La! Currently hosting Legacy of Rust! Other QOL plugins available!Welcome to Dankri-La! QOL plugins available! Welcome to the Halloween Community wipe for Gamer's Outreach hosted by DeeDeeDidIt",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1778206944,
"last_online": 1779198620,
"icon": null,
"name": "Dankri-La",
"connect": "172.240.71.191:26955",
"request": "172.240.71.191:26956",
"map": "Procedural Map",
"gamemode": "Survival",
"version": "2624",
"numplayers": 0,
"maxplayers": 50,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1739944800,
"last_update": 1779198620,
"banned": false,
"wipe": 1778206992,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 3063,
"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/7788427");
$data = json_decode($json, true);
var_dump($data);