Project Zomboid
API pentru [PL][PVE] - Dead Horizon - Polski Server
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/6723835json
{
"response": {
"steam_id": "90284547551468552",
"domain": null,
"id": 6723835,
"ip": "18.185.24.5",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Frankfurt am Main",
"description": "24/7 Polski Server \\n - Wydluzony dzien \\n - Loot Respawn",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1775759524,
"score": 0,
"last_online": 1776447624,
"icon": null,
"name": "[PL][PVE] - Dead Horizon - Polski Server",
"connect": "18.185.24.5:16261",
"request": "18.185.24.5:16261",
"map": "Cruise Ship in KY;Northwest Blo",
"gamemode": "Project Zomboid",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": true,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1732400411,
"last_update": 1776447624,
"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": 305,
"language": "de",
"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/6723835");
$data = json_decode($json, true);
var_dump($data);