Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/5755722
json
{
  "response": {
    "fps": 49,
    "fps_avg": 50,
    "entities_count": 101555,
    "world_seed": 1,
    "world_size": 4200,
    "steam_id": "90286493006604312",
    "domain": null,
    "id": 5755722,
    "ip": "156.236.84.195",
    "port": 28005,
    "query": 28006,
    "color": 0,
    "city": "City of London",
    "description": "How good are you?  \r\nEvents running are Raidable bases,  Military Airfield, \r\n Active NPC driving the roads, RP Police, \r\n Cargo plane Event. \r\n great loot opportunity events. \r\n Commands /kit  /skin  /bgrade",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780346053,
    "last_online": 1780569034,
    "icon": null,
    "name": "JUST PLAY RUST",
    "connect": "156.236.84.195:28005",
    "request": "156.236.84.195:28006",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1724092109,
    "last_update": 1780569034,
    "banned": false,
    "wipe": 1778772261,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2614,
    "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/5755722");
$data = json_decode($json, true);
var_dump($data);