面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/1627987
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 84051,
    "world_seed": 189236742,
    "world_size": 4500,
    "steam_id": "90286627725537289",
    "domain": null,
    "id": 1627987,
    "ip": "66.187.76.16",
    "port": 28015,
    "query": 28016,
    "project_id": null,
    "color": 0,
    "city": "Houston",
    "description": "![Rusty XR Noobs | PvE or PvP with RaidControl | 10x+ | SlowDecay](https://d.getip.ca/RUST/RustyNoobsHeader.jpg)\nLearn RUST at your own pace on a non-toxic server!\r\n-Raid&PvPControl: You are fully PvE and RAID protected unless YOU decide to enable RAID and/or PvP and get coins for it.\r\n-Full pvp deep sea zone with buildable islands\r\n-Max DUO team size when raiding or defending a player base, no double-teaming the same base\r\n-90% less damage from animals & NPC's for 1st hour playtime\r\n-Keep inventory on death except suicide, while raiding or PvP killed (if enabled)\r\n-Fully protected backpack (except from wipe)\r\n-Patrol Helicopter 11 difficulty levels from training to insane\r\n-Static Lootables (can loot lots of things like trees, nodes, cars, etc.)\r\n-50% upkeep cost and slow decay rate\r\n-10x+ Resources (up to 20x @ night), 200x faster smelting & recycling \r\n-Random Events from Super Easy to Hardcore\r\n-Free Raidable Bases (Server keeps 8 out of random 452+ spawned at all times)\r\n-Free PvP practice minigame (Provided loot, nothing to lose)\r\n-Full Shop with sellable items and 100 coins per 10 min\r\n-EZ on-the-go Quests to make even more coins\r\n-Kits\r\n-Teleporter\r\n-Skins Shop updated daily with all workshop unaccepted skins (120k+) + skinner-style implementation\r\n-RUST+ Enabled\r\n-9950x with 10Gbps connection server\r\n\r\nYou can do anything, but please don't do nothing!\r\n\r\ndiscord.gg/vYvFJPnDR8\r\n\r\nServer tag: rs000003in#(3jmaE0S<ev",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595060,
    "last_online": 1780679430,
    "icon": null,
    "name": "Rusty XR Noobs | PvE or PvP with RaidControl | 10x+ | SlowDecay",
    "connect": "66.187.76.16:28015",
    "request": "66.187.76.16:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 3,
    "maxplayers": 69,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1698322815,
    "last_update": 1780679430,
    "banned": false,
    "wipe": 1780595195,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1928,
    "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/1627987");
$data = json_decode($json, true);
var_dump($data);