Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11541037
json
{
  "response": {
    "steam_id": "90285155177674756",
    "domain": null,
    "id": 11541037,
    "ip": "82.157.193.233",
    "port": 4951,
    "query": 5451,
    "color": 0,
    "city": "Beijing",
    "description": null,
    "game": 221100,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779355414,
    "last_online": 1779484963,
    "icon": null,
    "name": "装备全靠杆BOSS-组队Q群1003062325",
    "connect": "82.157.193.233:4951",
    "request": "82.157.193.233:5451",
    "map": "chernarusplus",
    "gamemode": null,
    "version": "129",
    "numplayers": 0,
    "maxplayers": 70,
    "bots": 108,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1779355414,
    "last_update": 1779484963,
    "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": 4986,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 63,
      "steam_id": 221100,
      "name": "DayZ",
      "url": "dayz"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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