API для FOS
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90289443316897805",
"domain": null,
"id": 12502113,
"ip": "24.211.102.141",
"port": 2302,
"query": 2303,
"project_id": null,
"color": 0,
"city": "Summerville",
"description": null,
"game": 107410,
"owner": null,
"boosts": 1,
"last_offline": 1784767657,
"last_online": 1784766808,
"icon": null,
"name": "FOS",
"connect": "24.211.102.141:2302",
"request": "24.211.102.141:2303",
"map": "Altis",
"gamemode": "Antistasi Ultimate - Altis",
"version": "2.20.152984",
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": false,
"private": true,
"country": "US",
"status": false,
"votes": 0,
"points": 36,
"add_date": 1784742724,
"last_update": 1784767657,
"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": 238,
"language": "en",
"parked": false,
"app": {
"id": 61,
"steam_id": 107410,
"name": "Arma 3",
"url": "arma-3"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12502113");
$data = json_decode($json, true);
var_dump($data);