Project Zomboid
API für Project & Zomboid
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11190488json
{
"response": {
"steam_id": "90284708878409753",
"domain": null,
"id": 11190488,
"ip": "157.90.4.251",
"port": 27165,
"query": 27165,
"color": 0,
"city": "Falkenstein",
"description": "P&Z",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775239930,
"score": 0,
"last_online": 1776786026,
"icon": null,
"name": "Project & Zomboid",
"connect": "157.90.4.251:27165",
"request": "157.90.4.251:27165",
"map": "Another Island;Island Z;Medium",
"gamemode": "Project Zomboid",
"version": "42.17",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772699146,
"last_update": 1776786026,
"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": "de",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11190488");
$data = json_decode($json, true);
var_dump($data);