JSON für Programme, Websites und mehr

text
https://api.gamemonitoring.de/servers/11501836
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 82094,
    "world_seed": 1231214948,
    "world_size": 3750,
    "steam_id": "90286583295405079",
    "domain": null,
    "id": 11501836,
    "ip": "64.40.9.123",
    "port": 28115,
    "query": 28113,
    "color": 0,
    "city": "London",
    "description": "![EU RUSTCODE 2X](https://www.dropbox.com/scl/fi/vtd0mh9ak677rgym16ygm/RUSTCODE-Banner-RESIZED.png?rlkey=dasztzc8ihvftu59gmbux6ld2&st=hqtwwxj6&dl=1)\nRUSTCODE IS A NEW SERVER ! We keep Rust feeling like Rust — just a little faster and smoother. Slight quality of life changes to reduce frustration without breaking natural gameplay. New players can learn the game without being too punished. Progress at a better pace, stay longer, enjoy more. \r\n \r\n \r\n•Monthly Wipe \r\n• X2 Gather Rate \r\n• X2 Smelt Speed \r\n• Balanced Loot (No Trash) \r\n• Free SkinBox \r\n• Play to Win Free VIP \r\n• Quality of life Features \r\n• Active Non-playing Admins \r\n \r\n \r\nrs022RXaozJ/0S&x73&*ng",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780511037,
    "last_online": 1780591834,
    "icon": null,
    "name": "EU RUSTCODE 2X",
    "connect": "64.40.9.123:28115",
    "request": "64.40.9.123:28113",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207182,
    "last_update": 1780591834,
    "banned": false,
    "wipe": 1780510989,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4742,
    "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/11501836");
$data = json_decode($json, true);
var_dump($data);