API для 4FUNN TEST
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793914021,
"app": {
"id": 11540,
"name": "SCUM",
"steam_id": 513710,
"url": "scum"
},
"color": 0,
"connect": "178.86.251.107:7002",
"country": "SA",
"domain": null,
"game": 513710,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19700357,
"ip": "178.86.251.107",
"language": null,
"last_update": 1794431976,
"map": null,
"maxplayers": 10,
"name": "4FUNN TEST",
"numplayers": 0,
"official": false,
"points": 0,
"port": 7002,
"private": false,
"project_id": null,
"pve": null,
"pvp": null,
"query": 7002,
"request": "178.86.251.107:7002",
"secured": null,
"status": false,
"steam_id": null,
"version": "1.3.5.2.172724",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Эр-Рияд",
"description": null,
"disabled_modules": [],
"gamemode": "community-direct",
"hidden": false,
"last_offline": 1794431976,
"last_online": 1794345106,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 10237,
"wipe_period": null,
"type": 0,
"build": 172724,
"extraFlags": 0,
"statusFlags": 96,
"nameHeaderRaw": "422b2a020503",
"unknownStatusFlags": 96
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19700357");
$data = json_decode($json, true);
var_dump($data);