Unturned
Funny 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/10790645json
{
"response": {
"steam_id": "90283532033032212",
"domain": null,
"id": 10790645,
"ip": "162.216.115.123",
"port": 27083,
"query": 27084,
"color": 0,
"city": "Secaucus",
"description": null,
"game": 304930,
"owner": null,
"boosts": 1,
"last_offline": 1774606348,
"score": 0,
"last_online": 1776105662,
"icon": "https://i.imgur.com/IKjnj7G.png",
"name": "Funny",
"connect": "162.216.115.123:27083",
"request": "162.216.115.123:27084",
"map": "Germany",
"gamemode": "Server powered by www.myclan.com",
"version": "1.0.0.0",
"numplayers": 0,
"maxplayers": 12,
"bots": 0,
"secured": true,
"private": true,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1766874732,
"last_update": 1776105662,
"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": 392,
"language": "en",
"parked": false,
"app": {
"id": 48,
"steam_id": 304930,
"name": "Unturned",
"url": "unturned"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/10790645");
$data = json_decode($json, true);
var_dump($data);