DayZ
API für TheLastHope DayZ Server by g-portal.com
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11421367json
{
"response": {
"steam_id": "90284705204226078",
"domain": null,
"id": 11421367,
"ip": "147.93.162.120",
"port": 3002,
"query": 3003,
"color": 0,
"city": "Lauterbourg",
"description": null,
"game": 221100,
"owner": null,
"boosts": 1,
"last_offline": 1774600037,
"score": 0,
"last_online": 1776781324,
"icon": null,
"name": "TheLastHope DayZ Server by g-portal.com",
"connect": "147.93.162.120:3002",
"request": "147.93.162.120:3003",
"map": "chernarusplus",
"gamemode": null,
"version": "1.29.162510",
"numplayers": 0,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": true,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1774600037,
"last_update": 1776781324,
"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": 3839,
"language": "fr",
"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/11421367");
$data = json_decode($json, true);
var_dump($data);