JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11698892
json
{
  "response": {
    "fps": 216,
    "fps_avg": 216,
    "entities_count": 82257,
    "world_seed": 1,
    "world_size": 3750,
    "steam_id": "90286621183759361",
    "domain": null,
    "id": 11698892,
    "ip": "172.240.47.41",
    "port": 25691,
    "query": 25589,
    "project_id": null,
    "color": 0,
    "city": "Ashburn",
    "description": "![0  FUCKS  GIVEN! US • 10X • MAX 10 [Kit•Shop•Clan] 6/4](https://tyler.gg/0fg.jpg)\nJoin Our STEAM - https://0fg.ca/steam\r\nJoin Our DISCORD - http://0fg.ca/discord\r\n.. For Perks!\r\n\r\n✓ 10X Gather / 10X Sulfur / 10X Loot (Junk Removed)\r\n✓ Offline Protection \r\n✓ Higher Stack Sizes\r\n✓ Instant Recycling/Crafting\r\n✓ Boosted Loot Tables\r\n✓ No Electricity Required\r\n✓ Waterless Sprinklers\r\n✓ No BPs\r\n✓ /MyMini (2 Minute CoolDown) For Everyone\r\n✓ Leaderboard + Loyalty Ranks\r\n✓ Bonus Kits (/kit)\r\n✓ Added Shop (/shop)\r\n✓ Purchase Vehicles With Scrap (/vb)\r\n✓ Anti-Cheat Measures Active (Appeal on 0FG.CA/DISCORD)\r\n✓ Active Non-Playing Owner (Friendly too!)",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596862,
    "last_online": 1780686632,
    "icon": null,
    "name": "0  FUCKS  GIVEN! US • 10X • MAX 10 [Kit•Shop•Clan] 6/4",
    "connect": "172.240.47.41:25691",
    "request": "172.240.47.41:25589",
    "map": "High FPS | Wiped - 1d ago",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1780227280,
    "last_update": 1780686632,
    "banned": false,
    "wipe": 1780597239,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 5750,
    "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/11698892");
$data = json_decode($json, true);
var_dump($data);