API для shina
JSON для программ, сайтов и прочего
text
json
{
"response": {
"paused": false,
"season": "winter",
"secondaries": {
"728787313": {
"id": "728787313",
"port": 10998,
"__addr": "83.225.115.19",
"steamid": "90292165546085405"
}
},
"directory_id": "KU_vongCCcO",
"steam_id": null,
"domain": null,
"id": 14599004,
"ip": "83.225.115.19",
"port": 10999,
"query": 10999,
"project_id": null,
"color": 0,
"city": "Busto Arsizio",
"description": null,
"game": 322330,
"owner": null,
"boosts": 1,
"last_offline": 1788554472,
"last_online": 1788554548,
"icon": null,
"name": "shina",
"connect": "83.225.115.19:10999",
"request": "83.225.115.19:10999",
"map": null,
"gamemode": "survival",
"version": "747465",
"numplayers": 2,
"maxplayers": 6,
"bots": null,
"secured": null,
"private": true,
"country": "IT",
"status": true,
"votes": 0,
"points": 44,
"add_date": 1788554472,
"last_update": 1788554548,
"ban_reason": null,
"banned": false,
"hidden": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": null,
"pvp": 0,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 10698,
"language": null,
"parked": false,
"app": {
"id": 147,
"steam_id": 322330,
"name": "Don't Starve Together",
"url": "dont-starve-together"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/14599004");
$data = json_decode($json, true);
var_dump($data);