JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/4003220
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 202520,
    "world_seed": 1337,
    "world_size": 4500,
    "steam_id": "90286583293084695",
    "domain": null,
    "id": 4003220,
    "ip": "104.129.132.129",
    "port": 28015,
    "query": 28014,
    "color": 0,
    "city": "Dallas",
    "description": "![The Monster Den PVE|5x|Quad|Kits|Loot+|RaidableBases|Purge](https://i.imgur.com/meJauMY.png)\nWIPE SCHEDULE: BIWEEKLY @ 6:00PM (CST)\r\nNEXT WIPE: June 4th\r\nNEXT PURGE: June 3rd\r\nGATHERING RATES: 5x + Skill Tree | GROUP LIMIT: 4 MAX\r\n\r\nThe Monster Den is a well-established online community known for its welcoming environment and proactive staff team. It aims to enhance player gaming experiences by providing Quality of Life improvements and unique Custom Maps to explore at your own pace. Chances for PvP arise during different events like Abandoned Bases and The Purge which occurs on the last 24 hours of each wipe.\r\n\r\n✦ SERVER FEATURES ✦\r\n◦ Purge last 24 hours of wipe\r\n◦ Reoccuring server events with item & VIP prizes\r\n◦ Over 400 Raidable Bases, NPCs, Events, Bosses, Custom Attack Helis\r\n◦ PvP Raidable Base Island, Abandoned Bases, Quests ◦ Inventory & Backpack keep on death\r\n◦ Protected for 2 hours after logging off until you are lootable\r\n◦ Kits, Vehicles, Chest Stacking, RP & Shop, Virtual Quarries\r\n◦ Quick Smelt & Recycle, Trading, Instant Barrel, Teleporting\r\n\r\nJoin our Discord for announcements, giveaways & more!\r\ndiscord.gg/themonsterden",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779402222,
    "last_online": 1780587630,
    "icon": null,
    "name": "The Monster Den PVE|5x|Quad|Kits|Loot+|RaidableBases|Purge",
    "connect": "104.129.132.129:28015",
    "request": "104.129.132.129:28014",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 5,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 62,
    "add_date": 1714339212,
    "last_update": 1780587630,
    "banned": false,
    "wipe": 1779402634,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1165,
    "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/4003220");
$data = json_decode($json, true);
var_dump($data);