Project Zomboid
My PZ Server için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11161853json
{
"response": {
"steam_id": 90285180652655620,
"domain": null,
"id": 11161853,
"ip": "109.185.145.57",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Chisinau",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1777630942,
"score": 0,
"last_online": 1777594231,
"icon": null,
"name": "My PZ Server",
"connect": "109.185.145.57:16261",
"request": "109.185.145.57:16261",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.17",
"numplayers": 0,
"maxplayers": 6,
"bots": 0,
"secured": true,
"private": true,
"country": "MD",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1772228271,
"last_update": 1777630942,
"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": 5275,
"language": "ro",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Kod örnekleri
php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/11161853");
$data = json_decode($json, true);
var_dump($data);