JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/546139
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 177081,
    "world_seed": 1337,
    "world_size": 5500,
    "steam_id": "90286592834555931",
    "domain": null,
    "id": 546139,
    "ip": "144.48.104.165",
    "port": 28221,
    "query": 28224,
    "color": 0,
    "city": "Chicago",
    "description": "![Relaxed Rust - Admin Test Server](https://relaxedrust.com/img/loadlogo.png)\nWelcome to Relaxed Rust - 4x gather PvE modded. \r\nThis is a PVE server with half of normal decay. \r\nZ levels for resource gathering and crafting increases. Backpack available. Personal recycler as well as craft recycler available. \r\n50k stack size on most everything. \r\nMust use removal tool for base adjustments. Furnace manager as well. \r\nAdmin shop is on map currently located east of N16 . No Burnable meat. Auto-sort on Furnaces and Refineries. \r\nCommands can be used on the server by typing the following commands. \r\nmymini spawns a minicoptor. nomini will despawn the same minicoptor.\r\ncallheli username calls in your own personal attack heli on your base. \r\nbackpack will open a personal backpack space. \r\nrec will open a personal recycler \r\nrecycler.craft will allow you to craft a recycler for your base. \r\nfast smelting. \r\ntown, home and person TP available",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780299844,
    "last_online": 1780579233,
    "icon": null,
    "name": "Relaxed Rust - Admin Test Server",
    "connect": "144.48.104.165:28221",
    "request": "144.48.104.165:28224",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1644710926,
    "last_update": 1780579233,
    "banned": false,
    "wipe": 1780575414,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2358,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/546139");
$data = json_decode($json, true);
var_dump($data);