Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/3071260
json
{
  "response": {
    "steam_id": null,
    "domain": null,
    "id": 3071260,
    "ip": null,
    "port": null,
    "query": null,
    "color": 0,
    "city": null,
    "description": "Sweet-Home — проект игровых серверов по Counter-Strike 2, на котором вы найдете стабильный онлайн, систему скинов и хорошую аудиторию. И все это на качественных серверах, которые работают 24/7.",
    "game": 304930,
    "owner": 53317,
    "boosts": 1,
    "last_offline": 1750457066,
    "score": 5,
    "last_online": 1730143820,
    "icon": null,
    "name": "[RU/EU] SECTOR | War RP",
    "connect": null,
    "request": null,
    "map": "PEI",
    "gamemode": null,
    "version": null,
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "RU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1708286478,
    "last_update": 1750457066,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": true,
    "hide_address": true,
    "hide_query": false,
    "position_game": 758,
    "language": "ru",
    "parked": true,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": {
      "username": "rikudosw",
      "avatar": "79a5f33b-28da-483d-9e00-7b7a26dd31a9.jpg",
      "last_online": 1773346301
    },
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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