Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/4530997
json
{
  "response": {
    "steam_id": "90284750190380045",
    "domain": null,
    "id": 4530997,
    "ip": "51.161.86.231",
    "port": 64100,
    "query": 64102,
    "color": 0,
    "city": "Montreal",
    "description": "",
    "game": 299740,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773307336,
    "score": 0,
    "last_online": 1776799838,
    "icon": null,
    "name": "Sneaky Old Bastards | Founded 2016! | Fast Build",
    "connect": "51.161.86.231:64100",
    "request": "51.161.86.231:64102",
    "map": "islands",
    "gamemode": "Miscreated: 1011142",
    "version": "1011142",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": true,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 35,
    "add_date": 1716990539,
    "last_update": 1776799838,
    "banned": false,
    "wipe": null,
    "official": true,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 18,
    "language": "en",
    "parked": false,
    "app": {
      "id": 69,
      "steam_id": 299740,
      "name": "Miscreated",
      "url": "miscreated"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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