Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11159461
json
{
  "response": {
    "fps": 107,
    "fps_avg": 108,
    "entities_count": 117466,
    "world_seed": 1359619168,
    "world_size": 6000,
    "steam_id": "90286377392181277",
    "domain": null,
    "id": 11159461,
    "ip": "82.7.240.170",
    "port": 28015,
    "query": 28017,
    "project_id": null,
    "color": 0,
    "city": "Cleckheaton",
    "description": "![SALT & RUST |PVE + PVP| SURVIVAL](https://i.ibb.co/ZRth9y54/Server-Header-1024x512.png)\nSalt & Rust Survival\r\n\r\nSurvival focused Rust with a reworked food chain.\r\n\r\nMost foods now restore calories or hydration only. Health comes from medical items, which have been slightly tuned for balance. Cooking animal meats is valuable again, providing both food and health.\r\n\r\nMetabolism is doubled and world food spawns are reduced, encouraging farming, hunting and progression toward powerful custom foods.\r\n\r\nThe map is mostly PvE, but every monument is a PvP zone. The best loot and progression come with risk.\r\n\r\nLow upkeep • Backpacks • Custom skins & wallpapers\r\nMonthly wipes • Friendly chill community • New server",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780913017,
    "last_online": 1780173628,
    "icon": null,
    "name": "SALT & RUST |PVE + PVP| SURVIVAL",
    "connect": "82.7.240.170:28015",
    "request": "82.7.240.170:28017",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1772228129,
    "last_update": 1780913017,
    "banned": false,
    "wipe": 1778611176,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9933,
    "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/11159461");
$data = json_decode($json, true);
var_dump($data);