Squad 44
1.ID — 1st Infantry Division — discord.gg/1 的 API
面向程序、网站等的 JSON
text
https://api.gamemonitoring.cn/servers/7553346json
{
"response": {
"steam_id": "90284542815905811",
"domain": null,
"id": 7553346,
"ip": "66.45.238.30",
"port": 7787,
"query": 27165,
"color": 0,
"city": "Secaucus",
"description": null,
"game": 736220,
"owner": null,
"boosts": 1,
"last_offline": 1776055869,
"score": 0,
"last_online": 1776418340,
"icon": null,
"name": "1.ID — 1st Infantry Division — discord.gg/1",
"connect": "66.45.238.30:7787",
"request": "66.45.238.30:27165",
"map": "Driel Seeding 01",
"gamemode": "Seeding",
"version": "v2.6.1.566911",
"numplayers": 0,
"maxplayers": 100,
"bots": 0,
"secured": false,
"private": false,
"country": "US",
"status": true,
"votes": 0,
"points": 30,
"add_date": 1739399482,
"last_update": 1776418340,
"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": 16,
"language": "en",
"parked": false,
"app": {
"id": 19973,
"steam_id": 736220,
"name": "Squad 44",
"url": "squad-44"
},
"server_owner": null,
"mods": [],
"disabled_modules": []
}
}代码示例
php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/7553346");
$data = json_decode($json, true);
var_dump($data);