[#08]DVRussia[PVE][x3x5][NoWipe][Cluster][Mods] 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": "90286902650973191",
"domain": null,
"id": 394078,
"ip": "77.34.2.247",
"port": 7787,
"query": 27022,
"project_id": null,
"color": 0,
"city": "Vladivostok",
"description": "",
"game": 346110,
"owner": null,
"boosts": 1,
"last_offline": 1781284438,
"last_online": 1781295075,
"icon": null,
"name": "[#08]DVRussia[PVE][x3x5][NoWipe][Cluster][Mods]",
"connect": "77.34.2.247:7787",
"request": "77.34.2.247:27022",
"map": "TheCenter",
"gamemode": "TestGameMode_C",
"version": "361.4",
"numplayers": 0,
"maxplayers": 70,
"bots": 0,
"secured": true,
"private": false,
"country": "RU",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1597985816,
"last_update": 1781295075,
"banned": 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": 3181,
"language": "ru",
"parked": false,
"app": {
"id": 67,
"steam_id": 346110,
"name": "ARK: Survival Evolved",
"url": "ark-survival-evolved"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/394078");
$data = json_decode($json, true);
var_dump($data);