Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/10997372
json
{
  "response": {
    "steam_id": 85568392935818200,
    "domain": null,
    "id": 10997372,
    "ip": "180.188.24.63",
    "port": 28888,
    "query": 28888,
    "color": 0,
    "city": "Taizhou",
    "description": null,
    "game": 304930,
    "owner": null,
    "boosts": 1,
    "last_offline": 1773545569,
    "score": 0,
    "last_online": 1776115256,
    "icon": null,
    "name": "半条咸鱼|1月新档|全新地牢玩法",
    "connect": "180.188.24.63:28888",
    "request": "180.188.24.63:28888",
    "map": "Tales of Terror",
    "gamemode": null,
    "version": "3.26.1.1",
    "numplayers": 0,
    "maxplayers": 40,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1769905756,
    "last_update": 1776115256,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 459,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 48,
      "steam_id": 304930,
      "name": "Unturned",
      "url": "unturned"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

php
<?php
$json = file_get_contents("https://api.gamemonitoring.tr/servers/10997372");
$data = json_decode($json, true);
var_dump($data);