JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11607439
json
{
  "response": {
    "fps": 60,
    "fps_avg": 59,
    "entities_count": 72347,
    "world_seed": 176391850,
    "world_size": 3500,
    "steam_id": "90286368970013720",
    "domain": null,
    "id": 11607439,
    "ip": "51.161.198.94",
    "port": 28025,
    "query": 28026,
    "color": 0,
    "city": "North Sydney",
    "description": "![[AU] Winton Rust | 2x | Noob Friendly | Monthly | No BP Wipes |](https://ibb.co/fByZmGM)\n- Server Info\r\n2x Gather Rates\r\nNoob Friendly\r\nMonthly Wipes\r\nNo Blueprint Wipes\r\nActive Admins\r\nNZ/AU Friendly Ping\r\nLarge Optimized Maps\r\nBalanced PvP & Progression\r\nWipe Schedule\r\nFirst Thursday of every Month\r\nBlueprints Never Wipe\r\n\r\n- Features\r\nRaidable Bases Premium\r\nIncreased stack sizes\r\nFaster furnace & recycler speeds\r\nCombined Outpost & Bandit Camp\r\nIncreased team & bag limits\r\nImproved server optimization\r\nHand-picked maps for balanced PvP and building\r\nHigh performance hardware for smooth gameplay\r\n\r\n- Rules\r\nNo cheating, scripting, or exploiting\r\nNo ban evading\r\nNo racism, harassment, or excessive toxicity\r\nRespect players and staff\r\nReport bugs or exploits instead of abusing them\r\n\r\nAdmins reserve the right to remove players damaging the server experience.\r\n\r\nCommunity\r\n\r\nJoin the Winton Rust Discord for updates, wipes, events, and support.\r\n\r\nStart fresh. Build fast. Survive longer.\r\n\r\nWinton Rust",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780592012,
    "last_online": 1780120219,
    "icon": null,
    "name": "[AU] Winton Rust | 2x | Noob Friendly | Monthly | No BP Wipes |",
    "connect": "51.161.198.94:28025",
    "request": "51.161.198.94:28026",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 50,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "AU",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1779915506,
    "last_update": 1780592012,
    "banned": false,
    "wipe": 1778178462,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 12341,
    "language": "en",
    "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/11607439");
$data = json_decode($json, true);
var_dump($data);