Programlar, siteler ve diğerleri için JSON

text
https://api.gamemonitoring.tr/servers/11719068
json
{
  "response": {
    "steam_id": "90286834722372612",
    "domain": null,
    "id": 11719068,
    "ip": "27.210.136.102",
    "port": 16261,
    "query": 16261,
    "project_id": null,
    "color": 0,
    "city": "Qingdao",
    "description": null,
    "game": 108600,
    "owner": null,
    "boosts": 1,
    "last_offline": 1781042661,
    "last_online": 1781093517,
    "icon": null,
    "name": "CN|ITTWTTIの服务器|难度较高|尸潮|生存建造|二服",
    "connect": "27.210.136.102:16261",
    "request": "27.210.136.102:16261",
    "map": "Factory;MilitaryComplex;NumarkC",
    "gamemode": "Project Zomboid",
    "version": "41.78.16",
    "numplayers": 0,
    "maxplayers": 32,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": true,
    "votes": 0,
    "points": 30,
    "add_date": 1780324265,
    "last_update": 1781093517,
    "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": 6803,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 71,
      "steam_id": 108600,
      "name": "Project Zomboid",
      "url": "project-zomboid"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Kod örnekleri

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