面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/10884216
json
{
  "response": {
    "steam_id": "90280175994522637",
    "domain": null,
    "id": 10884216,
    "ip": "190.194.52.9",
    "port": 27015,
    "query": 27015,
    "color": 0,
    "city": "Buenos Aires",
    "description": "[{\"id\":\"AuiI-sYMWK\",\"type\":\"paragraph\",\"data\":{\"text\":\"[ENG]\\nWelcome to Mondongo Network! We are a multi server and multi game network consisting of servers for Minecraft, Garry's Mod, No More Room In Hell and other many more games!\\nIf you have any enquiries please join our Discord at https://discord.gg/uukxghH\\n(Do note that accounts less than 1 day old with no profile picture will be banned due to scrapers.)\\n\\n[ESP]\\nBienvenido a Mondongo Network! Somos una network de multiples juegos y servidores y ofrecemos servidores para Minecraft, Garry's Mod, No More Room In Hell y otros juegos mas!\\nSi tienes alguna duda puedes unirte a nuestro discord https://discord.gg/uukxghH\\n(Nota: Las cuentas con menos de 1 dia de antiguedad y sin foto de perfil van a ser baneadas por seguridad.)\"}}]",
    "game": 224260,
    "owner": 164294,
    "boosts": 1,
    "last_offline": 1773545564,
    "score": 0,
    "last_online": 1776781814,
    "icon": null,
    "name": "[ARG] Mondongo PVP",
    "connect": "190.194.52.9:27015",
    "request": "190.194.52.9:27015",
    "map": "pvp_cs16_assault",
    "gamemode": "No More Room in Hell",
    "version": "1.1.4.2",
    "numplayers": 0,
    "maxplayers": 8,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AR",
    "status": true,
    "votes": 0,
    "points": 90,
    "add_date": 1768321252,
    "last_update": 1776781814,
    "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": 23,
    "language": "es",
    "parked": false,
    "app": {
      "id": 6,
      "steam_id": 224260,
      "name": "No More Room in Hell",
      "url": "no-more-room-in-hell"
    },
    "server_owner": {
      "username": "mondongo_network_arg",
      "avatar": "dce172ff-5c3d-4a8a-bfa4-dab857586aca.jpg",
      "last_online": 1769783737
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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