JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/1855811
json
{
  "response": {
    "fps": 40,
    "fps_avg": 39,
    "entities_count": 253091,
    "world_seed": 1754540165,
    "world_size": 5000,
    "steam_id": "90284755351773195",
    "domain": null,
    "id": 1855811,
    "ip": "106.157.64.99",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Atsugi",
    "description": "ゆるラス☮YURU RUST Season 46 4/3~5/8\r\n\r\nPvE | ほぼバニラ | 建築維持時間 3倍 | 初心者/ロールプレイの方も歓迎 | 配信OK!!\r\nルールや仕様を左下のボタンからDiscordに参加して確認してください\r\nClick the button at the bottom left to join our Discord and read the rules before playing (use a translator if needed).\r\n\r\n*No player kill,No raid,No steal.\r\n*NPC & Animal is active.\r\n*Friendly fire enabled.\r\n*This server can be used for streaming.\r\n\r\nLow Decay Building(3days)\r\nMap Size: 5k\r\n\r\nServer restart 5:00JST\r\nIngame chat and discord is linked\r\nKill log is display\r\nRaidable Bases\r\n\r\nPlease support this server by following and subscribing to my Twitch channel.\r\nhttps://www.twitch.tv/extreme_red",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776806000,
    "score": null,
    "last_online": 1776853218,
    "icon": null,
    "name": "[JP][PvE]ゆるラス☮YURU RUST",
    "connect": "106.157.64.99:28015",
    "request": "106.157.64.99:28017",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2623",
    "numplayers": 16,
    "maxplayers": 60,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "JP",
    "status": true,
    "votes": 0,
    "points": 74,
    "add_date": 1700208188,
    "last_update": 1776853218,
    "banned": false,
    "wipe": 1775165108,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 460,
    "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/1855811");
$data = json_decode($json, true);
var_dump($data);