JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/9734887
json
{
  "response": {
    "modded": true,
    "fps": 178,
    "fps_avg": 181,
    "entities_count": 118479,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286603913844760",
    "domain": null,
    "id": 9734887,
    "ip": "5.196.78.114",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Roubaix",
    "description": "![[FR] Ambrasia Semi_PVE Debutants | Zombie | Events | Kit | Quet](https://image.myrustserver.com/logo/antoine37120_65dbc09ac6310.png)\nBienvenue sur Ambrasia. Prochain Full Wipe chaque premier jeudi du mois !\r\nServeur Fun et d'entraide. Wipe de 1 mois.\r\nNous sommes en constantes ameliorations afin que tout le monde puisse s'éclater.\r\nServeur de 100 slots.\r\nDes plugins attractifs arriveront au fur et à mesure du temps.\r\nAirfieldEvent\r\nJunkyardEvent\r\nHarborEvent\r\nSatelliteDishEvent\r\nSupermarketEvent\r\n\r\nEt d'autre...  !\r\n\r\n- RemoverTools\r\n- Cooking\r\n- BattlePass\r\n- Quêtes\r\n- Economie\r\n- Raidable Bases\r\n- Consommation de l armoire divise par 2\r\n- zombies\r\n- info panel (drops, heure, helico d attaque, etc )\r\n- deathnotes",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780595601,
    "last_online": 1780605027,
    "icon": null,
    "name": "[FR] Ambrasia Semi_PVE Debutants | Zombie | Events | Kit | Quet",
    "connect": "5.196.78.114:28015",
    "request": "5.196.78.114:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 14,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 66,
    "add_date": 1752165761,
    "last_update": 1780605027,
    "banned": false,
    "wipe": 1780596062,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1127,
    "language": "fr",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/9734887");
$data = json_decode($json, true);
var_dump($data);