Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11325068
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 11325068,
    "ip": "90.229.143.86",
    "port": 17777,
    "query": 27015,
    "color": 0,
    "city": "Stockholm",
    "description": null,
    "game": 1149460,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776375176,
    "score": 0,
    "last_online": 1775836252,
    "icon": null,
    "name": null,
    "connect": null,
    "request": "90.229.143.86:27015",
    "map": null,
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 10,
    "bots": 0,
    "secured": null,
    "private": false,
    "country": "SE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1774594093,
    "last_update": 1776375176,
    "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": 7759,
    "language": "sv",
    "parked": false,
    "app": {
      "id": 1600891,
      "steam_id": 1149460,
      "name": "Icarus",
      "url": "icarus"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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