JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11260827
json
{
  "response": {
    "modded": true,
    "fps": 27,
    "fps_avg": 26,
    "entities_count": 94948,
    "world_seed": 333,
    "world_size": 4000,
    "steam_id": 90285648375068690,
    "domain": null,
    "id": 11260827,
    "ip": "185.113.141.142",
    "port": 29017,
    "query": 29015,
    "color": 0,
    "city": "Lisbon",
    "description": "![OXIDATION 5x | VANILLA+ | THU 07/05](https://stinkfist.org/s/rust/banner/03.png)\n★ What does VANILLA+ mean ?\r\nVANILLA+ aims to bring you the same game mechanics as the Vanilla rust but with faster game progression.\r\n\r\n★ SERVER FEATURES\r\n  › Faster crafting AND smelting speeds\r\n  › Tweaked loot table with enhanced stack sizes\r\n\r\nREAD THE FULL RULES AND GAME MECHANICS AT OUR DISCORD GUILD\r\nNOT READING THE RULES WILL NOT PREVENT YOU FROM GETTING BANNED\r\n\r\nrs0RlOAaozJ^1Qb5k0%q3@",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778176386,
    "score": 0,
    "last_online": 1778619018,
    "icon": null,
    "name": "OXIDATION 5x | VANILLA+ | THU 07/05",
    "connect": "185.113.141.142:29017",
    "request": "185.113.141.142:29015",
    "map": "MAX4 | QoL",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 64,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "PT",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1774555207,
    "last_update": 1778619018,
    "banned": false,
    "wipe": 1778176823,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2462,
    "language": "pt",
    "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/11260827");
$data = json_decode($json, true);
var_dump($data);