Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11501840
json
{
  "response": {
    "fps": 127,
    "fps_avg": 122,
    "entities_count": 73603,
    "world_seed": 1121311938,
    "world_size": 3500,
    "steam_id": "90286579582408731",
    "domain": null,
    "id": 11501840,
    "ip": "185.166.232.22",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Älvsjö",
    "description": "![Rust4Fun | Vanilla | Solo Only | Noob Friendly | Monthly](https://i.imgur.com/xYWU7GW.png)\nWelcome! Chill/learn and have a good time. \r\n \r\n HOST PROBLEMS WIPED SERVER EARLY... NEXT WIPE 4TH JUNE THEN MONTHLY \r\n \r\n RULES: \r\n -No Griefing. \r\n -No Teaming. \r\n -Dont Be Rude. \r\n \r\n Info: \r\n -Monthly Map Wipes (Force Wipe). \r\n -Blueprints DO NOT wipe. \r\n -SOLO ONLY \r\n \r\n Have Fun!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780569267,
    "last_online": 1780561228,
    "icon": null,
    "name": "Rust4Fun | Vanilla | Solo Only | Noob Friendly | Monthly",
    "connect": "185.166.232.22:28015",
    "request": "185.166.232.22:28016",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779207182,
    "last_update": 1780569267,
    "banned": false,
    "wipe": 1780035989,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 11363,
    "language": "sv",
    "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/11501840");
$data = json_decode($json, true);
var_dump($data);