API для RaVe Games: Wilderness Public
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1789994990,
"app": {
"id": 147,
"name": "Don't Starve Together",
"steam_id": 322330,
"url": "dont-starve-together"
},
"color": 0,
"connect": "82.69.118.215:1758",
"country": "GB",
"domain": null,
"game": 322330,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 16831460,
"ip": "82.69.118.215",
"language": "en",
"last_update": 1794018552,
"map": null,
"maxplayers": 64,
"name": "RaVe Games: Wilderness Public",
"numplayers": 0,
"official": null,
"points": 30,
"port": 1758,
"private": false,
"project_id": null,
"pve": null,
"pvp": 0,
"query": 1758,
"request": "82.69.118.215:1758",
"secured": null,
"status": true,
"steam_id": null,
"version": "761239",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": null,
"city": "Лондон",
"description": null,
"disabled_modules": [],
"gamemode": "survival",
"hidden": false,
"last_offline": null,
"last_online": 1794018552,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 3974,
"wipe_period": null,
"paused": false,
"season": "winter",
"lanonly": false,
"dedicated": true,
"secondaries": {
"2": {
"id": "2",
"port": 1752,
"__addr": "82.69.118.215",
"steamid": "90296806268416014"
}
},
"clienthosted": false,
"directory_id": "8825f39605efd193334ce46a36e27179"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/16831460");
$data = json_decode($json, true);
var_dump($data);