DayZ
API для KS-TEST ^ 1shot1kill.pl
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10969164json
{
"response": {
"steam_id": "90284724655761433",
"domain": null,
"id": 10969164,
"ip": "145.239.237.112",
"port": 27800,
"query": 27801,
"color": 0,
"city": "Wroclaw",
"description": "Serwer działa na 1shot1kill.pl",
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1776745400,
"score": 0,
"last_online": 1776776421,
"icon": null,
"name": "KS-TEST ^ 1shot1kill.pl",
"connect": "145.239.237.112:27800",
"request": "145.239.237.112:27801",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": true,
"private": true,
"country": "PL",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1768756726,
"last_update": 1776776421,
"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": 1008,
"language": "pl",
"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/10969164");
$data = json_decode($json, true);
var_dump($data);