Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/8149813
json
{
  "response": {
    "fps": 60,
    "fps_avg": 60,
    "entities_count": 51274,
    "world_seed": 1337,
    "world_size": 3250,
    "steam_id": "90286589484958738",
    "domain": null,
    "id": 8149813,
    "ip": "156.236.84.29",
    "port": 28004,
    "query": 28005,
    "color": 0,
    "city": "Dallas",
    "description": "Welcome to Rusty Goats!\r\nStep back in time for a rugged, low-tech survival experience.\r\n\r\n[ SERVER FEATURES ]\r\n- Medieval Era (Primitive Only)\r\n- Group Limit: Solo / Duo / Trio\r\n- Era Restrictions Enforced\r\n- Wipe Cycle: Monthly Map\r\n- Active Admins\r\n\r\n[ RULES & COMMUNITY ]\r\n- No Cheating, Scripting, or Exploits\r\n- Zero Tolerance for Racism or Toxicity\r\n- English only in Global Chat\r\n- Type !bangs in-game for info\r\n\r\nJoin our Discord for support & updates:\r\ndiscord.gg/TjqW7Cwed5",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780513441,
    "last_online": 1780577439,
    "icon": null,
    "name": "Rusty Goats | Primitive | No Bp Wipe | Solo/Duo/Trio",
    "connect": "156.236.84.29:28004",
    "request": "156.236.84.29:28005",
    "map": "Custom Map",
    "gamemode": "Primitive",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1741956330,
    "last_update": 1780577439,
    "banned": false,
    "wipe": 1778184284,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3167,
    "language": "en",
    "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/8149813");
$data = json_decode($json, true);
var_dump($data);