JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11501678
json
{
  "response": {
    "fps": 116,
    "fps_avg": 117,
    "entities_count": 214169,
    "world_seed": 995903534,
    "world_size": 6000,
    "steam_id": "90286585355575323",
    "domain": null,
    "id": 11501678,
    "ip": "92.222.138.243",
    "port": 23660,
    "query": 23661,
    "color": 0,
    "city": "Paris",
    "description": "Tired of bunker meta and toxic offlines?\r\nFriendlyFire is a slower-paced Rust server focused on creative builds, memorable fights, and stories that last.\r\n• Monthly Wipes for long-term projects\r\n• Blueprints persist after wipes, • 4x Gather on Weekends, • Reduced Upkeep & Slower Decay, • Offline Raid Protection scales up to 80% over 36+ hours, • Active Admins keeping things fair and fun\r\nServer Rules:, • No cheating or exploiting, • No racism slurs or excessive toxicity, • No excessive griefing or foundation wiping, • Don’t fully seal bases after raids, • Respect creative/community builds, • Competitive banter and rivalry allowed\r\nDon’t hesitate to contact the admins for any issues.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780470420,
    "last_online": 1780601438,
    "icon": null,
    "name": "[EU] FriendlyFire | Monthly | Casual | Clans | Basic Builds",
    "connect": "92.222.138.243:23660",
    "request": "92.222.138.243:23661",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 75,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "FR",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1779207177,
    "last_update": 1780601438,
    "banned": false,
    "wipe": 1778782392,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 4295,
    "language": "fr",
    "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/11501678");
$data = json_decode($json, true);
var_dump($data);