API pentru MSZZD
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286528086753284",
"domain": null,
"id": 11726680,
"ip": "64.31.11.29",
"port": 17200,
"query": 17200,
"color": 0,
"city": "Tokyo",
"description": "MSZZD",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780427655,
"last_online": 1780429825,
"icon": null,
"name": "MSZZD",
"connect": "64.31.11.29:17200",
"request": "64.31.11.29:17200",
"map": "Blackwood;RavenCreek;Fort Rock",
"gamemode": "Project Zomboid",
"version": "41.78.19",
"numplayers": 7,
"maxplayers": 30,
"bots": 0,
"secured": true,
"private": true,
"country": "JP",
"status": true,
"votes": 0,
"points": 75,
"add_date": 1780388703,
"last_update": 1780429825,
"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": 64,
"language": "ja",
"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/11726680");
$data = json_decode($json, true);
var_dump($data);