DayZ
API für OFFICIAL FRANKENSTEIN|S.T.A.L.K.E.R.: Shadow of Chernobyl|PVE|
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/10454495json
{
"response": {
"steam_id": "90284557946955781",
"domain": null,
"id": 10454495,
"ip": "212.22.93.107",
"port": 2312,
"query": 2315,
"color": 0,
"city": "Moscow",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1775843527,
"score": 0,
"last_online": 1776424241,
"icon": null,
"name": "OFFICIAL FRANKENSTEIN|S.T.A.L.K.E.R.: Shadow of Chernobyl|PVE|",
"connect": "212.22.93.107:2312",
"request": "212.22.93.107:2315",
"map": "ExclusionZone",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1759986104,
"last_update": 1776424241,
"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": 2149,
"language": "ru",
"parked": false,
"app": {
"id": 63,
"steam_id": 221100,
"name": "DayZ",
"url": "dayz"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/10454495");
$data = json_decode($json, true);
var_dump($data);