My PZ Server के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
json
{
"response": {
"steam_id": "90286063800326164",
"domain": null,
"id": 11536932,
"ip": "43.248.128.189",
"port": 12206,
"query": 12206,
"color": 0,
"city": "Zhenjiang",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780267399,
"last_online": 1779724371,
"icon": null,
"name": "My PZ Server",
"connect": "43.248.128.189:12206",
"request": "43.248.128.189:12206",
"map": "Grapeseed;AnruisiTown;Chinatown",
"gamemode": "Project Zomboid",
"version": "42.18",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779355316,
"last_update": 1780267399,
"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": 9223,
"language": "zh",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}कोड उदाहरण
php
<?php
$json = file_get_contents("https://api.gamemonitoring.in/servers/11536932");
$data = json_decode($json, true);
var_dump($data);