Rust
API для LAST DAYS OF ASGARD
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11260791json
{
"response": {
"fps": 30,
"fps_avg": 30,
"entities_count": 108324,
"world_seed": 1633890333,
"world_size": 4250,
"steam_id": "90284838810013727",
"domain": null,
"id": 11260791,
"ip": "194.242.10.238",
"port": 28215,
"query": 28216,
"color": 0,
"city": "Oslo",
"description": "\n★LASTLAST DAYS OF ASGARD/n →Shorter Nights\r\n →Faster Locked Crate (8 min)\r\n →Offline Raid Protection\r\n →Raidable Bases\r\n →Blueprint Share/n Join now",
"game": 252490,
"owner": null,
"boosts": 1,
"last_offline": 1776916998,
"score": 0,
"last_online": 1776979223,
"icon": null,
"name": "LAST DAYS OF ASGARD",
"connect": "194.242.10.238:28215",
"request": "194.242.10.238:28216",
"map": "Procedural Map",
"gamemode": "Vanilla",
"version": "2623",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "NO",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1774555205,
"last_update": 1776979223,
"banned": false,
"wipe": 1776293887,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 0,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 4947,
"language": "no",
"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/11260791");
$data = json_decode($json, true);
var_dump($data);