JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/761813
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 77989,
    "world_seed": 0,
    "world_size": 3600,
    "steam_id": "90284791834545175",
    "domain": null,
    "id": 761813,
    "ip": "192.121.44.102",
    "port": 28016,
    "query": 28015,
    "color": 0,
    "city": "Örebro",
    "description": "![[EU/SWE] Playstar - SOLO - HARDCORE](https://www.playstar.se/static/c4-bradly.png)\nINFO\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, un, 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 t.\r\n- Only trade through shop front and vending machine.\r\n- Breaking one rule will get you banned.\r\n- Admins doesn't play on the server.\r\n- Report cheaters and abuse ONLY in discord.\r\n------------\r\n\r\nDISCORD: https://discord.gg/gxJm7Pv",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776821601,
    "score": null,
    "last_online": 1776879621,
    "icon": null,
    "name": "[EU/SWE] Playstar - SOLO - HARDCORE",
    "connect": "192.121.44.102:28016",
    "request": "192.121.44.102:28015",
    "map": "Procedural Map",
    "gamemode": "Hardcore",
    "version": "2623",
    "numplayers": 1,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "SE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1680785595,
    "last_update": 1776879621,
    "banned": false,
    "wipe": 1776425049,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2173,
    "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/761813");
$data = json_decode($json, true);
var_dump($data);