JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11607194
json
{
  "response": {
    "fps": 155,
    "fps_avg": 150,
    "entities_count": 81157,
    "world_seed": 550496754,
    "world_size": 3500,
    "steam_id": "90286584306722836",
    "domain": null,
    "id": 11607194,
    "ip": "90.149.236.155",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Ōnojō",
    "description": "![[PvE] ALICE SERVER Community First!](https://raw.githubusercontent.com/SakuriumStudio/alice-lab-maps/main/alice_banner.png)\nALICE SERVERは、Rustを土台にしたPvEコミュニティサーバーです。\r\n日本語での日常会話・案内を読める方歓迎です。\r\nNo Pay to Win / Town Hub / Daily RP / Quality of Life / Community First\r\nJapanese communication required.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780603231,
    "icon": null,
    "name": "[PvE] ALICE SERVER Community First!",
    "connect": "90.149.236.155:28015",
    "request": "90.149.236.155:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "JP",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1779915498,
    "last_update": 1780603231,
    "banned": false,
    "wipe": 1779446255,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2568,
    "language": "ja",
    "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/11607194");
$data = json_decode($json, true);
var_dump($data);