Server hosted by Physgun.com 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11660080,
"ip": "193.243.190.231",
"port": 27022,
"query": 27022,
"project_id": null,
"color": 0,
"city": "Chicago",
"description": null,
"game": 0,
"owner": null,
"boosts": 1,
"last_offline": 1781246580,
"last_online": 1780873330,
"icon": null,
"name": "Server hosted by Physgun.com",
"connect": "193.243.190.231:27022",
"request": "193.243.190.231:27022",
"map": "gm_flatgrass",
"gamemode": "Sandbox",
"version": null,
"numplayers": 0,
"maxplayers": 32,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": false,
"votes": 0,
"points": 0,
"add_date": 1780178439,
"last_update": 1781246580,
"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": 11,
"language": "en",
"parked": false,
"app": {
"id": 119,
"steam_id": 0,
"name": "Unknown package",
"url": "unknown-package"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11660080");
$data = json_decode($json, true);
var_dump($data);