面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11607382
json
{
  "response": {
    "fps": 115,
    "fps_avg": 116,
    "entities_count": 98875,
    "world_seed": 1337,
    "world_size": 3999,
    "steam_id": "90286271243132951",
    "domain": null,
    "id": 11607382,
    "ip": "157.85.90.186",
    "port": 25252,
    "query": 25253,
    "color": 0,
    "city": "Docklands",
    "description": "H O T single MILFs in This area\r\n*  2x stacks/gather\r\n*  better loot\r\n*  offline raid protection\r\n*  small PVE Zone for non-sweats\r\n*  furnaced splitter\r\n\r\nServer Rules: \r\nBasic B rules\r\nno tc spam\r\nkeep things TOS and safe\r\njust have fun guys",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780570418,
    "last_online": 1779947427,
    "icon": null,
    "name": "Fauna's Funland",
    "connect": "157.85.90.186:25252",
    "request": "157.85.90.186:25253",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779915504,
    "last_update": 1780570418,
    "banned": false,
    "wipe": 1778179736,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12363,
    "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/11607382");
$data = json_decode($json, true);
var_dump($data);