API pentru Loot Cave Bandits
JSON pentru programe, site-uri și altele
text
json
{
"response": {
"steam_id": "90286647399726088",
"domain": null,
"id": 11660396,
"ip": "216.201.72.41",
"port": 9035,
"query": 9036,
"project_id": null,
"color": 0,
"city": "Manassas",
"description": null,
"game": 1604030,
"owner": null,
"boosts": 1,
"last_offline": 1780533859,
"last_online": 1780725089,
"icon": null,
"name": "Loot Cave Bandits",
"connect": "216.201.72.41:9035",
"request": "216.201.72.41:9036",
"map": "VRisingWorld",
"gamemode": "77b71274-f572-41c4-ba5f-2152ef87107a",
"version": "0.0.0.1",
"numplayers": 0,
"maxplayers": 40,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1780178458,
"last_update": 1780725089,
"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": 3517,
"language": "en",
"parked": false,
"app": {
"id": 55075,
"steam_id": 1604030,
"name": "V Rising",
"url": "v-rising"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11660396");
$data = json_decode($json, true);
var_dump($data);