JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/6787422
json
{
  "response": {
    "fps": 54,
    "fps_avg": 53,
    "entities_count": 167683,
    "world_seed": 1708456380,
    "world_size": 4750,
    "steam_id": "90286551579175946",
    "domain": null,
    "id": 6787422,
    "ip": "156.236.84.149",
    "port": 28020,
    "query": 28021,
    "color": 0,
    "city": "Los Angeles",
    "description": "![RustyNutz 100x |NoBPS|Backpacks|Kits|PvP+|Loot+|](https://www.dropbox.com/scl/fi/s3mw87oimsun5nr7eh8iy/RustyNutz-200x.png?rlkey=rnnd7ckwhw88birjzqk4al4s8&st=q1gbsshl&dl=1)\nWelcome to RustyNutz 100x the Original! Join the Discord: Press View Webpage!\r\n\r\n✦ [( Scrap-Based Offline Raid Protection! )] | [( => Can still be Raided! <= )]\r\n✦ [( Boosted Loot to ensure there's PvP and Raiding! )]\r\n✦ [( Clans welcome! Member/Team UI Limit: 24! )]\r\n✦ [( Type /info to see the Commands List! )]\r\n\r\n✦ Symmetry!   ✦ Enhanced Kits!   ✦ Loot Magnet!   ✦ Gun Ships!   ✦ Sentry Turrets!\r\n✦ Instant Startup!   ✦ Convoy!   ✦ Rocket Turrets!   ✦ Raidable Bases!   ✦ SkinBox!\r\n✦ Remover Tool!   ✦ Instant Craft!   ✦ Powerless Electronics!   ✦ Homing Missiles!\r\n✦ Vault Doors: /vaultdoor   ✦ Recyclers: /recycler.craft\r\n✦ Auto Auth/Doors/Locks!   ✦ Instant Vending!   ✦ Hack Crates 5 Mins!\r\n✦ Stack Size: 1,000,000!   ✦ /ip:  Enhance PvP Items: = Dominate!   ✦ Clans Reborn!\r\n✦ Save TP's at Monuments!   ✦ Backpacks (3-6) pages!",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780168360,
    "last_online": 1780559427,
    "icon": null,
    "name": "RustyNutz 100x|NoBPS|Backpacks|Kits|PvP+|Loot+|",
    "connect": "156.236.84.149:28020",
    "request": "156.236.84.149:28021",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 2,
    "maxplayers": 100,
    "bots": 0,
    "secured": false,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1733159664,
    "last_update": 1780559427,
    "banned": false,
    "wipe": 1779998389,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1791,
    "language": "en",
    "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/6787422");
$data = json_decode($json, true);
var_dump($data);