面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/760843
json
{
  "response": {
    "fps": 73,
    "fps_avg": 76,
    "entities_count": 103468,
    "world_seed": 1699246335,
    "world_size": 4250,
    "steam_id": "90286589734755343",
    "domain": null,
    "id": 760843,
    "ip": "64.40.223.6",
    "port": 28018,
    "query": 28017,
    "color": 0,
    "city": "Abilene",
    "description": "![Four Horsemen | PVE | Monthly | 2X | 5/7](https://i.imgur.com/hUukTAY.jpeg)\nFour Horsemen | PVE | No Killing | No Raiding\r\nServer rules can be found on our discord.\r\nhttps://discord.gg/TEdvqP27An\r\n\r\nPVP 72 hours before wipe. Next PVP event June 1st\r\n\r\nLast Blueprint Wipe - 3/6 March 6th 1PM Central\r\nNext Blueprint Wipe - 1/1 January 1st 1PM Central\r\nLast Map Wipe - 5/7 May 7th 1PM Central\r\nNext Map Wipe - 6/4 June 4th 1PM Central\r\n\r\nTeam Limit 4\r\nNoob Friendly\r\nRaidable Bases\r\nDefendable Bases\r\nNPC Raiders\r\nConvoy\r\nGrid Power\r\nWater Bases\r\nCargo Train Event\r\nTrain Heist Event\r\nMonument NPC's\r\nBoss Monster\r\nNight Lanterns\r\nBackpackpro\r\nFurnace Levels\r\nIncreased Stack Size\r\nReduced Upkeep\r\nDrop Ship\r\nJet Pack",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780089814,
    "last_online": 1780589431,
    "icon": null,
    "name": "Four Horsemen | PVE | Monthly | 2X | 5/7",
    "connect": "64.40.223.6:28018",
    "request": "64.40.223.6:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 20,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1680785167,
    "last_update": 1780589431,
    "banned": false,
    "wipe": 1778178003,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2586,
    "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/760843");
$data = json_decode($json, true);
var_dump($data);