API для Chystylyshche
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1787148197,
"app": {
"id": 34967,
"name": "Valheim",
"steam_id": 892970,
"url": "valheim"
},
"color": 0,
"connect": "176.38.35.167:2456",
"country": "UA",
"domain": null,
"game": 892970,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 13845871,
"ip": "176.38.35.167",
"language": "uk",
"last_update": 1790641823,
"map": "Chystylyshche",
"maxplayers": 10,
"name": "Chystylyshche",
"numplayers": 0,
"official": null,
"points": 0,
"port": 2456,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 2457,
"request": "176.38.35.167:2457",
"secured": false,
"status": true,
"steam_id": "90293583694692377",
"version": "1.0.16",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Киев",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790641355,
"last_online": 1790641823,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 61876,
"wipe_period": null,
"os": "l",
"region": -1,
"product": "valheim",
"gametype": "g=1.0.16,n=40,m=",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13845871");
$data = json_decode($json, true);
var_dump($data);