JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/11018197
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 184763,
    "world_seed": 6555127,
    "world_size": 5500,
    "steam_id": 90286604428123150,
    "domain": null,
    "id": 11018197,
    "ip": "66.51.99.23",
    "port": 28000,
    "query": 28001,
    "color": 0,
    "city": "Dallas",
    "description": "![Rusty Spoons PvE | no raiding / stealing / killing](https://www.dropbox.com/scl/fi/wv74zxywftu8jrh940gna/headerimage.jpg?rlkey=39j1a5n6hvfs9b04282ck5gwg&st=qjilb23o&dl=1)\nWelcome to Rusty Spoons PvE! We offer friendly & active staff, community events, and 15% decay. We are a great place for new players to learn! We also have map voting in our discord & host a PVP day event the day before each wipe.\r\n\r\n- don't be a jerk\r\n- be fair to other players\r\n- no raiding / stealing / killing\r\n- crates / events / airdrops / monuments belong to the player(s) who got there first & claimed in chat\r\n- traps are allowed inside bases / compounds only\r\n- don't block lakes / waterways / ziplines\r\n- respect staffs time & energy\r\n- lock up your loot / vehicles\r\n\r\nFor more information & events please join our discord > https://discord.gg/Q7geQzSeww",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780596861,
    "last_online": 1780630820,
    "icon": null,
    "name": "Rusty Spoons PvE | no raiding / stealing / killing",
    "connect": "66.51.99.23:28000",
    "request": "66.51.99.23:28001",
    "map": "Procedural Map",
    "gamemode": "Vanilla",
    "version": "2627",
    "numplayers": 47,
    "maxplayers": 100,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 81,
    "add_date": 1769944476,
    "last_update": 1780630820,
    "banned": false,
    "wipe": 1780597028,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 407,
    "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/11018197");
$data = json_decode($json, true);
var_dump($data);