面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11182152
json
{
  "response": {
    "channels": {
      "onlinecount": 82,
      "items": [
        {
          "clients": 2,
          "id": 81,
          "items": [],
          "name": "Accueil",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 91,
          "items": [
            {
              "clients": 0,
              "id": 1346,
              "items": [],
              "name": "Salon 1",
              "order": 0,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1347,
              "items": [],
              "name": "Salon 2",
              "order": 1346,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1358,
              "items": [],
              "name": "Salon 3",
              "order": 1347,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1361,
              "items": [],
              "name": "Salon 4",
              "order": 1358,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1362,
              "items": [],
              "name": "Salon 5",
              "order": 1361,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1368,
              "items": [],
              "name": "Salon 6",
              "order": 1362,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1369,
              "items": [],
              "name": "Salon 7",
              "order": 1368,
              "parent_id": 91,
              "topic": ""
            },
            {
              "clients": 2,
              "id": 1370,
              "items": [],
              "name": "Salon 8",
              "order": 1369,
              "parent_id": 91,
              "topic": ""
            }
          ],
          "name": "Discussions",
          "order": 81,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1334,
          "items": [],
          "name": "[spacer1]___",
          "order": 91,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1343,
          "items": [],
          "name": "[spacer4]___",
          "order": 303,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1340,
          "items": [],
          "name": "[spacer6]___",
          "order": 304,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1363,
          "items": [],
          "name": "[spacer7]___",
          "order": 1070,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1350,
          "items": [],
          "name": "[spacer2]___",
          "order": 1083,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1083,
          "items": [
            {
              "clients": -1,
              "id": 1349,
              "items": [
                {
                  "clients": 0,
                  "id": 1351,
                  "items": [],
                  "name": "Salon 1",
                  "order": 0,
                  "parent_id": 1349,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1352,
                  "items": [],
                  "name": "Salon 2",
                  "order": 1351,
                  "parent_id": 1349,
                  "topic": ""
                },
                {
                  "clients": 6,
                  "id": 1159,
                  "items": [],
                  "name": "Sauvage 🔞☢☣",
                  "order": 1352,
                  "parent_id": 1349,
                  "topic": ""
                }
              ],
              "name": "Dialogos",
              "order": 0,
              "parent_id": 1083,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 87,
              "items": [
                {
                  "clients": 0,
                  "id": 1348,
                  "items": [],
                  "name": "AG & CA",
                  "order": 0,
                  "parent_id": 87,
                  "topic": ""
                },
                {
                  "clients": -1,
                  "id": 378,
                  "items": [],
                  "name": "Au sommet",
                  "order": 1277,
                  "parent_id": 87,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1277,
                  "items": [],
                  "name": "Le bureau",
                  "order": 1348,
                  "parent_id": 87,
                  "topic": ""
                }
              ],
              "name": "Réunion #LpB#",
              "order": 1349,
              "parent_id": 1083,
              "topic": ""
            }
          ],
          "name": "[cspacer]--{ #LpB# }--",
          "order": 1334,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 303,
          "items": [
            {
              "clients": -1,
              "id": 90,
              "items": [
                {
                  "clients": 0,
                  "id": 1181,
                  "items": [],
                  "name": "L'atelier DIY - Entrée libre",
                  "order": 0,
                  "parent_id": 90,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 298,
                  "items": [],
                  "name": "Infographie / Vidéo / Modélisation 3D",
                  "order": 296,
                  "parent_id": 90,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 296,
                  "items": [
                    {
                      "clients": 0,
                      "id": 1109,
                      "items": [],
                      "name": "Bêta-tests",
                      "order": 0,
                      "parent_id": 296,
                      "topic": ""
                    }
                  ],
                  "name": "Edition missions & mod",
                  "order": 379,
                  "parent_id": 90,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 379,
                  "items": [],
                  "name": "Admin. système / Dev. web",
                  "order": 1181,
                  "parent_id": 90,
                  "topic": ""
                }
              ],
              "name": "Ca bosse, ou pas...",
              "order": 0,
              "parent_id": 303,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 1161,
              "items": [
                {
                  "clients": -1,
                  "id": 1341,
                  "items": [],
                  "name": "⛔ Salon 1",
                  "order": 0,
                  "parent_id": 1161,
                  "topic": ""
                },
                {
                  "clients": -1,
                  "id": 1342,
                  "items": [],
                  "name": "⛔ Salon 2",
                  "order": 1341,
                  "parent_id": 1161,
                  "topic": ""
                }
              ],
              "name": "🎬 Stream🎬 - Disturb = Ban 7j",
              "order": 90,
              "parent_id": 303,
              "topic": ""
            }
          ],
          "name": "[cspacer]--{ Work }--",
          "order": 1338,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 304,
          "items": [
            {
              "clients": -1,
              "id": 1074,
              "items": [
                {
                  "clients": 0,
                  "id": 1178,
                  "items": [],
                  "name": "Game 1",
                  "order": 0,
                  "parent_id": 1074,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1179,
                  "items": [],
                  "name": "Game 2",
                  "order": 1178,
                  "parent_id": 1074,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1075,
                  "items": [],
                  "name": "CrazyCo",
                  "order": 1179,
                  "parent_id": 1074,
                  "topic": ""
                }
              ],
              "name": "CounterStrike",
              "order": 0,
              "parent_id": 304,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 1144,
              "items": [
                {
                  "clients": 0,
                  "id": 1283,
                  "items": [],
                  "name": "Salon 1",
                  "order": 0,
                  "parent_id": 1144,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1222,
                  "items": [],
                  "name": "Salon 3",
                  "order": 1221,
                  "parent_id": 1144,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1223,
                  "items": [],
                  "name": "Salon 4",
                  "order": 1222,
                  "parent_id": 1144,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1221,
                  "items": [],
                  "name": "Salon 2",
                  "order": 1283,
                  "parent_id": 1144,
                  "topic": ""
                }
              ],
              "name": "Jeux divers",
              "order": 1074,
              "parent_id": 304,
              "topic": ""
            }
          ],
          "name": "[cspacer]--{ Serveurs autres }--",
          "order": 1339,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 383,
          "items": [
            {
              "clients": 0,
              "id": 803,
              "items": [],
              "name": "Sur un autre TS / Discord",
              "order": 0,
              "parent_id": 383,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 88,
              "items": [],
              "name": "Prison",
              "order": 86,
              "parent_id": 383,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 86,
              "items": [
                {
                  "clients": 0,
                  "id": 756,
                  "items": [],
                  "name": "Revient dans 5 minutes",
                  "order": 0,
                  "parent_id": 86,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1215,
                  "items": [],
                  "name": "Inactif",
                  "order": 756,
                  "parent_id": 86,
                  "topic": ""
                }
              ],
              "name": "Absent",
              "order": 803,
              "parent_id": 383,
              "topic": ""
            }
          ],
          "name": "[cspacer]--{ Garderie }--",
          "order": 1340,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1345,
          "items": [
            {
              "clients": -1,
              "id": 338,
              "items": [
                {
                  "clients": 0,
                  "id": 1169,
                  "items": [
                    {
                      "clients": 0,
                      "id": 1308,
                      "items": [],
                      "name": "En attente TFAR Domination",
                      "order": 0,
                      "parent_id": 1169,
                      "topic": ""
                    },
                    {
                      "clients": 0,
                      "id": 1309,
                      "items": [],
                      "name": "TFAR Domination",
                      "order": 1308,
                      "parent_id": 1169,
                      "topic": ""
                    }
                  ],
                  "name": "Domination",
                  "order": 0,
                  "parent_id": 338,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1184,
                  "items": [
                    {
                      "clients": 0,
                      "id": 1186,
                      "items": [],
                      "name": "En attente de connexion TFR",
                      "order": 0,
                      "parent_id": 1184,
                      "topic": ""
                    },
                    {
                      "clients": 0,
                      "id": 1185,
                      "items": [],
                      "name": "TFAR Maquisard",
                      "order": 1186,
                      "parent_id": 1184,
                      "topic": ""
                    }
                  ],
                  "name": "Maquisard",
                  "order": 1169,
                  "parent_id": 338,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1156,
                  "items": [],
                  "name": "Escape",
                  "order": 1184,
                  "parent_id": 338,
                  "topic": ""
                }
              ],
              "name": "Arma 3",
              "order": 0,
              "parent_id": 1345,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1263,
              "items": [],
              "name": "Enshrouded",
              "order": 338,
              "parent_id": 1345,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1353,
              "items": [],
              "name": "Blackwake",
              "order": 1168,
              "parent_id": 1345,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1168,
              "items": [],
              "name": "Space Engineers",
              "order": 1236,
              "parent_id": 1345,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1236,
              "items": [],
              "name": "Minecraft",
              "order": 1263,
              "parent_id": 1345,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 1354,
              "items": [
                {
                  "clients": 0,
                  "id": 1355,
                  "items": [],
                  "name": "Groupe 1",
                  "order": 0,
                  "parent_id": 1354,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 1356,
                  "items": [],
                  "name": "Groupe 2",
                  "order": 1355,
                  "parent_id": 1354,
                  "topic": ""
                }
              ],
              "name": "Rust",
              "order": 1353,
              "parent_id": 1345,
              "topic": "On joue à Rust ?"
            }
          ],
          "name": "[cspacer]--{ Serveurs #LpB# }--",
          "order": 1343,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1339,
          "items": [],
          "name": "[spacer5]___",
          "order": 1345,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1070,
          "items": [
            {
              "clients": -1,
              "id": 1073,
              "items": [],
              "name": "\"Staff stuff\" - M&C - Geeks Inside",
              "order": 0,
              "parent_id": 1070,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 1120,
              "items": [
                {
                  "clients": -1,
                  "id": 1330,
                  "items": [],
                  "name": "Rats Hideout",
                  "order": 0,
                  "parent_id": 1120,
                  "topic": ""
                },
                {
                  "clients": -1,
                  "id": 1279,
                  "items": [],
                  "name": "Apex - Predator sinon rien",
                  "order": 1072,
                  "parent_id": 1120,
                  "topic": ""
                },
                {
                  "clients": -1,
                  "id": 1278,
                  "items": [
                    {
                      "clients": -1,
                      "id": 1318,
                      "items": [],
                      "name": "Duel - 1v1",
                      "order": 0,
                      "parent_id": 1278,
                      "topic": ""
                    },
                    {
                      "clients": -1,
                      "id": 1331,
                      "items": [],
                      "name": "Trinity 1v1v1",
                      "order": 1318,
                      "parent_id": 1278,
                      "topic": ""
                    },
                    {
                      "clients": -1,
                      "id": 1360,
                      "items": [],
                      "name": "Five stack - 1v1v1v1v1",
                      "order": 1319,
                      "parent_id": 1278,
                      "topic": ""
                    },
                    {
                      "clients": -1,
                      "id": 1319,
                      "items": [],
                      "name": "Holy Square - 1v1v1v1",
                      "order": 1331,
                      "parent_id": 1278,
                      "topic": ""
                    }
                  ],
                  "name": "Le coin des mecs qui jouent pas (ou pas)",
                  "order": 1259,
                  "parent_id": 1120,
                  "topic": ""
                },
                {
                  "clients": -1,
                  "id": 1259,
                  "items": [],
                  "name": "Sim Racist - Hotlap any% - LMU / Assetto",
                  "order": 1279,
                  "parent_id": 1120,
                  "topic": ""
                },
                {
                  "clients": -1,
                  "id": 1072,
                  "items": [],
                  "name": "Whisky Coca et rosé pamp'",
                  "order": 1330,
                  "parent_id": 1120,
                  "topic": ""
                }
              ],
              "name": "/angerydurak/ - 4chan edition",
              "order": 1073,
              "parent_id": 1070,
              "topic": ""
            }
          ],
          "name": "[cspacer]--{ Angery Durak }--",
          "order": 1350,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1364,
          "items": [
            {
              "clients": 0,
              "id": 1366,
              "items": [],
              "name": "Discussion",
              "order": 0,
              "parent_id": 1364,
              "topic": ""
            }
          ],
          "name": "[cspacer]--{ Rj }--",
          "order": 1363,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 1338,
          "items": [],
          "name": "[spacer3]___",
          "order": 1364,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "fdSaGTl2kpStnKgBJiIAB4Zg/rM=",
    "platform": "Linux",
    "created": 1287891400,
    "uptime": 3922829,
    "steam_id": null,
    "domain": "ts.lespotesbaroudeurs.fr",
    "id": 11182152,
    "ip": "135.125.52.100",
    "port": 9989,
    "query": null,
    "color": 0,
    "city": "Roubaix",
    "description": "**Les potes Baroudeurs**\nUne équipe, une association, mais avant tout une bande de potes !\n\n**Site :**\n[https://www.lespotesbaroudeurs.fr](https://www.lespotesbaroudeurs.fr)\n\n**Discord :**\n[https://discord.gg/aBdKCKDHD4](https://discord.gg/b3unrQ7yx4)\n\n**Monitoring :**\n[https://monitoring.lespotesbaroudeurs.fr](https://monitoring.lespotesbaroudeurs.fr)",
    "game": 9000043,
    "owner": 110045,
    "boosts": 1,
    "last_offline": 1775990516,
    "score": 0,
    "last_online": 1776519013,
    "icon": null,
    "name": "#LpB# Les potes Baroudeurs",
    "connect": "ts.lespotesbaroudeurs.fr:9989",
    "request": null,
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 12,
    "maxplayers": 200,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 94,
    "add_date": 1772475153,
    "last_update": 1776519013,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": true,
    "position_game": 22,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": {
      "username": "WarlordFox3",
      "avatar": "no.jpg",
      "last_online": 1776468784
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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