Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/350283
json
{
  "response": {
    "fps": 133,
    "fps_avg": 122,
    "entities_count": 131019,
    "world_seed": 430076273,
    "world_size": 4300,
    "steam_id": "90284802208488457",
    "domain": null,
    "id": 350283,
    "ip": "8.26.94.19",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Montreal",
    "description": "![[US] Facepunch Staging](https://files.facepunch.com/Alistair/April/29/5r76l8654b0/facepunch-header.png)\nThis is an official server owned and operated by Facepunch. \r\n \r\n People are free to speak whatever language they like. Don't be surprised if you get banned for being abusive.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776846797,
    "score": null,
    "last_online": 1776859820,
    "icon": null,
    "name": "[US] Facepunch Staging",
    "connect": "8.26.94.19:28015",
    "request": "8.26.94.19:28016",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 3,
    "maxplayers": 250,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CA",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1595672040,
    "last_update": 1776859820,
    "banned": false,
    "wipe": 1774527032,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2207,
    "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/350283");
$data = json_decode($json, true);
var_dump($data);