Valheim
API для [RU][Public] Yggdrasil
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/1098570json
{
"response": {
"steam_id": "90284543201883162",
"domain": null,
"id": 1098570,
"ip": "94.228.205.17",
"port": 2454,
"query": 2455,
"color": 0,
"city": "Moscow",
"description": "",
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1776352421,
"score": 2.5,
"last_online": 1776432632,
"icon": null,
"name": "[RU][Public] Yggdrasil",
"connect": "94.228.205.17:2454",
"request": "94.228.205.17:2455",
"map": "[RU][Public] Yggdrasil",
"gamemode": null,
"version": "0.221.12",
"numplayers": 2,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 44,
"add_date": 1688784838,
"last_update": 1776432632,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 20,
"language": "ru",
"parked": false,
"app": {
"id": 34967,
"steam_id": 892970,
"name": "Valheim",
"url": "valheim"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/1098570");
$data = json_decode($json, true);
var_dump($data);