JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10413158
json
{
  "response": {
    "fps": 121,
    "fps_avg": 124,
    "entities_count": 74937,
    "world_seed": 2141602913,
    "world_size": 4250,
    "steam_id": "90286689761313818",
    "domain": null,
    "id": 10413158,
    "ip": "101.43.93.74",
    "port": 29500,
    "query": 29501,
    "project_id": null,
    "color": 0,
    "city": "Shanghai",
    "description": "***服务器在国内不用加速,提示EAC是steam问题,重连或重启游戏即可***\r\n***萌新的黄埔军校,老登的养老圣地***\r\n1.仿官绿色PVE服,单倍物资刷新,5倍堆叠上限,售货机快速刷新\r\n2.载具可锁,熔炉无锁,无防偷保护,陷阱炮塔对玩家有伤\r\n3.NPC据点自主设计遥遥领先,友好不阴间\r\n4.武直入侵活动,次日起每晚持续40分钟,野生武直刷新不断先到先得\r\n5.免费劲爆皮肤,专属武直召唤,拆除指令,防装正常损耗,坦克护卫队\r\n6.档末PVP活动,清档前一晚8:00开启PVP模式,无限制狂欢\r\n点左下方按钮快速加群,Q群860587533",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780697058,
    "last_online": 1780789231,
    "icon": null,
    "name": "【咏春PVE】仿官原倍/全遗迹/萌新养老/据点",
    "connect": "101.43.93.74:29500",
    "request": "101.43.93.74:29501",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1759823818,
    "last_update": 1780789231,
    "banned": false,
    "wipe": 1780650011,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3864,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

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