JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/759695
json
{
  "response": {
    "fps": 51,
    "fps_avg": 51,
    "entities_count": 161768,
    "world_seed": 835636,
    "world_size": 5000,
    "steam_id": "90284791820013595",
    "domain": null,
    "id": 759695,
    "ip": "192.121.44.42",
    "port": 28016,
    "query": 28015,
    "color": 0,
    "city": "Örebro",
    "description": "![[EU/SWE] Playstar - SOLO - LARGE MAP](https://www.playstar.se/static/c4-bradly.png)\nSOLO: INFO\r\n------------\r\n- Next BP wipe 07.05\r\n Next Map wipe 07.05\r\n- BPs wipe monthly\r\n- Map wipes bi-weekly\r\n\r\nRULES:\r\n------------\r\n- Only english in chat.\r\n- No VAC ban or game ban. ZERO! No exceptions.\r\n- VPNs or proxies are not allowed.\r\n- No teaming, no allies, no friendly neighbours.\r\n- Don´t roam, loot, run, boat, raid with any other player\r\n- Don´t build next to your friends\r\n- Don´t bag other player.\r\n- Don´t have other players bags in your bas.\r\n- Don´t have other players in your base. Only when you are being raided\r\n- Don´t help players up\r\n- Don´t give free stuff\r\n- Don´t give away your base when you quit.\r\n- Only trade through shop front and vending machine.\r\n- Breaking one rule will get you banned.\r\n- Report cheaters and abuse ONLY in discord.\r\n------------\r\n\r\nDISCORD: https://discord.gg/gxJm7Pv\r\nSTEAM: https://steamcommunity.com/groups/playstarrust",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776821601,
    "score": null,
    "last_online": 1776879617,
    "icon": null,
    "name": "[EU/SWE] Playstar - SOLO - LARGE MAP",
    "connect": "192.121.44.42:28016",
    "request": "192.121.44.42:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 8,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 68,
    "add_date": 1680784677,
    "last_update": 1776879617,
    "banned": false,
    "wipe": 1776426988,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 872,
    "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/759695");
$data = json_decode($json, true);
var_dump($data);