Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/1036679
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 87478,
    "world_seed": 1,
    "world_size": 3750,
    "steam_id": 90286584392908820,
    "domain": null,
    "id": 1036679,
    "ip": "64.40.8.248",
    "port": 28015,
    "query": 28013,
    "color": 0,
    "city": "Dallas",
    "description": "![TIRust BattleBay Solo/Duo Minis|Low Upkeep](https://tirust.fun/img/BattleBay.png)\nMax Team Size is 2 - Active Non-Playing Admins!\r\nMap Wipes Monthly on the First Thursday (Force Wipe)\r\nBlueprints Never Wipe - 50% Reduced Upkeep\r\nMinicopters Spawn on Roads - Locked Crates take 10 Minutes\r\nLonger Days & Shorter Nights - 50 minutes and 10 minutes\r\nCombined Outpost - Recyclers at Monuments\r\n\r\nChat Commands - !pop !ping !suggest !info !wipe /dc join code\r\n\r\nWelcome aboard Treasure Island Battle Bay servers, where the seas are rough, and the battles are fierce! If you thrive on adrenaline-pumping action and high-stakes competition, then you've come to the right place.\r\n\r\n\r\n\r\nCheck out our Leaderboards at tirust.org and join our Discord for updates.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779502413,
    "last_online": 1780572031,
    "icon": null,
    "name": "TIRust BattleBay Solo/Duo Minis|Low Upkeep",
    "connect": "64.40.8.248:28015",
    "request": "64.40.8.248:28013",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 160,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1688595280,
    "last_update": 1780572031,
    "banned": false,
    "wipe": 1778177113,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2392,
    "language": "en",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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