API для kanikani Server
JSON для программ, сайтов и прочего
text
json
{
"response": {
"add_date": 1793875132,
"app": {
"id": 13818,
"name": "Stormworks: Build and Rescue",
"steam_id": 573090,
"url": "stormworks-build-and-rescue"
},
"color": 0,
"connect": "106.73.62.106:25000",
"country": "JP",
"domain": null,
"game": 573090,
"hide_address": false,
"hide_query": false,
"icon": null,
"id": 19681365,
"ip": "106.73.62.106",
"language": "ja",
"last_update": 1794768368,
"map": "Career",
"maxplayers": 32,
"name": "kanikani Server",
"numplayers": 0,
"official": null,
"points": 0,
"port": 25000,
"private": null,
"project_id": null,
"pve": null,
"pvp": null,
"query": 25001,
"request": "106.73.62.106:25001",
"secured": false,
"status": false,
"steam_id": "90297510290466828",
"version": "1.0.0.0",
"votes": 0,
"wipe": null,
"ban_reason": null,
"banned": false,
"boosts": 1,
"bots": 0,
"city": "Иокогама",
"description": null,
"disabled_modules": [],
"gamemode": null,
"hidden": false,
"last_offline": 1794768368,
"last_online": 1794737159,
"list_hidden": false,
"map_url": null,
"mods": [],
"next_wipe": null,
"parked": false,
"position_game": 111,
"wipe_period": null,
"os": "w",
"region": -1,
"product": "Stormworks",
"gametype": "v1.15.26-7-64-1",
"dedicated": true
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/19681365");
$data = json_decode($json, true);
var_dump($data);