JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11677231
json
{
  "response": {
    "fps": 227,
    "fps_avg": 225,
    "entities_count": 70792,
    "world_seed": 1916,
    "world_size": 3500,
    "steam_id": "90286419438663691",
    "domain": null,
    "id": 11677231,
    "ip": "78.46.62.251",
    "port": 28215,
    "query": 28217,
    "color": 0,
    "city": "Falkenstein",
    "description": "![Daily Grind 2x | EU | Weekly | No Limit |](https://dailygrind2x.com/server-banner.jpg?v=2)\nDaily Grind 2x - the optimised grind. EU. A fresh start every week.\n\nRATES\n - 2x Gather & Loot   - 2x Stack Size\n - Hand-curated, optimised loot tables - feel-good loot, no RNG misery\n\nWIPE\n - Weekly map wipe - every Thursday 7PM UTC\n - Blueprints wipe with Rust forced updates\n\nRULES\n - PvP - open raiding, no raid-hour windows\n - Raid-blocked teleport - no TP or escape while raiding or being raided\n - No team limit - squad up with anyone\n - No events - clean vanilla gameplay\n\nQUALITY OF LIFE\n - Free skins (/skin)  - /remove  - Kits (/kit)\n - Teleport / Homes  - Trading  - Auto-lock & auto-close doors\n\nNO PAY-TO-WIN. Skill wins, not your wallet.\n\nJoin the grind - dailygrind2x.com",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780216194,
    "last_online": 1780260629,
    "icon": null,
    "name": "Daily Grind 2x | EU | Weekly | No Limit |",
    "connect": "78.46.62.251:28215",
    "request": "78.46.62.251:28217",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 2,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1780216194,
    "last_update": 1780260629,
    "banned": false,
    "wipe": 1780179240,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2744,
    "language": "de",
    "parked": false,
    "app": {
      "id": 12,
      "steam_id": 252490,
      "name": "Rust",
      "url": "rust"
    },
    "server_owner": null,
    "mods": [],
    "disabled_modules": []
  }
}

Exemple de cod

php
<?php
$json = file_get_contents("https://api.gamemonitoring.ro/servers/11677231");
$data = json_decode($json, true);
var_dump($data);