(esp) Tierra de nadie (pve) discord.gg/4QxPcA7v 的 API
面向程序、网站等的 JSON
text
json
{
"response": {
"steam_id": null,
"domain": null,
"id": 11489311,
"ip": null,
"port": null,
"query": null,
"color": 0,
"city": "Frankfurt am Main",
"description": null,
"game": 1766060,
"owner": 188411,
"boosts": 1,
"last_offline": 1778911213,
"last_online": 1777999808,
"icon": null,
"name": "(esp) Tierra de nadie (pve) discord.gg/4QxPcA7v",
"connect": null,
"request": null,
"map": "Main Map",
"gamemode": null,
"version": null,
"numplayers": 0,
"maxplayers": 16,
"bots": 0,
"secured": null,
"private": null,
"country": "DE",
"status": false,
"votes": 39,
"points": 0,
"add_date": 1776273048,
"last_update": 1778911213,
"banned": false,
"wipe": null,
"official": null,
"wipe_period": null,
"next_wipe": null,
"pve": 1,
"pvp": null,
"list_hidden": false,
"hide_address": false,
"hide_query": false,
"position_game": 177,
"language": "es",
"parked": true,
"app": {
"id": 1531516,
"steam_id": 1766060,
"name": "HumanitZ",
"url": "humanitz"
},
"server_owner": {
"username": "xavi_l_pez",
"avatar": "7d01cb0a-7a96-4e96-ab87-2cb3e5b5b50d.jpg"
},
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/11489311");
$data = json_decode($json, true);
var_dump($data);