JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10922497
json
{
  "response": {
    "fps": 201,
    "fps_avg": 196,
    "entities_count": 67551,
    "world_seed": 139496792,
    "world_size": 3500,
    "steam_id": "90286689774661661",
    "domain": null,
    "id": 10922497,
    "ip": "114.66.29.8",
    "port": 10001,
    "query": 10002,
    "project_id": null,
    "color": 0,
    "city": "Beijing",
    "description": "原倍物资,5倍叠加,自带雷达,搜刮彻底\r\n载具碰撞无伤,萌新友好不炸机\r\n飞机额外带箱子方便运输(可上锁),板条箱秒解,空投加速\r\n武装突袭可吵架、列车劫持事件活动,总有一个玩法你会喜欢\r\n跟随官方月清",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780944212,
    "last_online": 1780807826,
    "icon": null,
    "name": "A『老船长』6月生存",
    "connect": "114.66.29.8:10001",
    "request": "114.66.29.8:10002",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "CN",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1768476958,
    "last_update": 1780944212,
    "banned": false,
    "wipe": 1780671250,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 10675,
    "language": "zh",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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