Half-Life
API для TR | PGA | Best Global | AG TDM
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/11486848json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11486848,
"ip": "46.37.115.30",
"port": 27016,
"query": 27016,
"color": 0,
"city": "Istanbul",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1776762800,
"score": 0,
"last_online": 1776774628,
"icon": null,
"name": "TR | PGA | Best Global | AG TDM",
"connect": "46.37.115.30:27016",
"request": "46.37.115.30:27016",
"map": "crossfire",
"gamemode": "AG TDM",
"version": "1.1.2.7/Stdio",
"numplayers": 3,
"maxplayers": 32,
"bots": 0,
"secured": true,
"private": false,
"country": "TR",
"status": true,
"votes": 0,
"points": 49,
"add_date": 1774979574,
"last_update": 1776774628,
"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": 47,
"language": "tr",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/11486848");
$data = json_decode($json, true);
var_dump($data);