JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/7307307
json
{
  "response": {
    "fps": 107,
    "fps_avg": 104,
    "entities_count": 85148,
    "world_seed": 1337,
    "world_size": 4400,
    "steam_id": "90286605008927748",
    "domain": null,
    "id": 7307307,
    "ip": "64.42.177.211",
    "port": 28015,
    "query": 28017,
    "color": 0,
    "city": "Seattle",
    "description": "![Damnation PVE 10X 2.0|RAIDS|QUESTS|SKILLTREE|JETPACK](https://i.ibb.co/qM2mRR2m/Server-Banner-Damnation-PVE.jpg)\nFULL PVE RUST SERVER | NO RAID | NO PVP | MODDED\r\n\r\n100% PVE • NO Player Raiding • NO PvP • NO Griefing\r\nRelaxed, stress-free Rust made for NEW players, SOLOs, and chill gameplay.\r\n\r\nLearn Rust safely while still enjoying progression, combat, bosses, and action through NPCs and custom events.\r\n\r\nPVE EVENTS & CONTENT\r\nRaidable Bases • Custom Bosses • Bradley Arenas\r\nArmored Train • Convoys • Rocket Turrets\r\nBiPlane Events • Train Homes • NPC World Events\r\n\r\nQUALITY OF LIFE MODS\r\nStarter Kits • Instant Craft • Backpacks\r\nRestore Upon Death • Auto Code Locks\r\nVehicle License • Skill Tree • Homes TP • Skip Night\r\n\r\nECONOMY & EXTRAS\r\nShop & Instant Buy • Alpha Loot • Skinner\r\nSign Artist • Craft Menu • Better TC\r\n\r\nFUN & AUTOMATION\r\nVirtual Quarries • Virtual Recycler • Jetpacks\r\n\r\nBeginner Friendly\r\nActive Events & NPC Combat\r\nNo Wipe Stress • No Offline Raids\r\nRegular Updates & Optimized Performance",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780608257,
    "last_online": 1780599632,
    "icon": null,
    "name": "Damnation PVE 10X 2.0|RAIDS|QUESTS|SKILLTREE|JETPACK",
    "connect": "64.42.177.211:28015",
    "request": "64.42.177.211:28017",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 30,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": false,
    "votes": 0,
    "points": 0,
    "add_date": 1736796690,
    "last_update": 1780608257,
    "banned": false,
    "wipe": 1778195278,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 9834,
    "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/7307307");
$data = json_decode($json, true);
var_dump($data);