JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/9526991
json
{
  "response": {
    "fps": 35,
    "fps_avg": 35,
    "entities_count": 85205,
    "world_seed": 1833194430,
    "world_size": 4000,
    "steam_id": "90286579861536793",
    "domain": null,
    "id": 9526991,
    "ip": "84.200.132.152",
    "port": 28015,
    "query": 28016,
    "color": 0,
    "city": "Frankfurt am Main",
    "description": "![[GER]DuKs#3 Competetive - Low Upkeep](https://rust.duks-gaming.de/imagestorage/HeaderImage_3.png)\nWelcome to our server! [GER]DuKs#3 Competetive - Low Upkeep(10%)\r\n\r\n-> Bi-Weekly | No Teamlimit | No Turretlimit <-\r\n\r\nVisit us on our Discord (Duks-discord.de / discord.gg/npRA3s6) or our homepage (www.duks-gaming.de) .. \r\nVIP (Skip-Queue) available at: https://app.gpay.io/store/duks-gaming \r\n\r\nFor help, support and general things, just talk to us on the Discord \r\nWipe, Bi-Weekly on every 1st, 3rd and, if necessary, 5th Thursday of the month\r\nServer restart, daily 05:00 (CET)\r\n\r\n-> Chat language: German (English for all other languages!)\r\n-> Hacking, bugusing and racism will be punished with a ban!\r\n\r\nAlso note the further information via !Rules, !Info or !Help +server.url https://rust.duks-gaming.com +server.headerimage https://rust.duks-gaming.de/imagestorage/HeaderImage_3.png",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780542269,
    "last_online": 1780576240,
    "icon": null,
    "name": "[GER]DuKs#3 Competetive - Low Upkeep",
    "connect": "84.200.132.152:28015",
    "request": "84.200.132.152:28016",
    "map": "Custom Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "DE",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1750537871,
    "last_update": 1780576240,
    "banned": false,
    "wipe": 1779386245,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 3252,
    "language": "de",
    "parked": false,
    "app": {
      "id": 252490,
      "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/9526991");
$data = json_decode($json, true);
var_dump($data);