Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/4251681
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 4251681,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "[{\"id\":\"1HuZE_TA1g\",\"type\":\"paragraph\",\"data\":{\"text\":\"Welcome to the Lunituns' public resource storage.\\n\\nWe have updated this storage to the latest version (update 606779) and will update it regularly. Here you will find everything that can be farmed and manufactured in the game, whether materials, decorations, armor or weapons.\\n\\nYou can find a complete storage list for the basement here: https://shorturl.at/z056Q\"}}]",
    "game": 1203620,
    "owner": 91820,
    "boosts": 1,
    "last_offline": 1750457066,
    "score": 5,
    "last_online": 1740444624,
    "icon": null,
    "name": "NEW IP 95.216.23.35:15630 !!! last round !!!",
    "connect": null,
    "request": null,
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 16,
    "bots": 0,
    "secured": false,
    "private": true,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1715804451,
    "last_update": 1750457066,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11243,
    "language": "de",
    "parked": true,
    "app": {
      "id": 1611384,
      "steam_id": 1203620,
      "name": "Enshrouded",
      "url": "enshrouded"
    },
    "server_owner": {
      "username": "AmFearLiath",
      "avatar": "c6c2dae3-31c1-49b8-af35-21f06c256234.jpg",
      "last_online": 1749335300
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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