Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/2477630
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 2477630,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "",
    "game": 240,
    "owner": 50757,
    "boosts": 1,
    "last_offline": 1756334708,
    "score": null,
    "last_online": 1752240028,
    "icon": null,
    "name": "PLAYMAX| GUNGAME | NON-STOP KILLS [V34]",
    "connect": null,
    "request": null,
    "map": "aim_ag_texture_city_final",
    "gamemode": "Protected by Kigen's Anti-Cheat",
    "version": null,
    "numplayers": 0,
    "maxplayers": 24,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1704658407,
    "last_update": 1756334708,
    "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": 1778,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 5,
      "steam_id": 240,
      "name": "Counter-Strike: Source",
      "url": "counter-strike-source"
    },
    "server_owner": {
      "username": "fluffy",
      "avatar": "b806ed09-1afd-43c2-8769-9e00fee79ca6.jpg",
      "last_online": 1704658477
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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