Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/6125083
json
{
  "response": {
    "fps": 183,
    "fps_avg": 182,
    "entities_count": 33074,
    "world_seed": 0,
    "world_size": 4500,
    "steam_id": "90286604521411610",
    "domain": null,
    "id": 6125083,
    "ip": "185.216.147.186",
    "port": 28310,
    "query": 28245,
    "color": 0,
    "city": "City of London",
    "description": "![Rust Kingdom Permadeath PvE](https://raw.githubusercontent.com/evtishin/etos/main/bears.png)\nDare to play on the Permadeath server?\r\n\r\nFeatures:\r\n- Scarce resources. Increased bear population.\r\n- Only one life - if you die, it's game over.\r\n- No raiding. Automatic bans for any PvP kills.\r\n\r\nMap Details: size 6000, weekly map wipe.\r\nFor the complete configuration, visit rustkingdom.uk.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780597469,
    "last_online": 1780609825,
    "icon": null,
    "name": "Rust Kingdom Permadeath PvE",
    "connect": "185.216.147.186:28310",
    "request": "185.216.147.186:28245",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2627",
    "numplayers": 6,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 68,
    "add_date": 1727883217,
    "last_update": 1780609825,
    "banned": false,
    "wipe": 1780597521,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 949,
    "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/6125083");
$data = json_decode($json, true);
var_dump($data);