Valheim
API для WORLDV02
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10869492json
{
"response": {
"steam_id": 90283578445624320,
"domain": null,
"id": 10869492,
"ip": "170.23.128.129",
"port": 20984,
"query": 20985,
"color": 0,
"city": "Amsterdam",
"description": null,
"game": 892970,
"owner": null,
"boosts": 1,
"last_offline": 1774156929,
"score": 0,
"last_online": 1776283221,
"icon": null,
"name": "WORLDV02",
"connect": "170.23.128.129:20984",
"request": "170.23.128.129:20985",
"map": "WORLDV02",
"gamemode": null,
"version": "0.221.12",
"numplayers": 2,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": true,
"country": "NL",
"status": true,
"votes": 0,
"points": 42,
"add_date": 1768318270,
"last_update": 1776283221,
"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": 108,
"language": "nl",
"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/10869492");
$data = json_decode($json, true);
var_dump($data);