JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/762745
json
{
  "response": {
    "fps": 109,
    "fps_avg": 109,
    "entities_count": 194229,
    "world_seed": 1266426589,
    "world_size": 6000,
    "steam_id": "90285687469862943",
    "domain": null,
    "id": 762745,
    "ip": "185.62.206.51",
    "port": 28244,
    "query": 28245,
    "color": 0,
    "city": "Karlskrona",
    "description": "![Paradiset Large Map](https://www.dropbox.com/scl/fi/3kqqvusjw0mja1fduxsqt/Bild.png?rlkey=wtvyf84gpexl1kzpa8hil8cbn&dl=0)\nWelcome to Paradiset\r\nFull wipe with bp 260509\r\nNext wipe 260522\r\nNo offensive language in chat\r\nPlayers with internet connection from Russia are not welcome on the server.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1778556178,
    "score": null,
    "last_online": 1778706026,
    "icon": null,
    "name": "Paradiset Large Map",
    "connect": "185.62.206.51:28244",
    "request": "185.62.206.51:28245",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1680789754,
    "last_update": 1778706026,
    "banned": false,
    "wipe": 1778353800,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2779,
    "language": "sv",
    "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/762745");
$data = json_decode($json, true);
var_dump($data);