JSON dla programów, stron i innych

text
https://api.gamemonitoring.pl/servers/11511062
json
{
  "response": {
    "fps": 72,
    "fps_avg": 70,
    "entities_count": 47621,
    "world_seed": 1,
    "world_size": 3000,
    "steam_id": "90286204620660766",
    "domain": null,
    "id": 11511062,
    "ip": "51.83.47.94",
    "port": 28015,
    "query": 25568,
    "color": 0,
    "city": "Roubaix",
    "description": "[EU] Apex Rust 2x | Monthly | Modded\r\n\r\n═══════════════════════════════════\r\n APEX RUST — EU | 2x | Monthly Wipe\r\n═══════════════════════════════════\r\n\r\n🌍 EU-based modded server built for players who want\r\na fair, feature-rich experience without the grind.\r\n\r\n⚙️ SERVER INFO\r\n• 2x Gather Rates\r\n• 100 Player Slots\r\n• Monthly Map Wipes — NO Blueprint Wipes\r\n• Low ping EU location\r\n\r\n🎒 PROGRESSION & REWARDS\r\n• Starter Kits — hit the ground running\r\n• Playtime Shop — earn points just by playing\r\n• Server Rewards — earn RP through gameplay\r\n• Keep blueprints every wipe, forever\r\n\r\n🔧 QUALITY OF LIFE\r\n• 2x Crafting Speed\r\n• Quick Smelt & Faster Recyclers\r\n• Custom Stack Sizes\r\n• Better Loot Tables\r\n\r\n👥 COMMUNITY\r\n• Clans & Teams\r\n• Better Chat with clan tags\r\n• Active admin team — griefers dealt with fast",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1779723212,
    "last_online": 1780656628,
    "icon": null,
    "name": "[EU] Apex Rust 2x | Kits | Shop | No BP Wipes | Monthly",
    "connect": "51.83.47.94:28015",
    "request": "51.83.47.94:25568",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779353837,
    "last_update": 1780656628,
    "banned": false,
    "wipe": 1778619455,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4872,
    "language": "fr",
    "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/11511062");
$data = json_decode($json, true);
var_dump($data);