面向程序、网站等的 JSON

text
https://api.gamemonitoring.cn/servers/11252335
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11252335,
    "ip": "5.175.140.133",
    "port": 9987,
    "query": 10011,
    "color": 0,
    "city": "Eygelshoven",
    "description": "**🌐 W E L C O M E   T O   T S 3 L I F E 🌐**\n__________________________________________________\n\n**Connect via: ts3life**\n\n**● INTERNATIONAL**\nWelcome! Feel free to join any public room.\nДобро пожаловать! Присоединяйтесь к нам.\n\n**● TURKISH SECTOR**\nHoş geldiniz! Kaliteli sohbetin adresi.\n\n__________________________________________________\n\n**🏆 TEAMS & CLANS**\n_Contact staff for your free permanent channel!_\n_Ekibiniz için ücretsiz kalıcı oda isteyiniz._\n\n_________________________\n**Giriş Adresi ➜ ts3life\nLogin Address ➜ ts3life**",
    "game": 9000043,
    "owner": 175737,
    "boosts": 1,
    "last_offline": 1776360778,
    "score": 0,
    "last_online": 1775598692,
    "icon": null,
    "name": null,
    "connect": null,
    "request": "5.175.140.133:10011",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "NL",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1773635588,
    "last_update": 1776360778,
    "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": 205,
    "language": "nl",
    "parked": false,
    "app": {
      "id": 1629110,
      "steam_id": 9000043,
      "name": "Teamspeak 3",
      "url": "teamspeak-3"
    },
    "server_owner": {
      "username": "meyve_suyu",
      "avatar": "9e85a652-b8e7-42f5-bc31-5c58d8b5d24c.jpg",
      "last_online": 1773635945
    },
    "mods": [],
    "disabled_modules": []
  }
}

代码示例

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