JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/10412901
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 10256,
    "world_seed": 1,
    "world_size": 1500,
    "steam_id": "90286589763166225",
    "domain": null,
    "id": 10412901,
    "ip": "172.93.101.100",
    "port": 27016,
    "query": 27018,
    "color": 0,
    "city": "Piscataway",
    "description": "![[US] Tropical Rust - 10x Quad » One Grid / 1 Grid / Small](https://i.imgur.com/nuQN4z2.png)\nWelcome To Tropical Rust Servers - home of reliable Rust servers.\r\n\r\nOur offerings:\r\n✦ 10x gather rates on all materials\r\n ✦ Instant Crafting.\r\n ✦ All blueprints unlocked.\r\n ✦ Smelting is more efficient and given a boosted ratio on Charcoal.\r\n ✦ Always daytime.\r\n\r\nYou can learn more on our Discord at discord.gg/tropicalrust",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779884604,
    "last_online": 1780585836,
    "icon": null,
    "name": "[US] Tropical Rust - 10x Quad » One Grid / 1 Grid / Small",
    "connect": "172.93.101.100:27016",
    "request": "172.93.101.100:27018",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1759823785,
    "last_update": 1780585836,
    "banned": false,
    "wipe": 1780084858,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3632,
    "language": "en",
    "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/10412901");
$data = json_decode($json, true);
var_dump($data);