Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11500953
json
{
  "response": {
    "fps": 57,
    "fps_avg": 57,
    "entities_count": 201580,
    "world_seed": 1,
    "world_size": 6000,
    "steam_id": "90286574095167498",
    "domain": null,
    "id": 11500953,
    "ip": "5.9.121.103",
    "port": 28040,
    "query": 28041,
    "color": 0,
    "city": "Falkenstein",
    "description": "![\"Friendly\" Prime-Survival [No Raiding]](https://drive.google.com/file/d/1YnwFU6yFUi4TGisH4Toj5OjIYWGTPh5x/view?usp=drive_link)\nGamemode: Primitive Survival [Raids are disabled, PvP is possible]\r\nLanguage: German/English\r\nTeamsize: Solo\r\n\r\nList of Changes: \r\n-PvP is possible but Raids are not. Your Base is your personal Safezone!\r\n-Deep-Sea is always accessible and you can build on the Islands if you want.\r\n-Wildlife-Spawnrate is increased, be careful during nighttime.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780443855,
    "last_online": 1780579243,
    "icon": null,
    "name": "\"Friendly\" Prime-Survival [No Raiding]",
    "connect": "5.9.121.103:28040",
    "request": "5.9.121.103:28041",
    "map": "Procedural Map",
    "gamemode": "Primitive",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207165,
    "last_update": 1780579243,
    "banned": false,
    "wipe": 1778434716,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4676,
    "language": "de",
    "parked": false,
    "app": {
      "id": 252490,
      "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/11500953");
$data = json_decode($json, true);
var_dump($data);