Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/549427
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 549427,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "",
    "game": 240,
    "owner": 36127,
    "boosts": 1,
    "last_offline": 1750457066,
    "score": null,
    "last_online": 1742627462,
    "icon": null,
    "name": "Alexvip_CSS",
    "connect": null,
    "request": null,
    "map": "cs_havana",
    "gamemode": "Counter-Strike: Source",
    "version": null,
    "numplayers": 0,
    "maxplayers": 28,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1650959268,
    "last_update": 1750457066,
    "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": 1911,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 5,
      "steam_id": 240,
      "name": "Counter-Strike: Source",
      "url": "counter-strike-source"
    },
    "server_owner": {
      "username": "alexvipnsk",
      "avatar": "e0089882-a7f5-4a12-8de9-c1c9c8216ca5.jpg",
      "last_online": 1681798190
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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