Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/10871175
json
{
  "response": {
    "fps": 52,
    "fps_avg": 54,
    "entities_count": 80857,
    "world_seed": 741525743,
    "world_size": 3850,
    "steam_id": "90284559249432599",
    "domain": null,
    "id": 10871175,
    "ip": "129.232.158.130",
    "port": 10070,
    "query": 10080,
    "color": 0,
    "city": "Cape Town",
    "description": "Join the crazy ZA Rust\r\n- If you have any VAC or game ban on record you are not permitted on this server\r\n- Friendly Community\r\n- Monthly wipes\r\n- Low Raid damage\r\n- vanilla++",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776426223,
    "score": 0,
    "last_online": 1776877224,
    "icon": null,
    "name": "ZA WASTELAND - VANILLA",
    "connect": "129.232.158.130:10070",
    "request": "129.232.158.130:10080",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "ZA",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1768318532,
    "last_update": 1776877224,
    "banned": false,
    "wipe": 1775377139,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4432,
    "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/10871175");
$data = json_decode($json, true);
var_dump($data);