面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10684815
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 10684815,
    "ip": null,
    "port": null,
    "query": null,
    "project_id": null,
    "color": 0,
    "city": "Dallas",
    "description": "![RustAscent | Build & PVE | 15x RESOURCES | EVENTS  | KITS | ECO](https://raw.githubusercontent.com/mecwerks/item_storage/refs/heads/main/Server_Banner.png)\nWELCOME TO RUST ASCENT!  Hey there, traveler - welcome to the mountain! \r\n We're all about chill vibes, creativity, and helping each other climb. Before you begin your journey, take a moment to read our rules below. \r\n  1:  Be Kind Treat everyone with respect. No hate speech, bullying, or toxic behavior - ever. \r\n 2: Keep It Clean Keep chat and profiles family-friendly. No NSFW, overly rude, or offensive content. \r\n 3: Stay On Topic Use channels for their intended purpose. Keep spam to a minimum. \r\n 4:  No Self-Promo Don't post links, invites, or advertisements without staff approval. \r\n 5:  Respect Staff Admins and mods are here to help - please follow their guidance. \r\n 6:  PVE Only No raiding, stealing, or player killing. This server is focused on cooperation and creativity! \r\n 7:  Play Fair No cheating, exploiting, or abusing bugs. Please report any issues you find. \r\n 8:  Keep It Chill Positive vibes only. We're here to build, relax, and enjoy the game together. \r\n 9:  Enjoy the Journey Share your builds, join events, make friends - embrace the adventure! \r\n 10:  Have Fun! Rust Ascent is a chill space for creativity and exploration. Bring good energy, help others, and enjoy the climb. s3dn8bmY65DPHnl0",
    "game": 252490,
    "owner": 151313,
    "boosts": 1,
    "last_offline": 1768071672,
    "last_online": 1767204012,
    "icon": null,
    "name": "[NA] RustAscent | PVE & CHILL | 15x RESOURCES | EVENTS | KITS",
    "connect": null,
    "request": null,
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": null,
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1764589596,
    "last_update": 1768071672,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13502,
    "language": "en",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "Marxy",
      "avatar": "ccd62daf-4bf1-4151-b5d4-a355740161df.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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