Project Zomboid
Hoorn42 için API
Programlar, siteler ve diğerleri için JSON
text
https://api.gamemonitoring.tr/servers/11267521json
{
"response": {
"steam_id": "90284701865598993",
"domain": null,
"id": 11267521,
"ip": "188.90.68.170",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Obdam",
"description": "Hoorn42",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1776271915,
"score": 0,
"last_online": 1776794420,
"icon": null,
"name": "Hoorn42",
"connect": "188.90.68.170:16261",
"request": "188.90.68.170:16261",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.17",
"numplayers": 1,
"maxplayers": 20,
"bots": 0,
"secured": true,
"private": true,
"country": "NL",
"status": true,
"votes": 0,
"points": 63,
"add_date": 1774555510,
"last_update": 1776794420,
"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": 133,
"language": "nl",
"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/11267521");
$data = json_decode($json, true);
var_dump($data);