JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/225815
json
{
  "response": {
    "fps": 149,
    "fps_avg": 130,
    "entities_count": 68508,
    "world_seed": 722229676,
    "world_size": 3500,
    "steam_id": "90286576754104335",
    "domain": null,
    "id": 225815,
    "ip": "68.232.160.61",
    "port": 28016,
    "query": 28017,
    "color": 0,
    "city": "Dallas",
    "description": "![Loot Worldwide |Trio|Monthly|.5 Upkeep](http://i.imgur.com/eitCfAW.png)\nConnect command: client.connect rust-trio.lootworldwide.com:28016\r\nDiscord: Discord.LootWorldwide.com\r\nWebsite/Donos:Buy us a beer to cover hosting costs: https://www.lootworldwide.com/\r\n\r\nMonthly map wipes on 1st Thursdays. Next force wipe is June 4th.\r\n*Low pop server with 1/2 of normal upkeep. Low pop servers are generally noob friendly, but rust is a hostile world.\r\n* Solo/Duo/Trios only. This includes resources, raiding, sharing, roaming, PVE, etc. Trios can reset after the wipe. TCs and locks must be cleared if you replace someone in a trio. They cannot be added back until after the wipe.\r\n* Monthly forced wipes (Thursday roughly 1:45pm EST)\r\n* Blueprints wipe whenever the developers force a wipe.\r\n* Daily reboots at 6am EST and sometimes 2pm EST\r\n* Paid server hosted in a USA Datacenter. \r\n* Experienced adult admins. Admins do not PVP on this server at all. We PVP on other servers and only use this as a testing ground for building and new developments. We only get involved with cheaters and server stability issues\r\n\r\n**** Click the Webpage button and join our discord to contact an admin. ****",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780404256,
    "last_online": 1780566626,
    "icon": null,
    "name": "Loot Worldwide |Trio|Monthly|.5 Upkeep",
    "connect": "68.232.160.61:28016",
    "request": "68.232.160.61:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1582979091,
    "last_update": 1780566626,
    "banned": false,
    "wipe": 1778177927,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1286,
    "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/225815");
$data = json_decode($json, true);
var_dump($data);