JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/9861544
json
{
  "response": {
    "fps": 58,
    "fps_avg": 57,
    "entities_count": 168659,
    "world_seed": 1122145706,
    "world_size": 5500,
    "steam_id": "90286585484668931",
    "domain": null,
    "id": 9861544,
    "ip": "156.236.84.14",
    "port": 28035,
    "query": 28036,
    "color": 0,
    "city": "Dallas",
    "description": "![\"The Fightin Fifth!\" | Events | Casual | Kits | Noob Friendly](https://i.postimg.cc/jSfMgwJD/5th-EN-Crest-trans-256.png)\nThis server is a relaxed place for you to hang out, and possibly meet new friends!\r\n\r\nNo Killing, Raiding, or general douchbaggery. Hate speech or general rudeness will not be tolerated. We come here for fun, and we invite others to relax here as well.\r\n\r\nWe offer a minimal kit to get your started, and another kit with some more useful items once you spend 2 hours with us! Just type\"/kit\" in the chat bar.\r\n\r\nRandom events fire for all levels of players. Check out the F-15 Crash Event for single players, Tug Boat and Airfield for small teams, and Armored Train for larger groups! If you would like us to fire up an event, just ask...if we are on, we will let you know.\r\n\r\nWe will modify the maps for the Christmas season, to get everyone in the spirit, and the Armored Train and various other terrain items will give you random loot (with a bit of effort). We will follow the Walm@rt Holiday schedule, so expect Christmas to come right after Halloween!\r\n\r\nHappy Rusting with the Fightin 5th, and if there is anything we can do, just reach out in chat!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779466419,
    "last_online": 1780601434,
    "icon": null,
    "name": "\"The Fightin Fifth!\" | Events | Casual | Kits | Noob Friendly",
    "connect": "156.236.84.14:28035",
    "request": "156.236.84.14:28036",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1753269594,
    "last_update": 1780601434,
    "banned": false,
    "wipe": 1778178218,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 1,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3428,
    "language": "en",
    "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/9861544");
$data = json_decode($json, true);
var_dump($data);