DayZ
API pentru WORLD PROJECT ERAI | PVP | Vanilla
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10973268json
{
"response": {
"steam_id": "90284623729073179",
"domain": null,
"id": 10973268,
"ip": "31.192.105.197",
"port": 2502,
"query": null,
"color": 0,
"city": "Moscow",
"description": "[{\"id\":\"UZcrePfJFo\",\"type\":\"paragraph\",\"data\":{\"text\":\"Что же тебя ждёт на ERAI:\\n* PVP сервер\\n* полная ваниль, только ты, зомби и другие выжившие\"}}]",
"game": 221100,
"owner": 163425,
"boosts": 1,
"last_offline": 1775949111,
"score": 5,
"last_online": 1776549011,
"icon": null,
"name": "WORLD PROJECT ERAI | PVP | Vanilla",
"connect": "31.192.105.197:2502",
"request": null,
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 16,
"points": 111,
"add_date": 1769436647,
"last_update": 1776549011,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 1,
"list_hidden": false,
"hide_address": false,
"hide_query": true,
"position_game": 329,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "neroplay",
"avatar": "d1740d7f-0fc4-4f1e-9f78-decf7c81a9a5.jpg",
"last_online": 1773539612
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10973268");
$data = json_decode($json, true);
var_dump($data);