JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/760264
json
{
  "response": {
    "modded": true,
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 214788,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286590777797659",
    "domain": null,
    "id": 760264,
    "ip": "193.57.8.57",
    "port": 28015,
    "query": 28010,
    "color": 0,
    "city": "Dallas",
    "description": "![LuffyRust Texas USA - 10xPvE|NoBP|Kits|Skins|Backpacks|Purge No](https://www.luffyrust.com/img/headerimage/luffyheaderimagev2.png)\nLuffyRust Texas USA - Bi-Weekly Wipe Noob Friendly Community\r\n· 10X | PvE | NoBP | Skins | Kits | Backpacks | MyMini | Skill Tree \r\n· Refer-4-Reward - Bring your friends to play and everyone gets rewarded!\r\n· Purge - day before wipe. PvP / Raiding allowed\r\n· Vote daily to get great rewards and levels /vote\r\n· Use /info to learn all about LuffyRust and commands\r\n· Abandoned Bases - Raid abandoned player bases, Keep what you find!.\r\n· Noob Friendly Environment PLUS Active Staff\r\n· Raidable Bases, Airfield, Armored Train & Harbor events\r\n· Join Discord https://discord.gg/luffynetwork\r\n· LuffyRust Website https://www.luffyrust.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779995570,
    "last_online": 1780572027,
    "icon": null,
    "name": "LuffyRust Texas USA - 10xPvE|NoBP|Kits|Skins|Backpacks|Purge No",
    "connect": "193.57.8.57:28015",
    "request": "193.57.8.57:28010",
    "map": "https://discord.gg/luffynetwork",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 3,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 64,
    "add_date": 1680784893,
    "last_update": 1780572027,
    "banned": false,
    "wipe": 1779386414,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 717,
    "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/760264");
$data = json_decode($json, true);
var_dump($data);