Project Zomboid
API pentru QServerSK
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/10216841json
{
"response": {
"steam_id": "90283861911646208",
"domain": null,
"id": 10216841,
"ip": "178.143.68.247",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Senec",
"description": "Server for beginers",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1773545565,
"score": 0,
"last_online": 1776229216,
"icon": null,
"name": "QServerSK",
"connect": "178.143.68.247:16261",
"request": "178.143.68.247:16261",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.16",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "SK",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1756663231,
"last_update": 1776229216,
"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": 514,
"language": "sk",
"parked": false,
"app": {
"id": 71,
"steam_id": 108600,
"name": "Project Zomboid",
"url": "project-zomboid"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/10216841");
$data = json_decode($json, true);
var_dump($data);