JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11004805
json
{
  "response": {
    "fps": 30,
    "fps_avg": 30,
    "entities_count": 104137,
    "world_seed": 7899,
    "world_size": 4250,
    "steam_id": "90286604989068308",
    "domain": null,
    "id": 11004805,
    "ip": "151.242.127.246",
    "port": 28115,
    "query": 28116,
    "color": 0,
    "city": "City of London",
    "description": "![Rusty Bone Solo/Duo EU | Weekly Wipe Today on 04/06 | Premium](https://iili.io/fgxb4yX.jpg)\nWelcome to Rusty Bone - Last wipe (Full): Today on 04/06 | Premium Weekly EU \r\n  \r\n Wipe Schedule: \r\n    - Map = Every Thursday @ 8pm CET (Weekly) \r\n    - Blueprints(Full) = Every other Thursday @ 8pm CET (BiWeekly) \r\n  \r\n -> Premium Server & Active admins to help snipe those pesky cheaters. \r\n -> Solo or Duo Only. \r\n -> Hand picked seeds so you'll only get the best. \r\n -> Large Maps so you don't have to live next door to a sweaty roof camper. \r\n  \r\n | Vanilla | EU | Weekly |",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598666,
    "last_online": 1780621827,
    "icon": null,
    "name": "Rusty Bone Solo/Duo EU | Weekly Wipe Today on 04/06 | Premium",
    "connect": "151.242.127.246:28115",
    "request": "151.242.127.246:28116",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 1,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "GB",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1769938986,
    "last_update": 1780621827,
    "banned": false,
    "wipe": 1780598903,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2456,
    "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/11004805");
$data = json_decode($json, true);
var_dump($data);