Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/7973790
json
{
  "response": {
    "steam_id": "90284347546411033",
    "domain": null,
    "id": 7973790,
    "ip": "109.71.254.28",
    "port": 30138,
    "query": 30139,
    "color": 0,
    "city": "Cologne",
    "description": null,
    "game": 2230170,
    "owner": null,
    "boosts": 1,
    "last_offline": 1771776695,
    "score": 0,
    "last_online": 1776229858,
    "icon": null,
    "name": "EU - Official Server #2",
    "connect": "109.71.254.28:30138",
    "request": "109.71.254.28:30139",
    "map": "Elira",
    "gamemode": "Survival",
    "version": "1.2.4",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1741014417,
    "last_update": 1776229858,
    "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": 5,
    "language": "de",
    "parked": false,
    "app": {
      "id": 1617299,
      "steam_id": 2230170,
      "name": "The Cenozoic Era",
      "url": "the-cenozoic-era"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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