JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/341367
json
{
  "response": {
    "fps": 57,
    "fps_avg": 56,
    "entities_count": 111079,
    "world_seed": 944983273,
    "world_size": 4250,
    "steam_id": "90286575470033925",
    "domain": null,
    "id": 341367,
    "ip": "116.202.165.78",
    "port": 28014,
    "query": 28015,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Rust Ireland - 2x - Max3 | Vanilla+ | 50% Upkeep | Biweekly](https://www.rustireland.com/images/banners/banner2x.png)\nThe Rust Ireland 2x server hosts a solo/duo/trio 2x vanilla+ game with many QoL enhancements:\n\n• 2x Wood/stone/metal/scrap/components\n• 2x Crafting/smelting/recycling speed\n• Automatic auth/codelock/blueprint sharing for clans\n• Lanterns don't require fuel\n• Meat doesn't burn in fires\n• Vehicles can be crafted at workbenches\n• Extra car lifts and refineries are available at some monuments\n• 10 items can be /removed per wipe to fix base mistakes\n• Images can be uploaded to signs and picture frames\n• A wide selection of free skins can be added to in-game items\n• 50 minute days, 10 minute nights\n• Tech tree is disabled for the first wipe each month\n• Raiding is blocked for 4 days after a wipe\n• Map wipe on the 1st & 3rd Thursdays of each month at 19:00 GMT\n• Blueprint wipe on the 1st Thursday of each month at 19:00 GMT\n\nDiscord: https://rustireland.com/discord\nSteam: https://rustireland.com/steam\nLive Map: https://rustireland.com/2x/map\n\n4.2GHz • DDR4 • NVMe • DDoS  Protection • Anti Cheat • No Admin Players",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780531461,
    "last_online": 1780596631,
    "icon": null,
    "name": "Rust Ireland - 2x - Max3 | Vanilla+ | 50% Upkeep | Biweekly",
    "connect": "116.202.165.78:28014",
    "request": "116.202.165.78:28015",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 200,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1593281364,
    "last_update": 1780596631,
    "banned": false,
    "wipe": 1779386178,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1901,
    "language": "de",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Przykłady kodu

php
<?php
$json = file_get_contents("https://api.gamemonitoring.pl/servers/341367");
$data = json_decode($json, true);
var_dump($data);