JSON pentru programe, site-uri și altele

text
https://api.gamemonitoring.ro/servers/8839144
json
{
  "response": {
    "fps": 146,
    "fps_avg": 124,
    "entities_count": 107002,
    "world_seed": 456789699,
    "world_size": 4500,
    "steam_id": "90286555812818948",
    "domain": null,
    "id": 8839144,
    "ip": "64.87.39.101",
    "port": 23442,
    "query": 23444,
    "color": 0,
    "city": "San Jose",
    "description": "![Alaska Server](https://www.dropbox.com/scl/fi/z9axw6nvy83n54qcx4pk9/istock-487516034_1024x512.jpg?rlkey=n9ymv45xt99ohz84gm8atw60c&st=thup6q7z&dl=1)\nPvE Day 1-26 no Raiding other people\n\nPvP Day 27 - 31 PvP and Raiding starts\n\nBetterNpc on every Monuments\n\nRules\n-No Killing, Stealing, or Looting\n-No Raiding/Griefing other Players Build/Base\n-Do not block access to Monuments\n-No inappropriate symbols or phrases on Signs\n-Don't beg for items or troll other players",
    "game": 252490,
    "owner": null,
    "boosts": 1,
    "last_offline": 1780344254,
    "last_online": 1780556427,
    "icon": null,
    "name": "Alaska Server",
    "connect": "64.87.39.101:23442",
    "request": "64.87.39.101:23444",
    "map": "Procedural Map",
    "gamemode": "Survival",
    "version": "2625",
    "numplayers": 0,
    "maxplayers": 300,
    "bots": 0,
    "secured": true,
    "private": false,
    "country": "US",
    "status": true,
    "votes": 0,
    "points": 60,
    "add_date": 1746129061,
    "last_update": 1780556427,
    "banned": false,
    "wipe": 1780344282,
    "official": null,
    "wipe_period": null,
    "next_wipe": null,
    "pve": 0,
    "pvp": null,
    "list_hidden": false,
    "hide_address": false,
    "hide_query": false,
    "position_game": 2987,
    "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/8839144");
$data = json_decode($json, true);
var_dump($data);