JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/1470988
json
{
  "response": {
    "steam_id": "90284363440156676",
    "domain": null,
    "id": 1470988,
    "ip": "173.237.55.4",
    "port": 27000,
    "query": 27020,
    "color": 0,
    "city": "San Jose",
    "description": "Avorion Server powered by 4Netplayers. Contact Molo.tov on discord if you encounter issues.",
    "game": 445220,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776180717,
    "score": null,
    "last_online": 1776223816,
    "icon": null,
    "name": "Scorpius [Offical Server by 4Netplayers]",
    "connect": "173.237.55.4:27000",
    "request": "173.237.55.4:27020",
    "map": "4Netplayers",
    "gamemode": "Avorion",
    "version": "2.5.13.44140",
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1697315042,
    "last_update": 1776223816,
    "banned": false,
    "wipe": null,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": null,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 38,
    "language": "en",
    "parked": false,
    "app": {
      "id": 172,
      "steam_id": 445220,
      "name": "Avorion",
      "url": "avorion"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Codebeispiele

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