API for My PZ Server
JSON for programs, websites and more
text
json
{
"response": {
"steam_id": "90286800467649552",
"domain": null,
"id": 11772279,
"ip": "211.217.207.250",
"port": 16261,
"query": 16261,
"project_id": null,
"color": 0,
"city": "Goyang-si",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1781095409,
"last_online": 1781021460,
"icon": null,
"name": "My PZ Server",
"connect": "211.217.207.250:16261",
"request": "211.217.207.250:16261",
"map": "AZSpawn;BedfordFalls;North;Sout",
"gamemode": "Project Zomboid",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "KR",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780996996,
"last_update": 1781095409,
"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": 12399,
"language": "ko",
"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/11772279");
$data = json_decode($json, true);
var_dump($data);