API для helheim
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1791420976,
"app": {
"id": 34967,
"name": "Valheim",
"steam_id": 892970,
"url": "valheim"
},
"color": 0,
"connect": "99.245.134.178:2460",
"country": "CA",
"domain": null,
"game": 892970,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 17932506,
"ip": "99.245.134.178",
"language": "en",
"last_update": 1792569610,
"map": "helheim",
"maxplayers": 10,
"name": "helheim",
"numplayers": 0,
"official": null,
"points": 30,
"port": 2460,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 2461,
"request": "99.245.134.178:2461",
"secured": false,
"status": true,
"steam_id": "90294916102778893",
"version": "1.0.17",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Миссиссога",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1792433061,
"last_online": 1792569610,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 49292,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "valheim",
"gametype": "g=1.0.17,n=40",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/17932506");
$data = json_decode($json, true);
var_dump($data);