API für My PZ Server
JSON für Programme, Websites und mehr
text
json
{
"response": {
"steam_id": "90286327959604239",
"domain": null,
"id": 11620506,
"ip": "143.14.9.142",
"port": 51953,
"query": 51953,
"color": 0,
"city": "Bangkok",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1779982370,
"last_online": 1780570894,
"icon": null,
"name": "My PZ Server",
"connect": "143.14.9.142:51953",
"request": "143.14.9.142:51953",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.18",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "TH",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1779916033,
"last_update": 1780570894,
"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": 6509,
"language": "th",
"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/11620506");
$data = json_decode($json, true);
var_dump($data);