JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/7469207
json
{
  "response": {
    "fps": 52,
    "fps_avg": 48,
    "entities_count": 145799,
    "world_seed": 1334761029,
    "world_size": 4500,
    "steam_id": "90286580567136266",
    "domain": null,
    "id": 7469207,
    "ip": "198.73.57.135",
    "port": 28025,
    "query": 28027,
    "color": 0,
    "city": "Clifton",
    "description": "![East Coast Vanilla [no decay][heli/boat spawns][noobs welcome]](https://i.imgur.com/Wrzcdit.png)\nMonthly map wipes on the first Thursday each month. BP wipes every second month. Last BP wipe: May 7th, Next BP wipe: June 4th \r\n\r\n- Welcome to East Coast Vanilla, home to some of the biggest bases in vanilla Rust! \r\n- Helicopter and boat spawns are enabled on this server, meaning you can find helis on the road and boats on the beach \r\n- Decay and upkeep are turned off \r\n\r\nRules: \r\nNo raiding until day 5 of wipe (11:59 pm eastern time the monday after wipe), group size limit = 6. Please join the discord to view the full set of rules. \r\n\r\nJoin our Discord by clicking view webpage",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780280651,
    "last_online": 1780575639,
    "icon": null,
    "name": "East Coast Vanilla [no decay][heli/boat spawns][noobs welcome]",
    "connect": "198.73.57.135:28025",
    "request": "198.73.57.135:28027",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1739234890,
    "last_update": 1780575639,
    "banned": false,
    "wipe": 1778186552,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2986,
    "language": "en",
    "parked": false,
    "app": {
      "id": 252490,
      "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/7469207");
$data = json_decode($json, true);
var_dump($data);