JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/3168343
json
{
  "response": {
    "fps": 30,
    "fps_avg": 29,
    "entities_count": 118310,
    "world_seed": 550791214,
    "world_size": 4250,
    "steam_id": "90286629012143132",
    "domain": null,
    "id": 3168343,
    "ip": "168.100.160.43",
    "port": 30015,
    "query": 30014,
    "color": 0,
    "city": "Ashburn",
    "description": "![RustMode PvE | 6/4 | No Tech Tree | Skill Tree | Raidable Bases](https://www.dropbox.com/s/d5jf6iiesr81u4v/RustMode-logos_adobespark.png?dl=1)\nWelcome to RustMode PVE! Noobs welcome! The perfect server to start out at before making that jump to PVP servers! Also the perfect server to come to after having a frustrating PVP experience!\r\n\r\nDiscord: Click ‘View Webpage’\r\nWebsite: https://rustmode.tebex.io\r\n\r\nThis server features:\r\n -Size 4250 Procedural Map\r\n -3x Stack Size, Half Decay, and QOL Improvements\r\n -No Tech Tree (With Default BPs)\r\n -Weekly Map Wipes on Fridays at 1:30PM EST, Skill Trees and BPs wipe @Force and 2 Weeks After Force\r\n -Raidable Bases\r\n -NPC Monument Defenders\r\n -RP System With In-Game Rewards\r\n -Skill Tree\r\n -Challenging Events Such as Convoy, Submarine and Harbor Event\r\n\r\nRules:\r\n -No griefing whatsoever unless the base is abandoned!\r\n -There is no team limit. Go crazy!\r\n -Be Respectful to Others; Please Limit Toxicity\r\n -Be sure to upgrade your base from twig! Twig can still be broken. This is done to encourage proper building habits.",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780598072,
    "last_online": 1780660829,
    "icon": null,
    "name": "RustMode PvE | 6/4 | No Tech Tree | Skill Tree | Raidable Bases",
    "connect": "168.100.160.43:30015",
    "request": "168.100.160.43:30014",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2627",
    "numplayers": 4,
    "maxplayers": 150,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 61,
    "add_date": 1709221436,
    "last_update": 1780660829,
    "banned": false,
    "wipe": 1780598361,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2134,
    "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/3168343");
$data = json_decode($json, true);
var_dump($data);