Sons Of The Forest
API для SOTF
JSON для программ, сайтов и прочего
text
https://api.gamemonitoring.ru/servers/10788344json
{
"response": {
"steam_id": "90279217843043352",
"domain": null,
"id": 10788344,
"ip": "115.42.46.150",
"port": 7799,
"query": 27047,
"color": 0,
"city": "Los Angeles",
"description": null,
"game": 1326470,
"owner": null,
"boosts": 1,
"last_offline": 1774685544,
"score": 0,
"last_online": 1776448915,
"icon": null,
"name": "SOTF",
"connect": "115.42.46.150:7799",
"request": "115.42.46.150:27047",
"map": "Hard",
"gamemode": "Sons Of the Forest",
"version": "0.11.3.0.0",
"numplayers": 0,
"maxplayers": 8,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766874236,
"last_update": 1776448915,
"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": 494,
"language": "en",
"parked": false,
"app": {
"id": 1569757,
"steam_id": 1326470,
"name": "Sons Of The Forest",
"url": "sons-of-the-forest"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/10788344");
$data = json_decode($json, true);
var_dump($data);