JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/10978377
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 61391,
    "world_seed": 637784114,
    "world_size": 3500,
    "steam_id": "90286603835069467",
    "domain": null,
    "id": 10978377,
    "ip": "176.9.140.17",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Falkenstein",
    "description": "![NORDICRUST.EU 2X|Solo/Duo/Trio/Quad|RaidProtection|JUST WIPED](https://nordicrust.eu/img/server-banner.jpg)\nWell balanced nordic based server for both new and seasoned players. \nActive, non-playing admins. \n\n - 2x Gather & Loot \n - Bigger stacks \n - Faster Craft, Smelt & Recycle \n - Half upkeep \n - Group Limit: 4 \n - Shorter Nights \n - Custom Events & QoL Tweaks \n - Custom Anti-cheat \n - No-Raid Times: \n    Weekdays: 00:00-16:00 \n    Weekends: 02:00-12:00 \n    No raiding on wipe days \n Make sure to join our discord by pressing the view webpage button or by visiting the link nordicrust.eu/discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595663,
    "last_online": 1780597826,
    "icon": null,
    "name": "NORDICRUST.EU 2X|Solo/Duo/Trio/Quad|RaidProtection|JUST WIPED",
    "connect": "176.9.140.17:28015",
    "request": "176.9.140.17:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 26,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 71,
    "add_date": 1769900962,
    "last_update": 1780597826,
    "banned": false,
    "wipe": 1780595628,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 587,
    "language": "de",
    "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/10978377");
$data = json_decode($json, true);
var_dump($data);