JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11305643
json
{
  "response": {
    "fps": 118,
    "fps_avg": 151,
    "entities_count": 114199,
    "world_seed": 1128401765,
    "world_size": 4500,
    "steam_id": "90286596017951769",
    "domain": null,
    "id": 11305643,
    "ip": "173.240.156.121",
    "port": 10000,
    "query": 10003,
    "color": 0,
    "city": "Atlanta",
    "description": "![Rusty Pickle | SOLO DUO TRIO | Biweekly | noobs | 50% upkeep](https://imgur.com/a/Q40gbSF)\nWelcome! Map size: 4500. 50% upkeep. Biweekly map wipes. No Cheating! We strictly enforce a no-cheat policy to keep the experience fair and fun. Team Size Limit: Max of 3 players per team, No Teaming or Slaving! Fair gameplay for all.  If you have any complaints, reports, or suggestions, please leave your message in the Discord server. Updated Discord: https://discord.gg/j4nVgZRR",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780581876,
    "last_online": 1780606828,
    "icon": null,
    "name": "Rusty Pickle | SOLO DUO TRIO | Biweekly | noobs | 50% upkeep",
    "connect": "173.240.156.121:10000",
    "request": "173.240.156.121:10003",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 7,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 63,
    "add_date": 1774592894,
    "last_update": 1780606828,
    "banned": false,
    "wipe": 1780582023,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 1595,
    "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/11305643");
$data = json_decode($json, true);
var_dump($data);