Project Zomboid
API für Chef's Project Zomboid 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/10237797json
{
"response": {
"steam_id": "90284112144872467",
"domain": null,
"id": 10237797,
"ip": "208.75.182.205",
"port": 27420,
"query": 27420,
"color": 0,
"city": "Dallas",
"description": "Welcome to Chef's Project Zomboid Server",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775304129,
"score": 0,
"last_online": 1775703617,
"icon": null,
"name": "Chef's Project Zomboid Server",
"connect": "208.75.182.205:27420",
"request": "208.75.182.205:27420",
"map": "AZSpawn;vehicle_interior;KingsM",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1756887495,
"last_update": 1775703617,
"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": 591,
"language": "en",
"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/10237797");
$data = json_decode($json, true);
var_dump($data);