JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11670962
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 135265,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286594163827714",
    "domain": null,
    "id": 11670962,
    "ip": "66.51.99.80",
    "port": 28005,
    "query": 28006,
    "color": 0,
    "city": "Dallas",
    "description": "![[US]Sanctum Borealis 2x|Monthly|Max-5|50% Upkeep](https://i.ibb.co/TwnSdCM/Rust-Header-Image-Raised.png)\nSANCTUM BOREALIS MODDED SERVER\r\n- Built for PvP and PvE alike -\r\n- Performance Grade Network & Servers\r\n- We wipe on force wipe MAP+BPs -\r\n\r\nWEBSITE: sanctum-borealis.slink.gg\r\n\r\n===FEATURES===\r\n>TEAM MAX 5\r\n>2x Gather/1x Sulfur/50% Upkeep\r\n>Junk Loot removed - Static Lootables\r\n>Free QoL (Sorter,recycler speed,faster smelt,furnace sort)\r\n>Custom generated high performance maps\r\n>No PayToWin (No VIP, No Kits, Just Rust)\r\n>Daily Playing rewards & Voting Rewards\r\n>Extra Recyclers & Drone Markets\r\n>Minicopters on roads\r\n>Convoys on roads\r\n>Active Admin Team\r\n\r\n===Rules===\r\n>No Game, Steam, or VAC Bans within 90 days\r\n>No more than 1 Steam Bans (VAC or Game)\r\n>No Rust game banned alt accounts within a year",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780180910,
    "last_online": 1780582238,
    "icon": null,
    "name": "[US]Sanctum Borealis 2x|Monthly|Max-5|50% Upkeep",
    "connect": "66.51.99.80:28005",
    "request": "66.51.99.80:28006",
    "map": "Borealis-FPS+",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780180910,
    "last_update": 1780582238,
    "banned": false,
    "wipe": 1778989618,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5799,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11670962");
$data = json_decode($json, true);
var_dump($data);