Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11142455
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11142455,
    "ip": "23.27.211.242",
    "port": 10254,
    "query": 10254,
    "color": 0,
    "city": "Dallas",
    "description": null,
    "game": 393380,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778417539,
    "score": 0,
    "last_online": 1778542807,
    "icon": null,
    "name": "The Potato Fields 1 | New Player Friendly",
    "connect": "23.27.211.242:10254",
    "request": "23.27.211.242:10254",
    "map": "Mutaha_RAAS_v1",
    "gamemode": "RAAS",
    "version": "v10.4.1.604352.2183",
    "numplayers": 97,
    "maxplayers": 98,
    "bots": 0,
    "secured": null,
    "private": null,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 129,
    "add_date": 1770804048,
    "last_update": 1778542807,
    "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": 7,
    "language": "en",
    "parked": false,
    "app": {
      "id": 137,
      "steam_id": 393380,
      "name": "Squad",
      "url": "squad"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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