Project Zomboid
My PZ Server के लिए API
प्रोग्राम, वेबसाइट और अन्य के लिए JSON
text
https://api.gamemonitoring.in/servers/10635503json
{
"response": {
"steam_id": "90284816354338834",
"domain": null,
"id": 10635503,
"ip": "203.135.101.249",
"port": 21488,
"query": 21488,
"color": 0,
"city": "Hangzhou",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1776791002,
"score": 0,
"last_online": 1776945642,
"icon": null,
"name": "My PZ Server",
"connect": "203.135.101.249:21488",
"request": "203.135.101.249:21488",
"map": "map_distanciado;Chinatown B42 v",
"gamemode": "Project Zomboid",
"version": "42.16",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": true,
"private": false,
"country": "CN",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1763714511,
"last_update": 1776945642,
"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": 3345,
"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/10635503");
$data = json_decode($json, true);
var_dump($data);