面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11506090
json
{
  "response": {
    "revision": "254920",
    "protocol": 1102,
    "gameident": "rlrp.ascensionrp",
    "mapident": "rpdowntown3t",
    "hidden": false,
    "api": 25,
    "steam_id": "90286363052709905",
    "domain": null,
    "id": 11506090,
    "ip": "51.195.127.36",
    "port": 9105,
    "query": 9106,
    "color": 2,
    "city": "Limburg an der Lahn",
    "description": "[{\"id\":\"OJNnpQFmYT\",\"type\":\"header\",\"data\":{\"text\":\"⚡️ Als erster und einziger deutscher „Ascension RP“-Server erwartet euch:\",\"level\":2}},{\"id\":\"8TwfCafDN0\",\"type\":\"paragraph\",\"data\":{\"text\":\"• Besonderes & erweitertes Roleplay 🎭\\n• Zahlreiche Features ⚙️\\n• Dynamische Wirtschaft 💰\\n• Individuelle Fraktionen 🕴️\\n• Immersive Jobsysteme 👮🚑\\n• Erweitertes DarkRP ⚡️\\n• Einzigartige Charakterentwicklung 🧠\\n• Ständig weiterentwickelte Welt 🌍\\n➡️ Werde Teil unserer neuen Welt.\"}},{\"id\":\"cYFCvc2X-1\",\"type\":\"image\",\"data\":{\"caption\":\"\",\"withBorder\":false,\"withBackground\":false,\"stretched\":false,\"file\":{\"url\":\"https://cdn.gamemonitoring.net/images/content/25f7dfec-649d-4002-9ee3-d62eb1637a65.png\"}}}]",
    "game": 590830,
    "owner": 194043,
    "boosts": 3,
    "last_offline": 1779223608,
    "last_online": 1780572012,
    "icon": null,
    "name": "[GER] AKG x DarkRP - Erweitertes RP mit unzaehligen Features",
    "connect": "51.195.127.36:9105",
    "request": "51.195.127.36:9106",
    "map": "thieves.rpdowntown3t",
    "gamemode": "Ascension RP",
    "version": "254920",
    "numplayers": 0,
    "maxplayers": 64,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 1,
    "points": 273,
    "add_date": 1779223293,
    "last_update": 1780572012,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": 1,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2,
    "language": "de",
    "parked": false,
    "app": {
      "id": 1646716,
      "steam_id": 590830,
      "name": "s&box",
      "url": "sbox"
    },
    "server_owner": {
      "username": "trtox1c",
      "avatar": "67a6d855-8c43-4dd9-9288-ca511aaba72c.png"
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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