7 Days to Die
API для 574_Clan
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11262372json
{
"response": {
"steam_id": "90284737363986463",
"domain": null,
"id": 11262372,
"ip": "51.79.21.158",
"port": 31050,
"query": 31050,
"color": 0,
"city": "Beauharnois",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1776723797,
"score": 0,
"last_online": 1776809432,
"icon": null,
"name": "574_Clan",
"connect": "51.79.21.158:31050",
"request": "51.79.21.158:31050",
"map": "NeebsPVPisland",
"gamemode": "7 Days To Die",
"version": "01.02.06",
"numplayers": 1,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": true,
"country": "CA",
"status": true,
"votes": 0,
"points": 38,
"add_date": 1774555287,
"last_update": 1776809432,
"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": 274,
"language": "en",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11262372");
$data = json_decode($json, true);
var_dump($data);