Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11511436
json
{
  "response": {
    "fps": 216,
    "fps_avg": 215,
    "entities_count": 113044,
    "world_seed": 1,
    "world_size": 4500,
    "steam_id": "90286276090633235",
    "domain": null,
    "id": 11511436,
    "ip": "38.91.46.113",
    "port": 25565,
    "query": 25567,
    "color": 0,
    "city": "New York",
    "description": "Rules\r\nYou must have a mic or TTS\r\nNo trolling / toxicness\r\nNo placing traps outside another players home/base\r\nNo NSFW\r\n18+ only\r\nOnly can raid while players are online, breaking this rule is an instant ban.\r\nDo not bully new players\r\nDo not base too close to other players, exceptions made on a case by case basis, for example RP buildings.\r\nRP is encouraged but not forced.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780556019,
    "last_online": 1779888626,
    "icon": null,
    "name": "The Sheriff's Wild West",
    "connect": "38.91.46.113:25565",
    "request": "38.91.46.113:25567",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 61,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779353847,
    "last_update": 1780556019,
    "banned": false,
    "wipe": 1778180053,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11884,
    "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/11511436");
$data = json_decode($json, true);
var_dump($data);