Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/7920701
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 7920701,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": "Falkenstein",
    "description": "![GardaysRust |x5|kit|nolim|Skin|bskin/bgrade](https://files.facepunch.com/s/ff906ff8a347.png)\nGardaysRust |x5|kit|nolim|Skin| bskin/bgrade .быстрые перерабы.турели без электричества.Заходи друг.Дам бонус",
    "game": 252490,
    "owner": 109050,
    "boosts": 1,
    "last_offline": 1767063062,
    "last_online": 1766169611,
    "icon": null,
    "name": "zalupka online",
    "connect": null,
    "request": null,
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": null,
    "numplayers": 0,
    "maxplayers": 500,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "DE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1740791931,
    "last_update": 1767063062,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 13234,
    "language": "de",
    "parked": true,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": {
      "username": "ewerreytut",
      "avatar": "37474282-0344-4cd3-b0fa-7ca65d0123fc.jpg"
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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