DayZ
API pentru BTH|Walking zombies|MELKART|PVP|3pp|Terje|Inedia
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11489476json
{
"response": {
"steam_id": "90284640346662917",
"domain": null,
"id": 11489476,
"ip": "212.22.93.107",
"port": 2302,
"query": 2305,
"color": 0,
"city": "Moscow",
"description": null,
"game": 221100,
"owner": 21256,
"boosts": 1,
"last_offline": 1776500003,
"score": 0,
"last_online": 1776583819,
"icon": null,
"name": "BTH|Walking zombies|MELKART|PVP|3pp|Terje|Inedia",
"connect": "212.22.93.107:2302",
"request": "212.22.93.107:2305",
"map": "melkart",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 1,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 61,
"add_date": 1776498780,
"last_update": 1776583819,
"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": 759,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": {
"username": "Dietrich",
"avatar": "no.jpg",
"last_online": 1776583072
},
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11489476");
$data = json_decode($json, true);
var_dump($data);