Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/475310
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 105596,
    "world_seed": 789401222,
    "world_size": 4250,
    "steam_id": "90286565284596759",
    "domain": null,
    "id": 475310,
    "ip": "104.129.133.97",
    "port": 28069,
    "query": 28066,
    "color": 0,
    "city": "Dallas",
    "description": "![Gleam / Vanilla 2x Components](https://i.imgur.com/vLfED4K.png)\nGleam 2X is a cozy 2X server that wipes twice a month. We have: \r\n\r\n-Vanilla loot with 2x comps and scrap.\r\n-Shorter nights.\r\n-Automatic barrel loot pickup.\r\n-No pay to win, no kits, only effort.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778556178,
    "last_online": 1780572035,
    "icon": null,
    "name": "Gleam / Vanilla 2x Components",
    "connect": "104.129.133.97:28069",
    "request": "104.129.133.97:28066",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 140,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1634303299,
    "last_update": 1780572035,
    "banned": false,
    "wipe": 1778216119,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2185,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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