TS LiveYourGame (LYG) / Serveurs Garry's Mod "LePtitDarkRP" 的 API

面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11142893
json
{
  "response": {
    "channels": {
      "onlinecount": 112,
      "items": [
        {
          "clients": 0,
          "id": 2,
          "items": [],
          "name": "[cspacer0]╔═══════════◥◣◆◢◤═══════════╗",
          "order": 0,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 3,
          "items": [],
          "name": "[cspacer]==== Les haut-gradés ====",
          "order": 2,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 4,
          "items": [],
          "name": "[cspacer0]╚═══════════◥◣◆◢◤═══════════╝",
          "order": 3,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 5,
          "items": [],
          "name": "[spacerstaff1]",
          "order": 4,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 6,
          "items": [
            {
              "clients": 2,
              "id": 685,
              "items": [],
              "name": "Bureau d'Evan Pole",
              "order": 0,
              "parent_id": 6,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 161,
              "items": [],
              "name": "Ne pas déranger",
              "order": 17,
              "parent_id": 6,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 17,
              "items": [],
              "name": "Bureau de Gaspar Ouellet",
              "order": 685,
              "parent_id": 6,
              "topic": ""
            }
          ],
          "name": "Bureau des Fondateurs",
          "order": 5,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 539,
          "items": [
            {
              "clients": 0,
              "id": 624,
              "items": [],
              "name": "Bureau de Mohamed Salami",
              "order": 0,
              "parent_id": 539,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 703,
              "items": [],
              "name": "Bureau de Wassim Sventus",
              "order": 608,
              "parent_id": 539,
              "topic": ""
            },
            {
              "clients": 7,
              "id": 647,
              "items": [],
              "name": "Bureau de Josef Oneil",
              "order": 624,
              "parent_id": 539,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 608,
              "items": [],
              "name": "Bureau de Allex Bako",
              "order": 647,
              "parent_id": 539,
              "topic": ""
            }
          ],
          "name": "Bureau des Responsables",
          "order": 6,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 13,
          "items": [
            {
              "clients": 1,
              "id": 704,
              "items": [],
              "name": "Bureau de Mickael Stone",
              "order": 0,
              "parent_id": 13,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 705,
              "items": [],
              "name": "Bureau de Maxence Chabert",
              "order": 704,
              "parent_id": 13,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 707,
              "items": [],
              "name": "Bureau de Bobby Balace",
              "order": 705,
              "parent_id": 13,
              "topic": ""
            }
          ],
          "name": "Bureaux des Administrateurs",
          "order": 10,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 706,
          "items": [],
          "name": "Bureau Administrateur",
          "order": 13,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 19,
          "items": [],
          "name": "[cspacer]==== Staff ====",
          "order": 18,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 20,
          "items": [],
          "name": "[cspacer1]╚═══════════◥◣◆◢◤═══════════╝",
          "order": 19,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 21,
          "items": [
            {
              "clients": 0,
              "id": 708,
              "items": [],
              "name": "s&box",
              "order": 0,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 23,
              "items": [],
              "name": "Salon Discussion Staff N°2",
              "order": 22,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 24,
              "items": [],
              "name": "Salon Discussion Staff N°3",
              "order": 23,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 25,
              "items": [],
              "name": "Salon Discussion Staff N°4",
              "order": 24,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 26,
              "items": [],
              "name": "Salon Discussion Staff N°5",
              "order": 25,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 22,
              "items": [],
              "name": "Salon Discussion Staff N°1",
              "order": 468,
              "parent_id": 21,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 468,
              "items": [],
              "name": "Réunion Staff - 15/04 - 21h00",
              "order": 708,
              "parent_id": 21,
              "topic": ""
            }
          ],
          "name": "Salons Staff",
          "order": 20,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 214,
          "items": [],
          "name": "Salle d'entretien Staff",
          "order": 21,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 28,
          "items": [
            {
              "clients": 0,
              "id": 29,
              "items": [],
              "name": "Modération #1",
              "order": 0,
              "parent_id": 28,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 31,
              "items": [],
              "name": "Modération #2",
              "order": 29,
              "parent_id": 28,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 30,
              "items": [],
              "name": "Modération Apocalypse",
              "order": 31,
              "parent_id": 28,
              "topic": ""
            }
          ],
          "name": "Modération [Joueurs Interdits]",
          "order": 27,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 33,
          "items": [],
          "name": "[spacerstaff3]",
          "order": 28,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 1,
          "id": 34,
          "items": [],
          "name": "Attente de Recrutement Staff [Info Desc]",
          "order": 33,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 211,
          "items": [],
          "name": "Plainte contre un staff [Info Descrip]",
          "order": 34,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 8,
          "id": 36,
          "items": [],
          "name": "[cspacer]==== Accueil ====",
          "order": 35,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 38,
          "items": [],
          "name": "[spaceraccueil]",
          "order": 36,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": -1,
          "id": 42,
          "items": [],
          "name": "[spacerdebutvip]",
          "order": 37,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 37,
          "items": [],
          "name": "[cspacer2]╚═══════════◥◣◆◢◤═══════════╝",
          "order": 38,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 47,
          "items": [],
          "name": "[*spacer1]═",
          "order": 42,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 49,
          "items": [],
          "name": "[cspacer4]╔═══════════◥◣◆◢◤═══════════╗",
          "order": 47,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 50,
          "items": [],
          "name": "[cspacer]==== Gendarmerie \\p Samu ====",
          "order": 49,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 51,
          "items": [],
          "name": "[cspacer4]╚═══════════◥◣◆◢◤═══════════╝",
          "order": 50,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 52,
          "items": [],
          "name": "[spacergendarme1]",
          "order": 51,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 63,
          "items": [],
          "name": "[spacergendarme2]",
          "order": 52,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 64,
          "items": [],
          "name": "[cspacer5]╔═══════════◥◣◆◢◤═══════════╗",
          "order": 53,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 53,
          "items": [
            {
              "clients": 0,
              "id": 54,
              "items": [
                {
                  "clients": 0,
                  "id": 55,
                  "items": [],
                  "name": "En attente d'entretien",
                  "order": 0,
                  "parent_id": 54,
                  "topic": ""
                },
                {
                  "clients": 0,
                  "id": 56,
                  "items": [],
                  "name": "Salle d'entretien",
                  "order": 55,
                  "parent_id": 54,
                  "topic": ""
                }
              ],
              "name": "Serveur #1",
              "order": 0,
              "parent_id": 53,
              "topic": ""
            }
          ],
          "name": "Recrutement Gendarmerie",
          "order": 63,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 65,
          "items": [],
          "name": "[cspacer]==== Gendarmerie / Samu ====",
          "order": 64,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 66,
          "items": [],
          "name": "[cspacer]Infos Gendarmerie et Samu",
          "order": 65,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 67,
          "items": [],
          "name": "[cspacer5]╚═══════════◥◣◆◢◤═══════════╝",
          "order": 66,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 68,
          "items": [],
          "name": "[spacergendarme3]",
          "order": 67,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 321,
          "items": [],
          "name": "Bureau du Maréchal",
          "order": 68,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 197,
          "items": [],
          "name": "[spacergenafk]",
          "order": 71,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 116,
          "items": [],
          "name": "[spacerfingendarme]",
          "order": 115,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 117,
          "items": [],
          "name": "[*spacer2]═",
          "order": 116,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 118,
          "items": [],
          "name": "[spacer17]",
          "order": 117,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 119,
          "items": [],
          "name": "[cspacer10]╔═══════════◥◣◆◢◤═══════════╗",
          "order": 118,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 120,
          "items": [],
          "name": "[cspacer]==== Citoyens ====",
          "order": 119,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 121,
          "items": [],
          "name": "[cspacer11]╚═══════════◥◣◆◢◤═══════════╝",
          "order": 120,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 122,
          "items": [],
          "name": "[spacer18]",
          "order": 121,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 123,
          "items": [],
          "name": "[cspacer]== Serveur #1 ==",
          "order": 122,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 124,
          "items": [],
          "name": "Salon Citoyen n°1 #1",
          "order": 123,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 125,
          "items": [],
          "name": "Salon Citoyen n°2 #1",
          "order": 124,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 126,
          "items": [],
          "name": "Salon Citoyen n°3 #1",
          "order": 125,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 127,
          "items": [],
          "name": "Salon Citoyen n°4 #1",
          "order": 126,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 128,
          "items": [],
          "name": "Salon Citoyen n°5 #1",
          "order": 127,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 129,
          "items": [],
          "name": "[spacer20]",
          "order": 128,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 144,
          "items": [],
          "name": "[cspacer]== Serveur Apocalypse ==",
          "order": 129,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 145,
          "items": [],
          "name": "Salon Citoyen n°1 Apocalypse",
          "order": 144,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 146,
          "items": [],
          "name": "Salon Citoyen n°2 Apocalypse",
          "order": 145,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 147,
          "items": [],
          "name": "Salon Citoyen n°3 Apocalypse",
          "order": 146,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 148,
          "items": [],
          "name": "Salon Citoyen n°4 Apocalypse",
          "order": 147,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 149,
          "items": [],
          "name": "Salon Citoyen n°5 Apocalypse",
          "order": 148,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 150,
          "items": [],
          "name": "[spacer30]",
          "order": 149,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 563,
          "items": [],
          "name": "[spacer100]",
          "order": 150,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 153,
          "items": [],
          "name": "[cspacer]==== AFK ====",
          "order": 152,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 154,
          "items": [],
          "name": "[cspacer14]╚═══════════◥◣◆◢◤═══════════╝",
          "order": 153,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 156,
          "items": [],
          "name": "AFK",
          "order": 154,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 35,
          "items": [],
          "name": "[cspacer2]╔═══════════◥◣◆◢◤═══════════╗",
          "order": 160,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 152,
          "items": [],
          "name": "[cspacer15]╔═══════════◥◣◆◢◤═══════════╗",
          "order": 179,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 3,
          "id": 115,
          "items": [],
          "name": "AFK Gendarmerie / GIGN",
          "order": 197,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 160,
          "items": [],
          "name": "Besoin d'aide",
          "order": 211,
          "parent_id": 0,
          "topic": "Besoin d'aide [Info Descrip]"
        },
        {
          "clients": 0,
          "id": 27,
          "items": [],
          "name": "[spacerstaff2]",
          "order": 214,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 71,
          "items": [
            {
              "clients": 2,
              "id": 72,
              "items": [],
              "name": "Bureau du Général de Division Pôlar",
              "order": 0,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 1,
              "id": 100,
              "items": [],
              "name": "Bureau du Général Shams Mugi",
              "order": 72,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 74,
              "items": [],
              "name": "Patrouille Bravo",
              "order": 73,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 75,
              "items": [],
              "name": "Patrouille Charlie",
              "order": 74,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 76,
              "items": [],
              "name": "Patrouille Delta",
              "order": 75,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 254,
              "items": [],
              "name": "Patrouille Echo",
              "order": 76,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 271,
              "items": [],
              "name": "Formation Gendarmerie",
              "order": 77,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 9,
              "id": 73,
              "items": [],
              "name": "Patrouille Alpha",
              "order": 100,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 102,
              "items": [],
              "name": "Intervention N°2",
              "order": 101,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 306,
              "items": [],
              "name": "Intervention N°3",
              "order": 102,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 101,
              "items": [],
              "name": "Intervention N°1",
              "order": 254,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 78,
              "items": [],
              "name": "Salon Détente",
              "order": 271,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 661,
              "items": [],
              "name": "Samu #1",
              "order": 306,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 662,
              "items": [],
              "name": "Samu #2",
              "order": 661,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 684,
              "items": [],
              "name": "Réunion Samu",
              "order": 662,
              "parent_id": 71,
              "topic": ""
            },
            {
              "clients": 1,
              "id": 77,
              "items": [],
              "name": "Réunion Gendarmerie",
              "order": 684,
              "parent_id": 71,
              "topic": ""
            }
          ],
          "name": "Serveur #1",
          "order": 321,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 10,
          "items": [
            {
              "clients": 1,
              "id": 698,
              "items": [],
              "name": "Bureau de Célian Nietski",
              "order": 0,
              "parent_id": 10,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 699,
              "items": [],
              "name": "Bureau de Kanna Bako",
              "order": 698,
              "parent_id": 10,
              "topic": ""
            },
            {
              "clients": 0,
              "id": 702,
              "items": [],
              "name": "Bureau de Lou Levy",
              "order": 699,
              "parent_id": 10,
              "topic": ""
            },
            {
              "clients": -1,
              "id": 163,
              "items": [],
              "name": "Zone invisible",
              "order": 702,
              "parent_id": 10,
              "topic": ""
            }
          ],
          "name": "Bureaux des Administrateurs Généraux",
          "order": 539,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 593,
          "items": [],
          "name": "[*spacer16]═",
          "order": 563,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 179,
          "items": [],
          "name": "[spacerafk]",
          "order": 593,
          "parent_id": 0,
          "topic": ""
        },
        {
          "clients": 0,
          "id": 18,
          "items": [],
          "name": "[cspacer1]╔═══════════◥◣◆◢◤═══════════╗",
          "order": 706,
          "parent_id": 0,
          "topic": ""
        }
      ]
    },
    "external_id": "gq2oHlBDnAQV4PaCGp1RPUssbFU=",
    "platform": "Linux",
    "created": 1476637478,
    "uptime": 1153410,
    "steam_id": null,
    "domain": null,
    "id": 11142893,
    "ip": "178.32.67.18",
    "port": 9987,
    "query": 9987,
    "color": 0,
    "city": "Paris",
    "description": "Bienvenue sur notre TeamSpeak\n\nLe discord https://discord.gg/pYD6hKR\nBoutique https://liveyourgame.fr/boutique/\nBienvenue sur notre TeamSpeak, Le discord https://discord.gg/pYD6hKR \\p Boutique https://liveyourgame.fr/boutique/",
    "game": 9000043,
    "owner": null,
    "boosts": 1,
    "last_offline": 1774870332,
    "score": 0,
    "last_online": 1776024035,
    "icon": null,
    "name": "TS LiveYourGame (LYG) / Serveurs Garry's Mod \"LePtitDarkRP\"",
    "connect": "178.32.67.18:9987",
    "request": "178.32.67.18:9987",
    "map": null,
    "gamemode": null,
    "version": "3.13.7 Build: 1655727713",
    "numplayers": 36,
    "maxplayers": 128,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 74,
    "add_date": 1770933677,
    "last_update": 1776024035,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 58,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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