JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/759846
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 116472,
    "world_seed": 1718362501,
    "world_size": 4500,
    "steam_id": "90284836669806613",
    "domain": null,
    "id": 759846,
    "ip": "217.170.203.94",
    "port": 28245,
    "query": 28246,
    "color": 0,
    "city": "Haugesund",
    "description": "![Nordic 2-5x Solo duo trio](https://i.imgur.com/kfqU6Gv.png)\n[Nordic] 2-5x Solo/Duo/Trio – Minigames & Treasure Hunt \r\n• BP Wipe: Monthly (First Thursday @ 21:00 CET) \r\n• Map Wipe: Bi-weekly on Thursdays (Check last wipe date) \r\n• Level System: Resets every 2 weeks \r\n• No Radiation Zones \r\n• Quality of Life: QuickSmelt & Extra Backpack \r\n  ↪ Bind: b backpack. Open in console \r\n• World Size: 4500 \r\n• Stack Size: 50k on Resources  \r\n • Sign Artist: /sil \\picture URL\\ \r\n  ↪ Only safe content, Max 1MB – No NSFW or racist imagery \r\n• Drone Range: Unlimited \r\n• AutoTurrets: No limit per base \r\n• Server ID: [RS-2525692d] \r\n• Access Code: rs0002On2=69lHU*U&YQ7o^IECJkMQ{q1Qb5k0%nPc",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1776909794,
    "score": null,
    "last_online": 1776980423,
    "icon": null,
    "name": "Nordic 2-5x Solo duo trio",
    "connect": "217.170.203.94:28245",
    "request": "217.170.203.94:28246",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2623",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "NO",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1680784709,
    "last_update": 1776980423,
    "banned": false,
    "wipe": 1776365229,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2691,
    "language": "no",
    "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/759846");
$data = json_decode($json, true);
var_dump($data);