API для ph0enas DST
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793744312,
"app": {
"id": 147,
"name": "Don't Starve Together",
"steam_id": 322330,
"url": "dont-starve-together"
},
"color": 0,
"connect": "82.64.71.244:10999",
"country": "FR",
"domain": null,
"game": 322330,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19608044,
"ip": "82.64.71.244",
"language": "fr",
"last_update": 1793835233,
"map": null,
"maxplayers": 4,
"name": "ph0enas DST",
"numplayers": 0,
"official": null,
"points": 0,
"port": 10999,
"private": true,
"project_id": null,
"pve": null,
"pvp": 0,
"query": 10999,
"request": "82.64.71.244:10999",
"secured": null,
"status": false,
"steam_id": null,
"version": "761239",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Париж",
"description": null,
"disabled_modules": [],
"gamemode": "survival",
"hidden": false,
"last_offline": 1793835233,
"last_online": 1793748616,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 17980,
"wipe_period": null,
"paused": false,
"season": "autumn",
"lanonly": false,
"dedicated": true,
"secondaries": {
"2": {
"id": "2",
"port": 10998,
"__addr": "82.64.71.244",
"steamid": "90296565260521492"
},
"3": {
"id": "3",
"port": 10997,
"__addr": "82.64.71.244",
"steamid": "90296565260526612"
},
"4": {
"id": "4",
"port": 10996,
"__addr": "82.64.71.244",
"steamid": "90296565260525588"
}
},
"clienthosted": false,
"directory_id": "KU_fsSEwmcK^Lin91LU23jxn7Dbl"
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19608044");
$data = json_decode($json, true);
var_dump($data);