Barotrauma
Namakura [DE] 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/819263json
{
"response": {
"steam_id": "90266305974109204",
"domain": null,
"id": 819263,
"ip": "95.217.200.211",
"port": 27015,
"query": 27016,
"color": 0,
"city": "Helsinki",
"description": "",
"game": 602960,
"owner": null,
"boosts": 1,
"last_offline": 1772053298,
"score": null,
"last_online": 1776452483,
"icon": null,
"name": "Namakura [DE]",
"connect": "95.217.200.211:27015",
"request": "95.217.200.211:27016",
"map": "TC107-Tunacan",
"gamemode": "mission",
"version": "1.7.7.0",
"numplayers": 0,
"maxplayers": 10,
"bots": 0,
"secured": false,
"private": false,
"country": "FI",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1684363337,
"last_update": 1776452483,
"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": 50,
"language": "fi",
"parked": false,
"app": {
"id": 50335,
"steam_id": 602960,
"name": "Barotrauma",
"url": "barotrauma"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/819263");
$data = json_decode($json, true);
var_dump($data);