面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/6787404
json
{
  "response": {
    "steam_id": "90286589845886998",
    "domain": null,
    "id": 6787404,
    "ip": "156.236.84.129",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "Los Angeles",
    "description": "![POG 2X - Great Mods / Great Admin!!!](https://cdn3.mapstr.gg/7a222486802e83108cca1c2518f72089.jpg)\nPigz of Gaming is a fun server that both novices and warriors can enjoy!!\r\n\r\nWe have Raidable Bases PRO plus Convoy PRO as well as many mods (see list) that make this server SO MUCH FUN!!! Click External Website button to join our Discord!!\r\n\r\nArmoredTrain\r\nAutoPickupBarrel\r\nBaseRepair\r\nBuildingGrades\r\nBuildingWorkbench\r\nCargoPlaneCrash\r\nConvoy\r\nDeathNotes\r\nInfoPanel\r\nKits\r\nNPCDropGun\r\nNpcSpawn\r\nNTeleportation\r\nPocketZipline\r\nPrivateMessages\r\nRaidableBases\r\nRainOfFire\r\nRecycleManager\r\nRemoverTool\r\nSAMSiteAuth\r\nScheduledMessages\r\nSecurityLights\r\nShipwreck\r\nSignArtist\r\nSpawnHeli\r\nSputnik\r\nStackSizeController\r\nZoneManager",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780002170,
    "last_online": 1780568016,
    "icon": null,
    "name": "POG 2X - Great Mods / Great Admin!!!",
    "connect": "156.236.84.129:28035",
    "request": "156.236.84.129:28036",
    "map": "Procedural Map",
    "gamemode": "Rust",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1733159663,
    "last_update": 1780568016,
    "banned": false,
    "wipe": 1778282120,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2744,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

php
<?php
$json = file_get_contents("https://api.gamemonitoring.cn/servers/6787404");
$data = json_decode($json, true);
var_dump($data);