API pentru United Nations of America 2
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286954941303814",
"domain": null,
"id": 10623639,
"ip": "172.240.18.171",
"port": 27355,
"query": 27355,
"project_id": null,
"color": 0,
"city": "Ashburn",
"description": "...got any smokes?",
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1778784780,
"last_online": 1781368828,
"icon": null,
"name": "United Nations of America 2",
"connect": "172.240.18.171:27355",
"request": "172.240.18.171:27355",
"map": "Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.18",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 60,
"add_date": 1763330898,
"last_update": 1781368828,
"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": 771,
"language": "en",
"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/10623639");
$data = json_decode($json, true);
var_dump($data);