API для [MantapBosku X HMA] OpenAG Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"os": "w",
"region": -1,
"product": "valve",
"gametype": null,
"dedicated": true,
"steam_id": "90290666100704260",
"domain": null,
"id": 13634270,
"ip": "160.187.210.113",
"port": 2020,
"query": 2020,
"project_id": null,
"color": 0,
"city": "Iskandar Puteri",
"description": null,
"game": 70,
"owner": null,
"boosts": 1,
"last_offline": 1786544862,
"last_online": 1786576800,
"icon": null,
"name": "[MantapBosku X HMA] OpenAG Server",
"connect": "160.187.210.113:2020",
"request": "160.187.210.113:2020",
"map": "datacore",
"gamemode": null,
"version": "1.1.2.2",
"numplayers": 0,
"maxplayers": 32,
"bots": 5,
"secured": true,
"private": null,
"country": "MY",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1786382638,
"last_update": 1786576800,
"ban_reason": null,
"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": 535,
"language": "ms",
"parked": false,
"app": {
"id": 9,
"steam_id": 70,
"name": "Half-Life",
"url": "half-life"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/13634270");
$data = json_decode($json, true);
var_dump($data);