API для [JP Only][PVE]porinki server[rule ha wiki]
JSON для программ, сайтов и прочего
text
json
{
"response": {
"steam_id": "90291937051496464",
"domain": null,
"id": 12136545,
"ip": "60.98.230.90",
"port": 26008,
"query": 26008,
"project_id": null,
"color": 0,
"city": "Minato-ku",
"description": null,
"game": 251570,
"owner": null,
"boosts": 1,
"last_offline": 1787966851,
"last_online": 1788264827,
"icon": null,
"name": "[JP Only][PVE]porinki server[rule ha wiki]",
"connect": "60.98.230.90:26008",
"request": "60.98.230.90:26008",
"map": "South Suzosu County",
"gamemode": "7 Days To Die",
"version": "01.03.20",
"numplayers": 16,
"maxplayers": 30,
"bots": 0,
"secured": false,
"private": false,
"country": "JP",
"status": true,
"votes": 0,
"points": 85,
"add_date": 1783803685,
"last_update": 1788264827,
"ban_reason": null,
"banned": false,
"hidden": 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": 18,
"language": "ja",
"parked": false,
"app": {
"id": 49,
"steam_id": 251570,
"name": "7 Days to Die",
"url": "7-days-to-die"
},
"server_owner": null,
"mods": [],
"disabled_modules": [],
"map_url": null
}
}Примеры кода
php
<?php
$json = file_get_contents("https://api.gamemonitoring.ru/servers/12136545");
$data = json_decode($json, true);
var_dump($data);