API pentru XHUNTERDAYZ.RU | SEASON 03 | MODS
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 5819641,
"ip": null,
"port": null,
"query": null,
"project_id": null,
"color": 0,
"city": null,
"description": "[{\"id\":\"D7sVo9GN6v\",\"type\":\"image\",\"data\":{\"caption\":\"\",\"withBorder\":false,\"withBackground\":false,\"stretched\":false,\"file\":{\"url\":\"https://cdn.gamemonitoring.net/images/content/535fbf91-3ae5-4545-94a8-9d8b25ed3346.png\"}}},{\"id\":\"T4dqSVcaHG\",\"type\":\"header\",\"data\":{\"text\":\" Подключение в лаунчере DayZ либо DZSA > поиск > XHUNTER\",\"level\":2}},{\"id\":\"cIPoWpwLpl\",\"type\":\"header\",\"data\":{\"text\":\" IP: 46.53.152.229:2302\",\"level\":2}},{\"id\":\"f2BglMELak\",\"type\":\"header\",\"data\":{\"text\":\" XHUNTERDAYZ.RU\",\"level\":1}},{\"id\":\"JThh9IKfnZ\",\"type\":\"delimiter\",\"data\":{}}]",
"game": 221100,
"owner": 82411,
"boosts": 1,
"last_offline": 1750457066,
"last_online": 1736713866,
"icon": null,
"name": "XHUNTERDAYZ.RU | SEASON 03 | MODS",
"connect": null,
"request": null,
"map": "chernarusplus",
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 60,
"bots": 0,
"secured": false,
"private": false,
"country": "BY",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1725068795,
"last_update": 1750457066,
"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": 14859,
"language": "be",
"parked": true,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "xxxqz",
"avatar": "60b4ef1b-8c3e-4bf8-b2fd-eeb474aa60a9.jpg"
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/5819641");
$data = json_decode($json, true);
var_dump($data);