Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11435483
json
{
  "response": {
    "fps": 221,
    "fps_avg": 221,
    "entities_count": 56128,
    "world_seed": 1559359528,
    "world_size": 3250,
    "steam_id": "90284712379739164",
    "domain": null,
    "id": 11435483,
    "ip": "157.85.87.26",
    "port": 21369,
    "query": 21370,
    "color": 0,
    "city": "Amsterdam",
    "description": "Welcome to PureRust EU!\r\nLooking for a place to chill/play\r\n\r\n-Team Limit 5!\r\n-Beginner Friendly!\r\n-Active Staff!\r\n\r\nRules:, - Don't be a prick, - No Cheating, - No Racism, ,",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776694403,
    "score": 0,
    "last_online": 1776833425,
    "icon": null,
    "name": "[EU] PureRust | Vanilla | Max 5 | Active Admins",
    "connect": "157.85.87.26:21369",
    "request": "157.85.87.26:21370",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NL",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1774977191,
    "last_update": 1776833425,
    "banned": false,
    "wipe": 1775168406,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5262,
    "language": "nl",
    "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/11435483");
$data = json_decode($json, true);
var_dump($data);