Half-Life
API pentru BY #GunGame 24/7 BHL.BY:27018
JSON pentru programe, site-uri și altele
text
https://api.gamemonitoring.ro/servers/11489092json
{
"response": {
"steam_id": 70,
"domain": "a.bhl.by",
"id": 11489092,
"ip": "88.99.15.210",
"port": 27018,
"query": 27018,
"color": 0,
"city": "Falkenstein",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1776270715,
"score": 0,
"last_online": 1776415979,
"icon": null,
"name": "BY #GunGame 24/7 BHL.BY:27018",
"connect": "a.bhl.by:27018",
"request": "88.99.15.210:27018",
"map": "small",
"gamemode": "GunGame",
"version": "1.1.2.2/Stdio",
"numplayers": 0,
"maxplayers": 16,
"bots": 3,
"secured": false,
"private": false,
"country": "DE",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1776066556,
"last_update": 1776415979,
"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": 396,
"language": "de",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Exemple de cod
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11489092");
$data = json_decode($json, true);
var_dump($data);