DayZ
API для
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11488736json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11488736,
"ip": "45.45.238.52",
"port": 2302,
"query": 2303,
"color": 0,
"city": "Chicago",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776271272,
"score": 0,
"last_online": 1776126466,
"icon": null,
"name": null,
"connect": null,
"request": "45.45.238.52:2303",
"map": null,
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": null,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1775775105,
"last_update": 1776271272,
"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": 8029,
"language": "en",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11488736");
$data = json_decode($json, true);
var_dump($data);