面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11511067
json
{
  "response": {
    "fps": 223,
    "fps_avg": 217,
    "entities_count": 68872,
    "world_seed": 1818866787,
    "world_size": 3500,
    "steam_id": "90286556278534159",
    "domain": null,
    "id": 11511067,
    "ip": "92.222.138.231",
    "port": 25190,
    "query": 25191,
    "color": 0,
    "city": "Paris",
    "description": "![Raid Free Rust Full PVP, No Raiding](https://cdn.corenexis.com/files/c/1739814720.png)\nFull Vanilla based game play without the worry of being raided\r\nFull PVP just without the raiding \r\nideal for beginners that want to learn the game without risking there progress\r\n48hr purge (19:00 GMT on Tuesday- force wipe week)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470419,
    "last_online": 1780554028,
    "icon": null,
    "name": "Raid Free Rust Full PVP, No Raiding",
    "connect": "92.222.138.231:25190",
    "request": "92.222.138.231:25191",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353837,
    "last_update": 1780554028,
    "banned": false,
    "wipe": 1778178032,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5078,
    "language": "fr",
    "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/11511067");
$data = json_decode($json, true);
var_dump($data);