面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607087
json
{
  "response": {
    "fps": 25,
    "fps_avg": 21,
    "entities_count": 157301,
    "world_seed": 1958297472,
    "world_size": 4000,
    "steam_id": "90286539597470747",
    "domain": null,
    "id": 11607087,
    "ip": "144.48.106.74",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Chicago",
    "description": "![NEVERLAND X100 PVE USA, raidable bases, abandoned bases, skills](https://www.dropbox.com/scl/fi/cn2u2tzl31jm1n923kafs/neverlandserverbannerJPG.png?rlkey=3rosbbq4n6anufx9gdgm1nhz9&st=usftkflf&dl=1)\nWelcome to the Official Neverland PvE/PvP Rust server! \r\n \r\n Some custom weapons \r\n \r\n Gun Game event for players to fight each other \r\n \r\nDifferent levels of spawnable raidbases!(they also spawn throughout the map randomly) \r\n Personal spawnable Mini! \r\n Base can be raided after 2 DAYS beign offline (vip grants you more offline time) \r\n Buy and call in personal Heli's / Bradleys! \r\n Server purge starts 24 hours for server wipe, all hell will break loose! \r\n Active Admins, we suggest to join our Discord for questions / problems / suggestions and more!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779944626,
    "last_online": 1780579232,
    "icon": null,
    "name": "NEVERLAND X100 PVE USA, raidable bases, abandoned bases, skills",
    "connect": "144.48.106.74:28015",
    "request": "144.48.106.74:28017",
    "map": "Custom Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779915494,
    "last_update": 1780579232,
    "banned": false,
    "wipe": 1779361773,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2110,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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