JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11305358
json
{
  "response": {
    "fps": 80,
    "fps_avg": 86,
    "entities_count": 94185,
    "world_seed": 2096614321,
    "world_size": 4000,
    "steam_id": "90286581319021591",
    "domain": null,
    "id": 11305358,
    "ip": "51.195.202.169",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Erith",
    "description": "![Rustycron 3X | Solo Duo Trio | Loot+ 2X | Smelt 10X | ShareBP](https://rustycron.com/server-banner.png)\n======= RUSTYCRON =======\r\n\r\n> RATES: 3x Gather | 10x Smelt | 2x Components | Instant Crafting\r\n> GROUPS: Solo / Duo / Trio (max 3)\r\n> WIPE: Weekly map wipe - Thursday 19:30 CET/CEST\r\n> BLUEPRINTS: Biweekly - admin confirmed\r\n\r\n[FEATURES]\r\nRewards | Economics | Shop | Kits | VIP Ranks | Buffs\r\nBackpacks | Teleports | Skinbox | BGrade | Remover Tool | AutoCode\r\nTC Upgrades | Blueprint Sharing | Better Loot | Faster Furnaces\r\nRaidable Bases | Sputnik | NPC Events | Welcome Panel\r\n\r\n[INFO]\r\nActive admins - Zero tolerance for cheaters\r\nEU server on OVH - Low ping for Europe\r\nVIP: rustycron.com | Discord: discord.gg/vXw3HKcPbn\r\n[RS-b4448178]",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780545869,
    "last_online": 1780587634,
    "icon": null,
    "name": "Rustycron 3X | Solo Duo Trio | Loot+ 2X | Smelt 10X | ShareBP",
    "connect": "51.195.202.169:28015",
    "request": "51.195.202.169:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774592884,
    "last_update": 1780587634,
    "banned": false,
    "wipe": 1779990443,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4541,
    "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/11305358");
$data = json_decode($json, true);
var_dump($data);