API pentru hawktuah7pz
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286482189415441",
"domain": null,
"id": 11705193,
"ip": "107.150.179.138",
"port": 16263,
"query": 16263,
"color": 0,
"city": "Rishon LeTsiyyon",
"description": null,
"game": 108600,
"owner": null,
"boosts": 1,
"last_offline": 1780262573,
"last_online": 1780339246,
"icon": null,
"name": "hawktuah7pz",
"connect": "107.150.179.138:16263",
"request": "107.150.179.138:16263",
"map": "map_distanciado;Muldraugh, KY",
"gamemode": "Project Zomboid",
"version": "42.19",
"numplayers": 4,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": true,
"country": "IL",
"status": true,
"votes": 0,
"points": 39,
"add_date": 1780262573,
"last_update": 1780339246,
"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": 3571,
"language": "he",
"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/11705193");
$data = json_decode($json, true);
var_dump($data);