API pentru Server Vanilla+ | Washington 4-Man | TPA/HOME UWU
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "85568392926670066",
"domain": null,
"id": 11578586,
"ip": "66.51.96.55",
"port": 27005,
"query": 27005,
"project_id": null,
"color": 0,
"city": "Ashburn",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1780690460,
"last_online": 1780679494,
"icon": "https://avatars.fastly.steamstatic.com/a475dd7f0778a3cb83f29a47028992f192520a3f_full.jpg",
"name": "Server Vanilla+ | Washington 4-Man | TPA/HOME UWU",
"connect": "66.51.96.55:27005",
"request": "66.51.96.55:27005",
"map": "Washington",
"gamemode": "Vanilla+ | 4-Man | <",
"version": "3.26.3.2",
"numplayers": 0,
"maxplayers": 24,
"bots": 0,
"secured": true,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1779356925,
"last_update": 1780690460,
"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": 2012,
"language": "en",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11578586");
$data = json_decode($json, true);
var_dump($data);