7 Days to Die
API für Dwarf Factor
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/1122362json
{
"response": {
"steam_id": "90285659992534041",
"domain": null,
"id": 1122362,
"ip": "51.161.196.95",
"port": 52482,
"query": 52480,
"color": 0,
"city": "North Sydney",
"description": "",
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1775998938,
"score": null,
"last_online": 1778610704,
"icon": null,
"name": "Dwarf Factor",
"connect": "51.161.196.95:52482",
"request": "51.161.196.95:52480",
"map": "PREGEN10k",
"gamemode": "7 Days To Die",
"version": "Alpha.21.0.324",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": true,
"country": "AU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1688863391,
"last_update": 1778610704,
"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": 543,
"language": "en",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/1122362");
$data = json_decode($json, true);
var_dump($data);