API for My PZ Server
JSON for programs, websites and more
text
json
{
"response": {
"steam_id": "90286474579419160",
"domain": null,
"id": 11537024,
"ip": "8.166.140.93",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Guangzhou",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780309402,
"last_online": 1780329655,
"icon": null,
"name": "My PZ Server",
"connect": "8.166.140.93:16261",
"request": "8.166.140.93:16261",
"map": "Greenleaf;Grapeseed;li_township",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 32,
"add_date": 1779355319,
"last_update": 1780329655,
"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": 3853,
"language": "zh",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Code examples
php
<?php
$json = file_get_contents("https://api.gamemonitoring.net/servers/11537024");
$data = json_decode($json, true);
var_dump($data);