JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/4812112
json
{
  "response": {
    "fps": 161,
    "fps_avg": 147,
    "entities_count": 135032,
    "world_seed": 1265860020,
    "world_size": 4800,
    "steam_id": "90286235333961728",
    "domain": null,
    "id": 4812112,
    "ip": "64.40.8.4",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Dallas",
    "description": "Rusty Jawn PvP EZ is a modded player versus player rust server with modded features and increased drop and crafting rates. \r\n Information: \r\n Wipes only on forced wipe <last wipe: 2/1/2024> \r\n Tier 1 BPs Unlocked \r\n 25% Decay \r\n 2x gather and improved loot \r\n 50% faster smelt and craft \r\n Larger stack sizes \r\n \r\n Features: \r\n Convoy \r\n Armored Train \r\n Backpack \r\n Trade \r\n Homes \r\n New Player Raid Protection \r\n And More! \r\n \r\n Type /info in chat for rules and more information \r\n \r\n Visit our website by clicking on the view webpage button!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780554816,
    "last_online": 1779879621,
    "icon": null,
    "name": "[US] RustyJawn PvP",
    "connect": "64.40.8.4:28015",
    "request": "64.40.8.4:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1718909508,
    "last_update": 1780554816,
    "banned": false,
    "wipe": 1778192807,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10467,
    "language": "en",
    "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/4812112");
$data = json_decode($json, true);
var_dump($data);