JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11500987
json
{
  "response": {
    "fps": 45,
    "fps_avg": 45,
    "entities_count": 69199,
    "world_seed": 1818866787,
    "world_size": 3500,
    "steam_id": "90286574596231186",
    "domain": null,
    "id": 11500987,
    "ip": "91.98.186.108",
    "port": 28080,
    "query": 28015,
    "color": 0,
    "city": "Falkenstein",
    "description": "![QualityRust UK NOOB FRIENDLY | VANILLA | Biweekly | MAX TRIO](https://i.ibb.co/7tks7bgN/banner-qr.png)\nQualityRust Beginner & Noob Friendly Server \r\n - Vanilla+ \r\n - Mini's Spawn On Roads  \r\n - Max Team Size: 3  \r\n - SOLO/DUO/TRIO  \r\n - A Supply Signal is given to each new player; Just ask the server  \r\n  \r\n Please Read our rules & join our discord: - https://discord.gg/MrJYQtCKX5   \r\n Owned & Administrated by Kay - Please report any issues within the discord",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780558828,
    "icon": null,
    "name": "QualityRust UK NOOB FRIENDLY | VANILLA | Biweekly | MAX TRIO",
    "connect": "91.98.186.108:28080",
    "request": "91.98.186.108:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207166,
    "last_update": 1780558828,
    "banned": false,
    "wipe": 1779383056,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4614,
    "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/11500987");
$data = json_decode($json, true);
var_dump($data);