Project Zomboid
API für My PZ Server
Wir bieten eine breite Auswahl an Integrationsmethoden. Sie können eine davon verwenden oder Ihre eigene mit der JSON-API erstellen. Wenn Sie einen Vorschlag für eine neue Integrationsmethode haben, kontaktieren Sie uns bitte. Kontaktieren Sie uns
JSON für Programme, Websites und mehr
text
https://api.gamemonitoring.de/servers/11190881json
{
"response": {
"steam_id": "90284046913223688",
"domain": null,
"id": 11190881,
"ip": "146.59.253.199",
"port": 28135,
"query": 28135,
"color": 0,
"city": "Gravelines",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775400730,
"score": 0,
"last_online": 1775739050,
"icon": null,
"name": "My PZ Server",
"connect": "146.59.253.199:28135",
"request": "146.59.253.199:28135",
"map": "map_distanciado;map_rv;AnruisiT",
"gamemode": "Project Zomboid",
"version": "42.16",
"numplayers": 0,
"maxplayers": 4,
"bots": 0,
"secured": true,
"private": false,
"country": "FR",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1772699156,
"last_update": 1775739050,
"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": 5496,
"language": "fr",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid",
"popular_maps_available": false
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Codebeispiele
php
<?php
$json = file_get_contents("https://api.gamemonitoring.de/servers/11190881");
$data = json_decode($json, true);
var_dump($data);