JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11502521
json
{
  "response": {
    "fps": 5,
    "fps_avg": 135,
    "entities_count": 121955,
    "world_seed": 2107701504,
    "world_size": 4250,
    "steam_id": "90286179796718607",
    "domain": null,
    "id": 11502521,
    "ip": "106.81.206.44",
    "port": 28015,
    "query": 28018,
    "color": 0,
    "city": "Chongqing",
    "description": "我真的服了,辛苦建家一晚上,醒来却在沙滩上,我们是沙滩之子吗?\r\n所以推出了离线保护、定时保护(纯免费),这是一个纯绿色3倍公益服,其他的等我研究一下,还没弄明白- -  群:1094661102\r\n最多4人组队,禁开挂宏,发现ban全队! 举报请按F7官方举报! \r\n最后警告开挂/宏可耻! 被我发现了一脚给你踢出去!\r\n每日重启时间:8:00",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780550018,
    "last_online": 1779673821,
    "icon": null,
    "name": "真的服 适合打工人的服务器 3倍 4人",
    "connect": "106.81.206.44:28015",
    "request": "106.81.206.44:28018",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779207202,
    "last_update": 1780550018,
    "banned": false,
    "wipe": 1778216751,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11593,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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