API для SN Sons Of The Forest Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789446856,
"app": {
"id": 1569757,
"name": "Sons Of The Forest",
"steam_id": 1326470,
"url": "sons-of-the-forest"
},
"color": 0,
"connect": "92.246.121.8:8766",
"country": "IT",
"domain": null,
"game": 1326470,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16415583,
"ip": "92.246.121.8",
"language": "it",
"last_update": 1790073826,
"map": "Normal",
"maxplayers": 8,
"name": "SN Sons Of The Forest Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 8766,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 27016,
"request": "92.246.121.8:27016",
"secured": false,
"status": false,
"steam_id": "90292848783230999",
"version": "0.11.3.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Montecchio Maggiore-Alte Ceccato",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1790073826,
"last_online": 1789532586,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 2951,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "Sons Of the Forest",
"gametype": "V:SdhTQU1VtrKNP/b0xlZcH2YGgfI=,G:1bde14b0-4582-4ee8-8c08-aa6166c7a4da,LanOnly,Sk,",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16415583");
$data = json_decode($json, true);
var_dump($data);