Project Zomboid
API pentru [RU, PVP/PVE] TWD
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11162240json
{
"response": {
"steam_id": "90284166165706783",
"domain": null,
"id": 11162240,
"ip": "72.61.91.246",
"port": 16261,
"query": 16261,
"color": 0,
"city": "Frankfurt am Main",
"description": "RU server from SS14 and FrogFeed fans",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1774697545,
"score": 0,
"last_online": 1776791425,
"icon": null,
"name": "[RU, PVP/PVE] TWD",
"connect": "72.61.91.246:16261",
"request": "72.61.91.246:16261",
"map": "vehicle_interior;Fort Rock Ridg",
"gamemode": "Project Zomboid",
"version": "41.78.16",
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1772228287,
"last_update": 1776791425,
"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": 2041,
"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/11162240");
$data = json_decode($json, true);
var_dump($data);